Recently I've been trying to use CSS Adapters along with the Membership/Roles/Provider controls and I've come across an issue where the Adapters cause the page to PostBack twice when using IE. (I tested using IE7 and FF 2.0... but others have confirmed the
issue exists in IE6 as well).
For example, when using the CreateUserWizard and it's Adapter, clicking the submit button (which kicks off the CreateUserWizardStep) causes the page to PostBack twice in a row. From an end-user point of view an error message is displayed on the screen, and
rightly so. By stepping through the code in debug mode, I was able to verify that the first PostBack successfully created a user (and the user shows up in the aspnet_Membership table). However when they wizard tries to create the user for the 2nd PostBack
it fails b/c the user already exists. Hence, an error is thrown and shown to the user.
A similar situation occurs with the PasswordRecovery control - the password is actually reset twice, and two emails are sent to the user.
You can confirm the double PostBack using Fiddler.
fire up Fiddler and go to a page using one of the above controls (and their respective Adapter of course).
Use the control.
Look in the Fiddler "HTTP Sessions" window and you'll see duplicate POST requests for the same page.
Others have reported the same issue, though they didn't root-cause it as being a double-PostBack issue. See here (http://forums.asp.net/thread/1638129.aspx). The only "solution" I've found so far is to disable the Control Adapter for the CreateUserWizard
and PasswordRecovery controls.
Oh, and I do apologize for coming off a bit rude in the other post(s)... it was late, I was tired and frustrated... but now I'm in a much better state of mind.
So, to recap:
using RTM version of CSS Adapters
using asp.net 2.0 Membership/Profile/Roles controls with CSS Adapters
Membership controls + CSS Adapters work fine with FF 2.0
some (possibly all?) Membership controls + CSS Adapters cause double PostBack with IE7 (and others have confirmed same issue with IE6).
Please let me know if there is anything I can to do help resolve this issue.
steve harman
Member
128 Points
38 Posts
CSS Adapters cause multiple PostBacks in IE
Apr 19, 2007 03:15 AM|LINK
Hello CSS Adapter team (and Adapter users)!
Recently I've been trying to use CSS Adapters along with the Membership/Roles/Provider controls and I've come across an issue where the Adapters cause the page to PostBack twice when using IE. (I tested using IE7 and FF 2.0... but others have confirmed the issue exists in IE6 as well).
For example, when using the CreateUserWizard and it's Adapter, clicking the submit button (which kicks off the CreateUserWizardStep) causes the page to PostBack twice in a row. From an end-user point of view an error message is displayed on the screen, and rightly so. By stepping through the code in debug mode, I was able to verify that the first PostBack successfully created a user (and the user shows up in the aspnet_Membership table). However when they wizard tries to create the user for the 2nd PostBack it fails b/c the user already exists. Hence, an error is thrown and shown to the user.
A similar situation occurs with the PasswordRecovery control - the password is actually reset twice, and two emails are sent to the user.
You can confirm the double PostBack using Fiddler.
Others have reported the same issue, though they didn't root-cause it as being a double-PostBack issue. See here (http://forums.asp.net/thread/1638129.aspx). The only "solution" I've found so far is to disable the Control Adapter for the CreateUserWizard and PasswordRecovery controls.
Oh, and I do apologize for coming off a bit rude in the other post(s)... it was late, I was tired and frustrated... but now I'm in a much better state of mind.
So, to recap:
Please let me know if there is anything I can to do help resolve this issue.
Thank You!
-Steve
"css friendly adapter" bug css adapters ie6 createuserwizard ie7 postback