我们可以访问Web控件页面中的控件吗?在Web表单中提交btn [英] can we access the controls which are in web controls page toe the submit btn in the web form

查看:68
本文介绍了我们可以访问Web控件页面中的控件吗?在Web表单中提交btn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里,我只想添加一段代码,并根据用户需求在Web用户控件中添加,因此,出于这个原因,应该每次都提交公用详细信息.
在Web用户控件中
我需要一个表头行与普通表和嵌套表相同的表.
从下一行开始必须填充,如果用户要通过单击+按钮到另一行,请在上表中添加一行

请帮我

here i just want to add a piece of code with in the web user controls added based on the user requirement so becoz of this reason submitting the common details should be done for every time.
In the web user control
i need a table with header row as common and nested table its.
from the next row Must be filled, if user want to another row by clicking on to a +button add a row to the above table

Plz help me

推荐答案

是的,我们可以.要进行访问,您需要使用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


这篇关于我们可以访问Web控件页面中的控件吗?在Web表单中提交btn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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