While writing code in Visual Studio 2005 you creates a new instance of a ASP.NET TextBox server control, what do you need to do to get the TextBox to display on the Web page?

Options
- Call the ShowControl method on the TextBox.
- Set the VisibleControl to true on the TextBox.
- Add the TextBox instance to the form1.Controls collection.
- Execute the AddControl method on the Web page.


CORRECT ANSWER : Add the TextBox instance to the form1.Controls collection.

Discussion Board
.NET

Add the TextBox instance to the form1.Controls collection.


vishakha 08-27-2014 12:37 PM

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement