如何将值从一个用户控件的文本框传递到C#asp.net中另一个用户控件的标签 [英] How to Pass a value from textbox of one user control to label of another user control in C# asp.net
本文介绍了如何将值从一个用户控件的文本框传递到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..!
这篇关于如何将值从一个用户控件的文本框传递到C#asp.net中另一个用户控件的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文