Last post Sep 21, 2006 01:29 PM by Russ Helfand
Sep 19, 2006 06:25 PM|TheBigOnion|LINK
I started converting my existing login control to the new CSS Adapter. Looks great, but it does not seem to be going into my custom authenticate code. I have a method behind it like this, "protected
void login1_Authenticate(object sender,
AuthenticateEventArgs e)", and I put two breaks in there to see if it would stop, but it never does. Also, when I try to log in with a good account, it just seems to refresh the page. Is there something
I'm doing wrong?
Sep 21, 2006 01:29 PM|Russ Helfand|LINK
Perhaps when you were converting some of your page markup or code to use the adapters you inadvertantly disabled auto-event wire-up. Here is an idea for you to try. Rename your login1_Authenticate method to DoAuthenticate. Then, in the <asp:Login> tag
add the attribute OnAuthenticate="DoAuthenticate". You can explicitly wire events like Authenticate to event handlers like DoAuthenticate with attributes by adding "On" in front of the attribute name. Sometimes that helps in situations where you are having
event handlers invoked simply because they have the right name (i.e., mycontrolname_eventname like login1_Authenticate).
Does the login sample page in the adapter kit work for you on the same computer?
If none of this helps... please try to create a simplified version of the page that doesn't work and post it here. Thanks and good luck.