.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Forgot Password

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :ASP.Net


I am trying to create a forgot password section within my login section and it doesnt seem to work.

In my forgotpassword.aspx page my code looks like this:

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<aspasswordRecovery ID="PasswordRecovery1" runat="server" Height="224px"
SubmitButtonText="Get Password" SubmitButtonType="Link">
<MailDefinition From="soccervillage@yahoo.com"
Subject="Your new password"
BodyFileName="PasswordRecovery.txt" />


In my webconfig page the code looks like this:

<smtp from="soccervillage@yahoo.com">
<network host="localhost" password="password" userName="username" />

I then have created a text file which is called PasswordRecovery.txt and looks like this:

Your password has been reset, <%UserName%>!


View Complete Post

More Related Resource Links

Forgot Password link in Sharepoint FBA login page

Hi All,      I want to keep the Forgot Password link in the login page of the Sharepoint FBA Site.     For this, i have make a copy of the login page in the 12 Hive and added an anchor tag by giving link to Forgot Password (FP) page in custom login page. The FP page is located in one of the document library, for which i have given anonymous access to view items there. Its all good, and i am able to navigate to FP page. But i dont want to show any other controls in the master page also to the anonymous user. And one more thing, i have two zones 1)Intranet and 2)extranet, i want to show different FP pages for both. How can i do this...? Please suggest me with this issue...... Thanks in advance

I forgot my SA password for my instance of SQL 2000


Hi all,

I have SQL 2000 and I forgot my SA password and cannot login as administrator using windows authentication.

Is there any way to reset SA password?

"Mixed Mode" authentication is enabled.

If I change authentication mode in register to Windows only and then after restarting SQL change it back to Mixed, will it reset SA password to "null"?

Thanks in advance.


Forgot SQL Server Agent password

Dear esteemed DBAs,

I am trying to change a SQL Server Agent account name, but it asks me a password. The standard password I typed in don't match and I don't remember what it is. Is there a way to reset the password?

I have 2008 SQL Server Enterprise on Windows.

Thank you in advance.

How to reset Windows 7/Vista/XP/2000 password if you forgot or lost windows password


It is truly very often for us to meet the password problem, sometimes we would forgot windows password or lost windows password, and could not login windows system and make a big trouble. At this time, you would hope to find a way to reset and recover the forgotten password.
Actually, a lot of methods are available to recover or reset the Windows password. But most of them are designed for PC experts, not common PC users, those solutions are too complicated to get it work for us. And in this article, I will show you a professional software tool which could help you to reset forgotten windows password easily.

Total Windows Password Reset is powerful password recovery software to reset Windows admin
passwords for you to login Windows OS without reinstalling the OS when you forgot windows password or lost windows password. It could remove windows password and set the password to blank. Just boot from the program CD/DVD or USB flash drive, choose the account you wish to reset and all will be done. It is not a method to crack or bypass windows password, just remove or delete windows password and set it to blank so you could login windows to set new password.
Below is the guide of how to reset windows password with this software, only 3 steps are needed to reset windows 7/Vista/XP password:

Step 1: Download the setup file of Total Windows Password

Forgot SA password and the windows login in SQL2008


Hello all,

I have forgot the SA password as well as the windows domain id  and password which was used by me, during the install. The SQL service runs under the local sytem account and is a default instance,

Is there any way to get into the server , or a way to find out what was the windows id which was provided by me , when i was installing the SQL (by default we will use an SQLwindows id) during install.




How to Encrypt and Decrypt a Password using SQLSERVER 2005?(Video)

Encypt and Decrypt a Password using SQLSERVER 2005(Video)

symmetric key protected by a password

An alternative could be using a symmetric key protected by a password, as long as your application generates the CREATE SYMMETRIC KEY and OPEN SYMMETRIC KEY statements directly instead of calling them inside a SP (otherwise the password will still be passed as a parameter, and will be in clear in the profiler).

Use Membership but bypass / disable password usage for users


I have an application that does LDAP authentication. The authentication is done on the code behind page of my Login.aspx page. Once the user passes LDAP authentication, a cookie is set and I redirect:

