如何从asp.net c中的父页面访问子控件# [英] how do I access the child controls from the parent page in asp.net c#

查看:55
本文介绍了如何从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 [^]


这篇关于如何从asp.net c中的父页面访问子控件#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