I have written a code for textbox element in Sample.aspx file as follows:
<input id="Text1" type="text" runat="server"/>
This auto-generated the code in Sample.aspx.designer.cs
protected global::System.Web.UI.HtmlControls.HtmlInputText Text1;
Then to populate it's html from code-behind I have written this code:
Text1.InnerHtml = "Sample text";
This is giving me an error
HtmlInputText does not contain a definition for InnerHtml
What is the problem. Why it's giving me an error?