how to access the login controls login button to change the default postback url.
how to access the login controls login button to change the default postback url by writing some code for it.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nitesh KejriwalPosted Oct 14, 2012, 8:03 AM
protected void LoginUser_Authenticate(object sender, AuthenticateEventArgs e)
{
int userID = 0;
Login login = sender as Login;
//The below line validates the user from DB
userID = controller.Authenticate(login.UserName, login.Password);
e.Authenticated = userID > 0 ? true : false;
if (e.Authenticated)
{
Response.Redirect("Admin/Main.aspx");
}
}
Nitesh KejriwalPosted Oct 15, 2012, 3:18 AM
Sheikh parvazPosted Oct 15, 2012, 3:07 AM
Nitesh KejriwalPosted Oct 15, 2012, 2:48 AM
Sheikh parvazPosted Oct 15, 2012, 2:21 AM
Shivanand ArurPosted Oct 14, 2012, 8:15 AM
Please elaborate your requirement!!! :)
Thanks!!!