Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The base class includes the field 'password', but its type (System.Web.UI.HtmlControls.HtmlInputText) is not compatible with the type of control (System.Web.UI.WebControls.TextBox). <asp:TextBox runat="server" class="WUIformrow_input" ID="password" TextMode="Password" value='andykaz' Text=""></asp:TextBox> please help to solution this problem
Assume your trying to apply CSS class and set the text to appear in it initially to the box? <asp:TextBox id="PasswordTB" runat="server" TextMode="password" CSSClass="WUIformrow_input" Text="andykaz" />
I am trying the following in one of the DataGrid column. The intent is to enable users to edit their password without actually displaying it. <asp:TextBox id='Password' Text='<%#DataBinder.Eval(Container.DataItem, "Password")%>' Runat='server' TextMode='Password'/> <asp:TextBox id='ConfirmPassword' Text='<%#DataBinder.Eval(Container.DataItem, "Password")%>' Runat='server' TextMode='Password'/> But the resultant editbox is just blank, its not retrieving the value from the binding I specified "<%#DataBinder.Eval(Container.DataItem, "Password")%>". If I remove TextMode='Password' the data is retrieved but is displayed to the user. Any one ran into this issue? Any tips/hints appreciated.
A quick google came up with: http://aspadvice.com/blogs/joteke/a...-to-set-text-to-a-Password-TextBox_3F00_.aspx On a Mac at the moment so dont have VS to test anything