且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我们可以访问Web控件页面中的控件吗?在Web表单中提交btn

更新时间:2023-12-03 08:45:16

是的,我们可以.要进行访问,您需要使用FindControl()方法.


yes we can. for accessing you need to use the FindControl() method.
i.e.

CType(ucTest.FindControl("txt_Test"),TextBox).Text = "Text Set from parent Control"



希望这能帮助您理解.



hope this will help you understanding.


您好

这可以帮助您

http://www.codeproject.com/Answers/268500/how-to-find-event-source-in-Page-load#answer1
Hi

This May help you

http://www.codeproject.com/Answers/268500/how-to-find-event-source-in-Page-load#answer1