Skip to content Skip to sidebar Skip to footer

Cannot Get The Html Textbox Value

I have an html form that goes like this:
Copy

Solution 2:

use runat="server" for each control you need to access from code behind

<inputid="txtemail"  runat="server"type="email"class="form-control" placeholder="Email" required>

then you can get the value as below

mail.From = new System.Net.Mail.MailAddress(txtemail.Value);

Post a Comment for "Cannot Get The Html Textbox Value"