Hi,
I have a login page which uses the login control, works great.
I need to manually trigger Login Control Authenticate event,
I have tried running the Login1_Authenticate at Page_Load but it does not work:
protected void Page_Load(object sender, EventArgs e) {
//...
AuthenticateEventArgs auth = new AuthenticateEventArgs(); //probably this is wrong
Login1_Authenticate(Login1, auth);
//...
}
Also I do not know how to manually set the username and password of the Login control in code-behind, as it is only a get property.
My issue is to let user to pass in the encrypted username and password by querystring. (This is via an affiliate link from another site)
The login page then decrypt it and authencated user automatcally without clicking on the Ok/Submit button in the Login Control.
Any Ideas? Thanks in Advanced.