How to call login control's LoggingIn event manually
Hi All,
I am using asp.net login control in my login screen for one of my project.
I am using forms authentication in that project.
After I enter user name and password & clicked on "log in" button of the login control, then the event Login1_LoggingIn(object sender, LoginCancelEventArgs e) is fired followed by Login1_LoggedIn
event.
Now my requirement is i have to call the event Login1_LoggingIn in page load without clicking on "log in" button after i set the username as Login1.UserName = "username" in my code behind.
How do i login by directly calling the above event without clicking the "log in" button manually.
Also how can i set the password for login control through code behind.
please anyone suggest me some tips..
thanks & regards,
kalyan
|