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 |
Explain the steps needed to be performed in order to create an animation in xaml?
How many web.config a application can have ?
6 Answers Keane India Ltd, Manhattan, Vertex,
What is the displayafter property in updateprogress control?
What is the difference between table and query?
How do you hide the columns?
Can we Run the Application without Build
What are the Types of session management in ASP.NET
How to find last error which occurred in Asp.net ?
How you can stop the validation of ASP.NET controls from client side?
0 Answers Sans Pareil IT Services,
under which namespaces connection strings can be defined?
What is the difference between cache and cookies?
Can the dictionary object be created in client?s scope ?
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)