I have a createuserwizard where I can create username.
The problem is, when I created a username and password, and hit 'Create User,' if there is already a duplicate username, it will show the error message that there is a username already. So, I must created a unique username. Once I successfully created a
unique username, I click to go to the 'Home' page using 'Reponse.Redirect' and it does not take me to the 'Home' page, but automatically log me out of the system.
Here is what I can gather:
The code Home_Click
protected void btnHome_Click(object sender, EventArgs e)
{
ViewState["ID"] = null;
ViewState["userName"] = null;
//create a string variable for message
string message;
//create an email class
Email email = new Email();
try
{
Response.Redirect("Home. ...
Go to the complete details ...