Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6112015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:41:48+00:00 2026-05-23T14:41:48+00:00

I have a webform gridview. In that one columns is password. I want to

  • 0

I have a webform gridview. In that one columns is password. I want to allow the users to change the password. there are few issues.

In the Edit template I have mentioned the password column TextMode as Password. So it shows blank when I click on the edit button.

So when I click on the edit mode the password column should display the password mask characters ‘*’ and if the user changes the password it should be updated on the database.

I am using the SHA1 encryption for the password so I think I can retrive the password value from the db and keep it on the frontpage won’t be any security issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:41:49+00:00Added an answer on May 23, 2026 at 2:41 pm

    Finally I found a solution for this issue with jQuery.

    May be useful to someone.

            <asp:TemplateField HeaderText="Password">
                <EditItemTemplate> 
                    <asp:TextBox ID="txtPassword" runat="server" Width="98%"
                        TextMode="Password" MaxLength="50" Text='<%# Bind("UserPassword") %>' CssClass="blankPassword"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ErrorMessage="Required"
                        Display="Dynamic" ControlToValidate="txtPassword" ValidationGroup="Saving" CssClass="RequiredValidationMessage"></asp:RequiredFieldValidator>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="lblPassword" runat="server" Text='*****'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                        <asp:TextBox ID="txtNewPassword" runat="server" Text='<%# Bind("UserPassword") %>' Width="95%"
                            TextMode="Password" MaxLength="50"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvNewPassword" runat="server" ErrorMessage="Required"
                            Display="Dynamic" ControlToValidate="txtNewPassword" ValidationGroup="Adding" CssClass="RequiredValidationMessage"></asp:RequiredFieldValidator>
                </FooterTemplate>
                <ItemStyle Width="30%" />
            </asp:TemplateField>       
    
    
    <script type="text/javascript" language="javascript" charset="utf-8">
            $(document).ready(function() {
    
                $(function() {
                    $("input[id$='txtPassword']").live("click", function() {
                    $tb = $(this);
                        $("#PasswordEdited").val("true");
                        $tb.val("");                        
                    })
                });
                $(function() {
                    $(".blankPassword").each(function() {
                        $tb = $(this);
                        $tb.val('*****');
                        $tb.removeClass("blankPassword");
                    })
                });
            });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple webform that will allow unauthenticated users to input their information,
In my Webforms 3.5 application, I have a GridView of users that displays the
I have a webform that is a survey for users to fill using a
I have a .NET webform that has a file upload control that is tied
On my C# asp.net webform I have a search page that has roughly 20
Say you have a web form with some fields that you want to validate
I'm developing a basic web form that allows users to search certain columns in
I have a WebForm with 4 combo boxes, which allow user to define different
I have a WebForm application that generates a Crystal Report and streams it to
Hi everyone and thanks for looking. I have a webform that hooks into a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.