问题描述
亲爱的大家,
我的问题似乎是一个经常被问到的问题(至少在google上搜索时)。但是,花了5个小时尝试了很多东西后我还没找到合适的解决方案。
我的情况:
我有一个webform填充我所有产品的datagridview。我希望能够选择其中一个产品,然后在另一个名为productdetails的webform中显示更多详细信息。这些细节应由一些使用产品No获取详细记录的SQL查询生成。但这并不容易!
我尝试过:
1)我试图将值从webform1中的一个文本框传递给webform2而没有成功。由于保护,Webform2.textbox无法评估。
Dear everyone,
My question seems to be a frequent asked question (when searching on google at least). However, after spending 5 hours trying many things i have not found the right solution yet.
My case:
I have a webform with a datagridview populating all my products. I want to be able to select one of the products and then show more details from this in another webform called productdetails. These details shoul be generated by some sql queries that uses the product No to fetch detailed records. But this is not easy!
What I have tried:
1) I have tried to pass the value from one textbox in webform1 to webform2 without succes. Webform2.textbox is inassessiable due to protection.
推荐答案
这篇关于将选定的行值传递到新的webform的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!