Hi
In one part of my project i have to use the HTML controls for some reasons, but when i write the code behind i am getting redline under the input.text with a message
" Error 73 'System.Web.UI.HtmlControls.HtmlInputText' does not contain a definition for 'text' and no extension method 'text' accepting a first argument of type 'System.Web.UI.HtmlControls.HtmlInputText' could be found (are you missing a using directive
or an assembly reference?) "
here is the HTML control
<input name="name" placeholder="Your name" type="text" id="name" runat="server" required/>
and here is my behind code:
protected void submitMsg_Click(object sender, EventArgs e)
{
MailMessage mailmsg = new MailMessage();
mailmsg.From = new MailAddress("info@bea.com");
...
Go to the complete details ...