for some reason my page is erroring on the text box. When I view the code is see the textbox initition
but that's not what I want...I want the following
but when i switch back design view vis studion changes it back to the latter... As a result I get the following error
The base class includes the field 'txtusername', but its type (System.Web.UI.HtmlControls.HtmlInputText) is not compatible with the type of control (System.Web.UI.WebControls.TextBox).
I can't select from the dropdown the type I want.. I am dragging the textbox off the toolbox
thanks in advance
Code:
protected System.Web.UI.WebControls.TextBox txtusername;
protected System.Web.UI.WebControls.TextBox txtpassword;
but that's not what I want...I want the following
Code:
protected System.Web.UI.HtmlControls.HtmlInputText txtusername;
protected System.Web.UI.HtmlControls.HtmlInputText txtpassword;
but when i switch back design view vis studion changes it back to the latter... As a result I get the following error
The base class includes the field 'txtusername', but its type (System.Web.UI.HtmlControls.HtmlInputText) is not compatible with the type of control (System.Web.UI.WebControls.TextBox).
I can't select from the dropdown the type I want.. I am dragging the textbox off the toolbox
thanks in advance