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...


Question asked by one of interviewer in panal is given
below:
We have 2 user control on same page ,1st user control
contains textbox and a button while 2nd user control have
label.
when ever we click on button click of 1st custom control
button the value of the textBox will get updated into Label
of 2nd custom control.

How to do this.Your help will be appreciated.



Question asked by one of interviewer in panal is given below: We have 2 user control on same page..

Answer / magesh

ControlA ctrlA =
(ControlA)Page.FindControl("<usercontrolname>");
TextBox textBoxA=(TextBox)ctrlA.FindControl("<Textbox name>");

ControlB ctrlB =
(ControlB)Page.FindControl("<usercontrolname>");
Label labelB=(Label )ctrlB.FindControl("<Textbox name>");
Label.Text=TextBox.Text;

Is This Answer Correct ?    9 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

What is the difference between ldap and active directory?

0 Answers  


what are the events in ASP.net page life cycle?

1 Answers  


Explain the difference between dataset and datareader.

0 Answers  


can sn.exe can be used before gacutil.exe

2 Answers   Accenture,


What is postback pixel?

0 Answers  


Explain Life cycle of ASP.NET page when a request is made.

0 Answers  


What is difference between asp.net and asp.net mvc? : Asp.Net MVC

0 Answers  


How to use one project files into another project?

4 Answers   HP,


What is the namespace for encryption?

3 Answers   Astadia, CIA, Wipro,


Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?

2 Answers   Siebel Systems,


What is a bubbled event?

2 Answers  


Types of caching. How to implement caching?

2 Answers   Microsoft,


Categories