Wednesday, 18 September 2013

In asp.net what is the difference between using asp.net web control and simple html imput control

In asp.net what is the difference between using asp.net web control and
simple html imput control

In my asp.net web control form i am using two text box 1st is simple input
html control and 2nd is asp.net input web control.
<form id="form1" runat="server">
Email: <input type="text" id="txt_email" name="txt_email" value=""
/><br />
Email2: <asp:TextBox ID="txt_email2"
runat="server"></asp:TextBox><br />
<asp:Button ID="btn_login" Name="btn_login" runat="server"
Text="Button"
onclick="btn_login_Click" />
</form>
I need to know what is the difference using simple control and asp.net
input control both of them pass the value to code behind after the form
submit. can any one help me on this?

No comments:

Post a Comment