.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

Password recovery by entering email not username

Posted By:      Posted Date: August 25, 2010    Points: 0   Category :ASP.Net


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.


View Complete Post

More Related Resource Links

Get Login in Application without Entering username and password in Digest Authntication.

Hello Frd'si am using Form authntication and Digest authntication mode. Foe getting Logon computer username i m using digest authntication mode. But when i browse website it's asking for username and password. while already windows login with the same username.I understood that in this auhtntication mode it's required. But r there any configuration with it i am not getting this Prompt ? Any group ploicy ??For IE i have added website into trusted zone but still it's asking for username and password.R there any other way i getting Computer logon name in asp.net application. There are But only work when i run from Editor from IIS it's not retuning value.If you give me some hint or articals link then i m very thnak ful to you.Thank you.

How to enable SSL for smtpclient when use Password Recovery control to send email


 I can send email with secure connection (SSL) in my program;






Accessing Username, password, roles in xml file


Currently I am storing my username and password (passwordFormat="SHA1") credientails in my web.config.  I would like to figure out how to access them in an xml file that I have stored in my App_Data directory rather than the web.config file because I do not want my application restarting everytime I manually add a user (small list of 5 authorized users for the CMS section).

Here is what my web.config section looks like:


<authentication mode="Forms">
      <forms name=".Administration"

How to Pass UserName & Password to codebehind page using jquery

here is login form I would like to use.
Right now it is not communicating with my codebehind page.
How do I modify the jquery  login code to post the username and password to the codebehind?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" type="text/css" href="styles/chop1.css" />
<script type="text/javascript" src="js/chopjs/jquery-1.3.2.min.js"></script>

<script type="text/javascript" src="js/chopjs/three.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="js/ie_png_fix.js"></script>

how do i create a windows form application login for to validate username and password from sql serv

 I would like to know how I can create a login form for my windows form application. The login form must be linked to a SQL server 2005 express edition database (in which the username and passwords are stored). The login form must validate the user using the database and allow them to access the program. 

How can I avoid sending UserName/Password for every call?

Hi I am using UserName/Password authentication with X.509 certificate in my WCF application. In this scenario I have to set UserName/Password credentials on every call that means I have to keep UserName and Password somewhere in my client application (ofcourse after user loged in). I am not sure that's a good idea. Does any body know how can fix this problem? I want user to login one time and afte that my client application can communicate securly with my WCF services. Is it possible? Thanks

Custom Password Recovery

HiI have been working with ASPNETDB for my Security for my website.I am trying to create a custom password recovery page that will reset my password and email it to me.I know there is a PasswordRecovery Function in VWD but I wanted to write my own as I want it do some extra stuff.I have almost completed and have managed to get the code to check for the username and then get the users question, it then displays the question and asks the user to enter the answer.Where I am failing is how to get the code to check if the answer entered is correct against the answer in the users record.There does not seem to be a built in function to handle this, I do not need the answer to be decrypted or anything just want to compare it to the one entered by the user.Please help.Thank you in advanceRonnie

Calculating email address from AD Username in a form

I have  a change request form that has a requied filed where the user enters a valid username.  In my view for this form I want to display this users email address based their username but I when I look at calculated values the username files is not one that I can do calculations from.  Does anybody know how to do this sort of calculation?

return url in aspx refreshes the page when I click login after entering user name and password

Hello,   I need help as I am struggling to login into my web portal on my new sony vaio laptop. I think that I need to do some settings, or download some plugin. Infact I don't know what to do, as I have spent many hours trying to login, but no success. Below is my office website:   http://www.lantec-uk.net/SignIn.aspx?ReturnUrl=%2fdefault.aspx When I enter my credentials and click login, the web page gets refreshed, i.e username and password get erased, rather than taking me into my web-portal. The laptop is having windows 7 home premium, with ie8. I have also tried installing firefox, chrome, opera and safari, but same problem. Somebody please help, as sony has refused to take the laptop back and they are saying that there is problem with website. Similarly, website staff are saying that there is a problem with the laptop and not with the website.   Any help highly appreciated. 

how check username and password store in database

hi i have login page. how check username and password store in database . plz reply with code.i did it by form authentication b ut it not work.

Authenticate users using email id instead of username in FBA