FormsAuthentication.RedirectFromLoginPage(UserName.Text, False)

I would like to setup membership in my application and keep track of some user information. But due to company security requirements, I cannot store user passwords on my application. That must stay on the LDAP server only.

Is there a way to store users but disable password storage on the aspnet_membership table?

help needed: Ldap User authentication using userDN and password



Is it possible to authenticate a user using userDN and password? If so, then tell me the syntax.So far i have tried to authenticate using username and password from my c# code using directoryentry which takes the parameters like domainname,username and password. But i need to authenticate using Userdn and password.

Security: Safer Authentication with a One-Time Password Solution


One-time passwords offer solutions to dictionary attacks, phishing, interception, and lots of other security breaches. Here's how it all works.

Dan Griffin

MSDN Magazine May 2008

Security Briefs: Password Minder Internals


In my last column I introduced Password Minder, the tool I use to manage all of my passwords. It generates a long, random password for each site I visit, and makes it possible for me to use the most complex passwords possible, without ever having to see the actual password material or type it in manually.

Keith Brown

MSDN Magazine October 2004

Force password expiration after x days


Using C# and sqlmembershipprovider forms authentication, is there a way to force user password to expire and need to be reset after x number of days?

So if a user launches the website login.aspx page, when they type their userid, it will check if the password is expired and direct them to a Resetpassword.aspx page?

Password change control won`t accept new password


Hi guys

I am developing a shopping cart with asp.net and sqlexpress. I am using aspnet authentication components to create a backend page. I designed the site to let in only authorized users in. 

Yesterday, I forget my password to login to backend and asked system recover my password. with recover password of the asp.net I was able to receive the temp password. I took that and logged in, of course asp.net forward me to password change component which I am having problem with. 

Every time I change my password , password change shows that I was successfull but after clicking on the continiue button password change component comes back. I went to properties of password change component and entered the main default page as destination but it is not helping. 

I close the IE clear the cache , even restart the machine. When I login always taking me to the password change page.

So, I need your help with this. Please let me know your inputs.


Problem with decrypt password


hello everyone:



I encryped password to the binary variable in sql server with this code:

 DataClasses1DataContext db = new DataClasses1DataContext();
            var info = new passdefine();
            info.username = TextBox1.Text;
            string strcry = TextBox2.Text;
            byte[] bt = new byte[strcry.Length];
            bt = System.Text.Encoding.UTF8.GetBytes(strcry);
            RSACryptoServiceProvider RSA1 =new RSACryptoServiceProvider();

            bt = RSA1.Encrypt(bt,false);

            info.password = bt;


And it worked properly but when Want to decrypt it , I get this error:BAD DATA.  

And I use this code:

DataClasses1DataContext db=new DataClasses1DataContext();
            var info = from m in db.passdefines where m.username == TextBox1.Text select m;
            foreach (var item in info)

                byte[] bt = new byte[item.password.length];
                RSACryptoServiceProvider RSA1 = new RSACryptoServiceProvider();
                bt = RSA1.Decrypt(item.password.ToArray(), false);
                string pass = System.Text.Encoding.UTF8.GetString(bt);

Do Post to Iframe in same page, and Password Field


Hi all,

I need do post of a form in my page to Iframe in the same page.

I set target in form tag.

<body onload="document.formuno.submit()">

                               <form name="formuno" method="post" action="http:\\externalCompany.WebForm.aspx" target="framename"  >

                                               <input type="hidden" name="prueba"  value="pruebatxt" runat="server">

<input type="hidden" name="prueba2"  value="pruebatxt" runat="server">

<input type="hidden" name="prueba3"  value="pruebatxt" runat="server">

<input type="hidden" name="password"  value="MY PASSWORD" runat="server">


Password recovery by entering email not username



I am using the ASP.Net password recovery control.  By default the user needs to enter their username before an email gets sent out to them.

If it possible instead of entering the username, email is used instead?  Alot of my users forgets their username but not email.


Password / Application Security.


I am using a function which requires a user name and password. I have written this username and password in my code behind file. How safe is it? If it is not safe, what are the risks and how to provide security to my code and application?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend