password problem

1jaws
1jaws used Ask the Experts™
on
<radG:GridTemplateColumn HeaderText="Password" SortExpression="loginPassword"
                          UniqueName="loginPassword">
                          <ItemTemplate>
                              <asp:Label runat="server" ID="lblloginPassword" Text='<%# new string(char.Parse("*"),Eval("loginPassword").ToString().Length) %>'></asp:Label>
                          </ItemTemplate>
                          <EditItemTemplate>
                              <asp:TextBox runat="server" ID="txtlogin" TextMode="Password" value='<%# Eval("loginPassword") %>' ></asp:TextBox>
                          </EditItemTemplate>
                      </radG:GridTemplateColumn>

and I have txtUpdatePassword which I used in popup panel .. how can I show txtUpdatePassword field textmode = password?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Im not exactly sure but you are setting the below textbox to texmode = password. Could you not do the same for the other one?

<asp:TextBox runat="server" ID="txtlogin" TextMode="Password" value='<%# Eval("loginPassword") %>' ></asp:TextBox>
every time you set TextMode="Password"  text will became empty . Is a security behaviour
What you need to do is write "**********" and on UpdateCommand Method of your radgrid ( telerik ) compare if text <>"*********"
if yes :
user has changed so need can update to your table
if no:
user has not changed so don't need  to  update this field.

Author

Commented:
didnt work out.. but thanks for the effort..

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial