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 / 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 |
What is the difference between ldap and active directory?
what are the events in ASP.net page life cycle?
Explain the difference between dataset and datareader.
can sn.exe can be used before gacutil.exe
What is postback pixel?
Explain Life cycle of ASP.NET page when a request is made.
What is difference between asp.net and asp.net mvc? : Asp.Net MVC
How to use one project files into another project?
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?
What is a bubbled event?
Types of caching. How to implement caching?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)