Interviewer And Interviewee Guide

Web Forms Interview Question:

How to access a control inside a UserControl in .net?

Submitted by: Administrator
Assume there is a user control called UC and there is only a TextBox control inside it. Now drag this user control into a web page, you can use the following code to visit the TextBox control.

((TextBox)UC1.FindControl("TextBox1")).Text = "demo";
Submitted by: Administrator

Read Online Web Forms Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.