what is usercontrol how we can use acess the controls that
are present in the usercontrol in the aspx page
suppose we have 2 text boxes in a user control how u can
acess the 2 textboxs in the aspx page
Answer / om shivaya namaha
user control purpose is when ever a group of controls that
used in most of the pages then we can define those controls
as a user control
user.ascx page :-2 textboxes it is containing
textbox1
textbox2
default.aspx:- thes aspx page is going to use the user control
in design default.aspx:-
<@register tagname="User" tageprefix="US" src="user.ascx">
<table>
<tr>
<td><US:User id="Usercont" runat="server" ></td>
</tr></table>
in serverside default page:-
textbox tx=new textbox();
tx= (textbox)Usercont.findcontrol("textbox1");
Is This Answer Correct ? | 1 Yes | 1 No |
What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?
Explain the difference between authentication and authorization.
Explain the use of view state?
How to reduce the width of textbox in editcommandcolumn of datagrid?
Can you explain the basic use of dataview?
what is the difference between this.controls and page.form1.controls and me.controls?
What is Hybrid dictionary
how we can solve machine key error in asp.net?
Different type of validation controls in asp.net ?
1 Answers CTS, Keane India Ltd,
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
Which of the following hosts Can't be used to create .net Application? a) IIS b) Internet Explorer c) ASP.Net d) Windows Shell Which one is correct?
Diff between web user control and web custom control?