如何将值从一个用户控件的文本框传递到C#asp.net中另一个用户控件的标签
问题描述:
如何将一个用户控件的文本框中的值传递给C#asp.net中另一个用户控件的标签。
How to Pass a value from textbox of one user control to label of another user control in C# asp.net.
答
检查下面哪个有类似的Q& A.
http://forums.asp.net/t/1808633.aspx?How+to+pass+value+from+one+ user + control + to + another + user + control + using + c + net [ ^ ]
http:/ /stackoverflow.com/questions/15002810/how-to-get-textbox-information-from-one-user-control-to-another [ ^ ]
https://www.daniweb.com/software-development/csharp/threads/448341/how-to-转移数据在两个用户控制之间 [ ^ ]
http://www.dotnetcurry.com/showarticle.aspx?ID=155 [ ^ ]
Check the below which has a similar Q&A.
http://forums.asp.net/t/1808633.aspx?How+to+pass+value+from+one+user+control+to+another+user+control+using+c+net[^]
http://stackoverflow.com/questions/15002810/how-to-get-textbox-information-from-one-user-control-to-another[^]
https://www.daniweb.com/software-development/csharp/threads/448341/how-to-transfer-data-between-two-user-controlls[^]
http://www.dotnetcurry.com/showarticle.aspx?ID=155[^]
您可以使用QueryString或Session来实现。将值存储在其中然后检索。
否则可以通过以下链接找到另一种方法:
http://stackoverflow.com/questions/ 2969938 / pass-parameter-from-one-user-control-to-another-user-control-in-an-aspx-page [ ^ ]
在用户控件之间传递值 [ ^ ]
问候,
Praneet
Hi,
You can do that by using QueryString or a Session. Store the value in it and then retrieve.
Otherwise another way ccan be found in the following links:
http://stackoverflow.com/questions/2969938/passing-parameter-from-one-user-control-to-another-user-control-in-an-aspx-page[^]
Passing Values between user controls[^]
Regards,
Praneet
谢谢@Mathew Soji和@Praneet Nadkar ..!
Thank you @Mathew Soji and @Praneet Nadkar..!