Accessing usercontrol text page from .aspx page

Posted by Dipu710646 under ASP.NET on 12/1/2012 | Points: 10 | Views : 676 | Status : [Member] | Replies : 1
Hi All,

I have a .aspx page. Usercontrols are getting added dynamically(NOT REGISTERED IN DESIGN MODE).I am adding the controls like below :-

mypanel.Controls.Add(Page.LoadControl("~/MyUserControl.ascx");

I have a textbox in the user control. I want to access the text box from the aspx page by clicking a button.

Do we have anyway to access the the textbox.

Please let me know.

Any response is appreciated.

Thanks,
Dipankar




Responses

Posted by: Krv on: 12/2/2012 [Member] Starter | Points: 25

Up
0
Down
<%# txtbox.ClientId %>

Thanks,
R.Vasanth
MCTS(SQL Server & BI)
http://bigdatatech.blogspot.com

Dipu710646, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response