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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nitesh KejriwalRank #253 · 9.9K reputationPosted Oct 14, 2012, 4:03 AM EDT
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");
}
}
Shivanand ArurRank #920 · 2.3K reputationPosted Oct 14, 2012, 4:15 AM EDT
Please elaborate your requirement!!! :)
Thanks!!!
Sheikh parvazRank #9,090 · 211 reputationPosted Oct 14, 2012, 10:21 PM EDT
Nitesh KejriwalRank #253 · 9.9K reputationPosted Oct 14, 2012, 10:48 PM EDT
Sheikh parvazRank #9,090 · 211 reputationPosted Oct 14, 2012, 11:07 PM EDT
Nitesh KejriwalRank #253 · 9.9K reputationPosted Oct 14, 2012, 11:18 PM EDT