Which of the following syntax is correct to create a textbox in ASP.NET?

127. Which of the following syntax is correct to create a textbox in ASP.NET?

  1. <asp:TextBox ID="txtname" runat="server"></asp:TextBox>
  2. <TextBox ID="txtname" runat="server"></TextBox>
  3. <asp.net:TextBox ID="txtname" runat="server"><asp.net/TextBox>
  4. <asp-TextBox ID="txtname" runat="server"><asp-TextBox>

Answer: A) <asp:TextBox ID="txtname" runat="server"></asp:TextBox>

Explanation:

The 1st syntax is correct to create a textbox in ASP.NET.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.