using textmode into the text field for edit user information

Discussion in 'C#' started by mokbul, Dec 14, 2010.

  1. #1
    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
     
    mokbul, Dec 14, 2010 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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" />
     
    AstarothSolutions, Dec 15, 2010 IP
  3. bankruptcy lawyer

    bankruptcy lawyer Guest

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    bankruptcy lawyer, Dec 15, 2010 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    AstarothSolutions, Dec 15, 2010 IP