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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1065


What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?

957


What is the use of ASP.NET routing?

1110


Why do we need url encoding?

1025


Explain repository pattern in asp.net mvc? : asp.net mvc

1083


Difference between response.redirect and server.transfer?

1076


What is recordset asp?

1028


List the major built-in objects in asp.net?

1048


What are the advantages of the code-behind feature?

1045


Where web.config file is used?

1149


List of words of preprocessor in .net?

991


If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?

2531


Are there resources online with tips on asp to asp.net conversions?

1074


What is an asp.net web form?

1156


Explain diff. Betn dataset and recordset?

1063