We have a web appliaction configured with FBA (sql and LDAP) and users are authenticated using their username. Now we have a requirement to authenticate users using email id instead of username. we have one solution also that requires to change entry in web.config file for membership provider but it doesn't suffice as it works only for newly added users and not existing ones and site is already in production environment with large user base. Any suggestions to meet this requirement?



Authentication (login - username/password)



I have a website developed in ASP.NET created by someone else, sitting on another server... until now... a simple(ish) setup with login to update content.

The site was zipped up and I was told it would be a simple case of uploading all the files onto the new server.  I've managed to upload the site and it works fine... but I can't access the editing pages as it will no longer accept the username and password when I go to login.

The host server is running ASP.NET v4 and IIS v7.  Hosting is with godaddy.com so I'm also getting used to their way of doing things.

Hope someone can help.


Find User Password by Username Before Login


hi guys,

I have only username. and want to check and grab the password from the database. It is BEFORE LOGGING IN. so I don't think the build-in asp.net functions could be used, right?

thanks a lot!!

Keyset does not exist WCF +SSL + Username & Password authentication


My hosting is DiscountASP.NET

 I get Error "Keyset does not exist".

Please, see error on page: http://www.healthbucket.com/HealthbucketWCF/wcfUser.svc

Section in my web.config of wcf looks:
<serviceCertificate findValue="www.healthbucket.com" storeLocation="LocalMachine"
storeName="My" x509FindType="FindBySubjectName" />
<userNameAuthentication userNamePasswordValidationMode="Custom"
customUserNamePasswordValidatorType="UsernameValidator, App_code" />

I think there are two errors:
1. CryptographicException: Keyset does not exist
2. The certificate 'CN=www.healthbucket.com, OU=Domain Control Validated - RapidSSL(R), OU=See www.rapidssl.com/resources/cps (c)08, OU=GT10747045, O=www.healthbucket.com, C=IL' must have a private key that is capable of key exchange. The process must have access rights for the private key.]

 * I have SSL installed on my hosting and configuration is correct.

I ask technical support of DiscountASP.NET and they tell me &qu

Remote copy and execution given admin username and password for remote machine



I have an application (.exe files) that I need to install on remote machine. For this I need to copy .exe file from my machine A remote machine B  and execute it remotely.

I have local administrative privilleges on remote machine.

For e.g. Username & password on remote machine : "remoteAdmin" , "remotePassword".

However this "remoteAdmin" account is not present in my local admin group on my machine A.

Is there a way to do this ?

Also on remote machine B firewall may be on or off.

I tried this using WMI but there were some issues due to firewall.

I can do this using File.Copy method of System.IO namespace but it needs "remoteAdmin" account to be present in my local machine's (A) Administrators group. I have even tried creating new user account and adding to admin goup using DirectoryServices but I don't know how to set domain for the new account.

Also for remote execution I tried using wmic but it did not work when firewall was on. Iteried remotely running notepad.exe. It works if firewall is off but I cannot assume that firewall would be always off.

So , is there a way to copy file and remotely execute them if I have admin username and password for remote machine ( preferable using C++ or C#) ?

 Also I cannot

how to make login control allow users to login by either username or email address


how to make login control allow users to login by either username or email address 

Send email to admin upon CreatedUser, with new username


I think what I want to do is quite simple: User creates a new account.  Upon save, I have an email that goes to the user saying "thanks", and then I trigger another email in my CreatedUser function that goes to a site administrator.  I want to put the new users username in the body of this email.  I'm using a .txt file for the body of this email, and I'm assuming I have to pass it in somehow, but I don't know how.  Any ideas?  Here's my function as it exists (and works, but I get nothing in the username since I'm not declaring it anywhere):

    Protected Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As EventArgs)
        'set the path to the emailtemplates directory programmatically
        Dim AppPath As String = Request.PhysicalApplicationPath
        'set the StreamReader to a specific text file that contains the body for this email
        Dim srAdmin As New StreamReader(AppPath & "EmailTemplates/NewRegistrationSiteAdminAlert.txt")

        'create the mail message
        Dim messagetoiea As New MailMessage()
        messagetoiea.IsBodyHtml = True
        messagetoiea.From = New MailAddress(myemail@domain.com)
        messagetoiea.[To].Add(New Mail
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