如何从asp.net c中的父页面访问子控件#
问题描述:
我有2页父页面和子页面我想在父页面中访问子页面中的文本框。是否有可能?
I have 2 pages parent page and child I want to access the textboxes in the child page when I am in the parent page. is it possible?
答
asp.net中有一个名为Cross Page Postback的概念。这个概念告诉您可以回发到不同的页面,并且可以在源页面(您已经发布的地方)访问目标页面的对象/控件。
查看下面的文章,这可能对您有所帮助。
回发和跨页发布ASP.NET [ ^ ]
There is a concept in asp.net called Cross Page Postback. This concept tells that you can postback to a different page and can access the objects/controls of the target page int the source page(where you have been posted).
Check out below article, this might help you.
Postback and Cross Page Posting in ASP.NET [^]