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

Is asp.net is a programming language?

0 Answers  


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

0 Answers   Siebel,


what is the difference between console.writeline &console.output.writeline?

2 Answers  


What is the use of dispose method?

0 Answers  


What is the significance of finalize method in .net?

0 Answers  






Can I tap into other windows livetm services?

0 Answers  


What is session in web technology?

0 Answers  


What are server-side comments in ASP.NET?

0 Answers   Winsol Solutions,


You are planning the deployment of an ASP.NET application. The application uses a Visual Studio .NET component named DataAccess that will be shared with other applications on your Web server. You are using Visual Studio .NET to create a Windows Installer package. You need to deploy DataAccess and the ASP.NET application so that they can be uninstalled later of necessary. What should you do? A . Create a setup project for DataAccess. Add the ASP.NET application in a custom action. B . Create a setup project for the ASP.NET application. Create another setup project for DataAccess. C . Create a Web setup project for the ASP.NET application. Add a project output for DataAccess. D . Create a Web setup project for the ASP.NET application. Add a merge module for DataAccess.

3 Answers   Syntax Softtech,


What is the full form of asp.net?

0 Answers  


What does the "EnableViewState" property do? Why would I want it on or off?

4 Answers  


what is session ?how sessions are handeled in application? write the clauses of sql server in their order.

3 Answers   Olive Tech,


Categories