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

How to bind all the binding controls in a page at once in ASP.NET?

927


What are the events that happen when a client requests an asp.net page from iis server?

950


How many types cache in asp net?

1008


Can you explain architecture of your project ?

1055


How Can assign alias name for ASP.NET Web API Action?

1406


What is session in web technology?

910


Can you explain the importance of finalize method in .net?

982


What is the difference between response.redirect and server.transfer?

973


What are different methods of session maintenance in asp.net?

1002


Which is better asp.net or php?

980


What are the types of caching in asp.net?

997


Give me one example of Web API Routing?

1021


Why is string called immutable data type?

995


What are the security types in asp.net?

1000


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

895