on submit verify username and load same page with successful login instruction and if invalid user then error message to re-enter username
Posted on 2004-08-24
I have an Password Request .aspx page which accept the username and checks the email address in the database and if the username exists in the database then send the auto email to the user with the new password.Now my problem is that i had put the text box to accept the username and one button to continue the process,if user enter his username and if it is correct then on the same page a instruction shoud appear that "An email has been send to ur email id with the password" and if the username is incorrect then another instrunction should appear on the same page that "Incorrecct user name and enter again". NOW HOW do i manage this two instrunction on same page and how do i hide intruction of invalid username when username is corrent and how do i hide information of the successful username when username is incorrect, i want to manupulate all these thing in same page only.I had already write the code on the button_click event the code to send the email but i m not able to manage these hiding and unhiding of information of successful and unsuccessful login on same page.
plz help me out