Click here to Skip to main content
15,923,006 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi


I am using Asp.net I need help I am using Default Login Template in asp.net I want after Successfully Login User can redirect to Dashboard.aspx . right now its redirecting to manage.aspx
Posted
Comments
ZurdoDev 6-Apr-15 12:23pm    
Search for manage.aspx and you'll see where it is. Likely in the web.config.

Hi malhotra will you please explain clearly or post those Lines here???
 
Share this answer
 
Try it once

SqlCommand cmd = new SqlCommand("select count (*) from password where username='"+txtUname.Text+"' and password='"+txtPwd.Text+"'",con);
//checking the number of row affecting by ExecuteNonQuery()
int index = Convert.ToInt32(cmd.ExecuteScalar());
if (index > 0)
{
Response.Redirect("dashboard.aspx");
}
else
{
Response.Write("invalid details");
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900