Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



what is usercontrol how we can use acess the controls that are present in the usercontrol in the as..

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

Post New Answer

More ASP.NET Interview Questions

hi everyone. can anyone send me wipro interview questions on .net. plz its urgent

1 Answers   Wipro,


calling result set one procedure to anothar procedure in sql2000

0 Answers  


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

0 Answers  


Is asp.net mvc still used? : Asp.Net MVC

0 Answers  


Describe the Server Control Events of ASP.NET?

0 Answers   SwanSoft Technologies,


Where the assembly is stored in asp.net?

0 Answers  


Is overloading possible in web services?

3 Answers   Microsoft,


what is use of doctype tag in asp.net

1 Answers   TCS, Wipro,


What is asp.net with mvc? : Asp.Net MVC

0 Answers  


How to Insert a TextBox value in to Sql database using C# coding?

17 Answers   HCL, Sona, TCS,


Differentiate between structure and class.

0 Answers  


What is boxing and unboxing ?

7 Answers   Accenture, Infosys, MedTek,


Categories