I am trying to use registration control, provided in the example. I am getting message "Enter nother user name", once I click Continue button. I think here is nothing wrong with the data... I have also noticed that the user is indeed created in the database.
However no redirection is done to the next page... Here is my code:
<asp:CreateUserWizard
ID="createuserwizard1"
runat="server"
SkinID="SampleCreateUserWizard"
CssSelectorClass="PrettyCreateUserWizard"
HeaderText="REGISTRATION"
InstructionText="<strong>We're glad you want to become a member!</strong><br />- Enter a user name and password of your choice (type your password twice to ensure against mistakes).<br
/>- Enter your email address (this is where we'll send your password if you ever forget it).<br />- Make up a question and answer that only you will know (we'll use this information to confirm your identity before sending your password via email)."
UserNameLabelText="User Name:"
PasswordLabelText="Password:"
PasswordHintText="Please use alphabetical characters and at least one number."
ConfirmPasswordLabelText="Confirm Password:"
EmailLabelText="Email:"
QuestionLabelText="Security Question:"
AnswerLabelText="Answer to your Security Question:"
CompleteSuccessText="Your account has been created successfully. You're already logged in so just click the continue button to get started."
ContinueDestinationPageUrl="~/default.aspx"
ContinueButtonImageUrl=""
ContinueButtonText="continue"
ContinueButtonType="Button"
CreateUserButtonImageUrl=""
CreateUserButtonText="create user"
CreateUserButtonType="Button"
After disabling the registration CSS adapter in the browser file, it works!! So there is some problem with CSS adapters for sure, I wonder if maybe this has something to do with the fact that my page is directly inherited from
System.Web.UI.Page. I have noticed in the sample provided it is inherited from
ExamplePage...
It has been confirmed, when the page containing UserRegistrationWizard inherits directly from System.Web.UI.Page, that is when that strange bahaviour is happening. In my opinion the page should not inherit from ExamplePage,
as it should work with any existing page in your application. This seems like a bug in CSS Adapters. Please try to reproduce it by yourself with those steps:
1) Create sample CSS Adapters Tutorial website
2) Change CreateUserWizard.aspx.cs and make the page to inherit from
System.Web.UI.Page. Comment other code relevant to the example...
I don't have those sample projects in front of me (client site), but perhaps there is logic in examplepage.aspx that is needed. Changing where your page inherits from may just require adding this functionality to your base.
Thought for the day: Never be afraid to try something new. Remember that a lone amateur built the Ark. A large group of professionals built the Titanic.
None of the adapters should require your page to be derived from anything special. I'd suggest that you continue to derive from Page.
If you are comfortable with a debugger, you might consider trying to put some debug into CreateUserWizardAdapter and seeing if you can get any insight into what the control thinks the problem really is. For example, you might want to put some break points
in the method called OnCreateUserError. That method is passed an instance of CreateUserErrorEventArgs called e. Take a look at its property values in a debugger. You'll get a better idea of what the membership system thinks the problem is.
The adapter for the CreateUserWizard web control doesn't support the attribute ContinueDestinationPageUrl. As mentioned in the white paper for the kit, not all attributes are supported in these sample adapters. This is always disappointing to hear. Sorry.
In a future rev of the kit, Heidi and I can consider adding support for that attribute.
Speaking of enhancements to the kit, let me give you some background... Microsoft commissioned Groovy bits (Heidi and me) to build this adapter kit. The ASP.NET team was farsighted; they built this amazing control adapter architecture into the ASP.NET framework.
Groovy bits was asked to create a set of adapters to demonstrate the power of this adapter architecture. Simultaneously, Microsoft wanted to give the community a nifty way to make some of the existing ASP.NET controls easier to style with CSS (via the use
of these adapters).
Bugs and areas that ought to be enhanced will, hopefully, be resolved over time as Microsoft releases new revisions to this CSS Friendly adapter kit. Microsoft currently plans to ask Groovy bits to create those future revisions of the kit. That's simply
logical since Heidi and I are the ones who know the most about the code at this point, having invented it. Of course Microsoft owns all of this stuff so they are free to put other development resources to task on this if they prefer. For the immediate future,
however, it looks like Heidi and I will continue to be the ones working on improvements to the kit. Since the first official (non-beta) rev of the adapters was released so recently, we are currently in a mode where we simply monitor the community response
(on this forum and elsewhere). The idea is to get a good, solid set of feedback on the adapters and then plan what to fix or improve next.
You are right: the ContinueDestinationPageUrl attribute of the CreateUserWizard is, indeed, used in the sample we supplied in the kit. I was incorrect when I said that it is not supported. I looked again and recall now that we found that this attribute
is recognized and honored by the framework regardless of whether an adapter is applied. So it works with and without adapters... at least, that's what Heidi and I seemed to find when we built the sample page to demo the adaption of the CreateUserWizard control.
I'd like to return to your original problem and see if I can duplicate it here. What exactly do I need to do to make this happen on my PC? Clearly I can't simply run the sample page from the kit. It is configured with a "fake" membership provider. What
exactly do I need to do to recreate the problem you are seeing? If you can describe that I'll spend the time here to follow your recipe and then do some debugging to try to help you overcome the problem. OK? But first I need the recipe. You said that you'd
provided the steps above but I've reread this thread several times and I don't understand exactly what I need to do yet. Can you walk me throught it a bit more verbosely?
2) Create some real ASP NET membership database and point your site to it by changing web.config
3) Change CreateUserWizard.aspx.cs and make the page to inherit from
System.Web.UI.Page.
4) Once you change the above the code will not compile, because there is some code there relevant to the example... Just comment out this out untll the page compiles.
5) Use CreateUserWizard page, the error should occur: "Please enter another user name" (after you create user). It does not redirect, nothing... No confirmation that the user has been created. Yet the user is created in the database...
Please let me know if any of the steps are unclear and I will eleborate more.It has been a while when I wrked on this, but it would be great to have this resolved as I do not use the adapter for that control... Thanks,
rfurdzik
Contributor
3439 Points
1731 Posts
Problems with Registration Control
Dec 16, 2006 04:09 PM|LINK
I am trying to use registration control, provided in the example. I am getting message "Enter nother user name", once I click Continue button. I think here is nothing wrong with the data... I have also noticed that the user is indeed created in the database. However no redirection is done to the next page... Here is my code:
<asp:CreateUserWizard ID="createuserwizard1" runat="server" SkinID="SampleCreateUserWizard" CssSelectorClass="PrettyCreateUserWizard" HeaderText="REGISTRATION" InstructionText="<strong>We're glad you want to become a member!</strong><br />- Enter a user name and password of your choice (type your password twice to ensure against mistakes).<br />- Enter your email address (this is where we'll send your password if you ever forget it).<br />- Make up a question and answer that only you will know (we'll use this information to confirm your identity before sending your password via email)." UserNameLabelText="User Name:" PasswordLabelText="Password:" PasswordHintText="Please use alphabetical characters and at least one number." ConfirmPasswordLabelText="Confirm Password:" EmailLabelText="Email:" QuestionLabelText="Security Question:" AnswerLabelText="Answer to your Security Question:" CompleteSuccessText="Your account has been created successfully. You're already logged in so just click the continue button to get started." ContinueDestinationPageUrl="~/default.aspx" ContinueButtonImageUrl="" ContinueButtonText="continue" ContinueButtonType="Button" CreateUserButtonImageUrl="" CreateUserButtonText="create user" CreateUserButtonType="Button"
ToolTip="Please register."> <WizardSteps> <asp:CreateUserWizardStep runat="server"> </asp:CreateUserWizardStep> <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server"> <ContentTemplate> <table border="0" style="font-size: 100%; font-family: Verdana"> <tr> <td align="center" colspan="2" style="font-weight: bold; color: white; background-color: #5d7b9d">Complete
</td> </tr> <tr> <td>Your account has been successfully created.
</td> </tr> <tr> <td align="right" colspan="2"> <asp:Button ID="ContinueButton" runat="server" BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="Continue" Font-Names="Verdana" ForeColor="#284775" PostBackUrl="~/DEFAULT.aspx" Text="Continue" ValidationGroup="CreateUserWizard1" /> </td> </tr> </table> </ContentTemplate> </asp:CompleteWizardStep> </WizardSteps> </asp:CreateUserWizard>Buy Sell Domains - DomainsHeat.com
Free ASP.NET controls: Youtube Web Control and Ajax Zoom Control
rfurdzik
Contributor
3439 Points
1731 Posts
Re: Problems with Registration Control
Dec 16, 2006 05:36 PM|LINK
Buy Sell Domains - DomainsHeat.com
Free ASP.NET controls: Youtube Web Control and Ajax Zoom Control
rfurdzik
Contributor
3439 Points
1731 Posts
Re: Problems with Registration Control
Dec 16, 2006 05:47 PM|LINK
It has been confirmed, when the page containing UserRegistrationWizard inherits directly from System.Web.UI.Page, that is when that strange bahaviour is happening. In my opinion the page should not inherit from ExamplePage, as it should work with any existing page in your application. This seems like a bug in CSS Adapters. Please try to reproduce it by yourself with those steps:
1) Create sample CSS Adapters Tutorial website
2) Change CreateUserWizard.aspx.cs and make the page to inherit from System.Web.UI.Page. Comment other code relevant to the example...
Buy Sell Domains - DomainsHeat.com
Free ASP.NET controls: Youtube Web Control and Ajax Zoom Control
roberthking
Member
158 Points
34 Posts
Re: Problems with Registration Control
Dec 18, 2006 06:18 PM|LINK
Russ Helfand
Contributor
3304 Points
744 Posts
Re: Problems with Registration Control
Dec 18, 2006 09:28 PM|LINK
None of the adapters should require your page to be derived from anything special. I'd suggest that you continue to derive from Page.
If you are comfortable with a debugger, you might consider trying to put some debug into CreateUserWizardAdapter and seeing if you can get any insight into what the control thinks the problem really is. For example, you might want to put some break points in the method called OnCreateUserError. That method is passed an instance of CreateUserErrorEventArgs called e. Take a look at its property values in a debugger. You'll get a better idea of what the membership system thinks the problem is.
Groovybits.com
rfurdzik
Contributor
3439 Points
1731 Posts
Re: Problems with Registration Control
Dec 29, 2006 04:09 AM|LINK
If this is a bug in the adapters, should not ASP.NET team address this? This can be easly reproduced, please see steps above..
For now I will just not use CSS adapters for these controls...
Buy Sell Domains - DomainsHeat.com
Free ASP.NET controls: Youtube Web Control and Ajax Zoom Control
Russ Helfand
Contributor
3304 Points
744 Posts
Re: Problems with Registration Control
Dec 29, 2006 08:10 PM|LINK
The adapter for the CreateUserWizard web control doesn't support the attribute ContinueDestinationPageUrl. As mentioned in the white paper for the kit, not all attributes are supported in these sample adapters. This is always disappointing to hear. Sorry.
In a future rev of the kit, Heidi and I can consider adding support for that attribute.
Speaking of enhancements to the kit, let me give you some background... Microsoft commissioned Groovy bits (Heidi and me) to build this adapter kit. The ASP.NET team was farsighted; they built this amazing control adapter architecture into the ASP.NET framework. Groovy bits was asked to create a set of adapters to demonstrate the power of this adapter architecture. Simultaneously, Microsoft wanted to give the community a nifty way to make some of the existing ASP.NET controls easier to style with CSS (via the use of these adapters).
Bugs and areas that ought to be enhanced will, hopefully, be resolved over time as Microsoft releases new revisions to this CSS Friendly adapter kit. Microsoft currently plans to ask Groovy bits to create those future revisions of the kit. That's simply logical since Heidi and I are the ones who know the most about the code at this point, having invented it. Of course Microsoft owns all of this stuff so they are free to put other development resources to task on this if they prefer. For the immediate future, however, it looks like Heidi and I will continue to be the ones working on improvements to the kit. Since the first official (non-beta) rev of the adapters was released so recently, we are currently in a mode where we simply monitor the community response (on this forum and elsewhere). The idea is to get a good, solid set of feedback on the adapters and then plan what to fix or improve next.
Groovybits.com
rfurdzik
Contributor
3439 Points
1731 Posts
Re: Problems with Registration Control
Dec 30, 2006 07:59 AM|LINK
Buy Sell Domains - DomainsHeat.com
Free ASP.NET controls: Youtube Web Control and Ajax Zoom Control
Russ Helfand
Contributor
3304 Points
744 Posts
Re: Problems with Registration Control
Dec 30, 2006 06:25 PM|LINK
You are right: the ContinueDestinationPageUrl attribute of the CreateUserWizard is, indeed, used in the sample we supplied in the kit. I was incorrect when I said that it is not supported. I looked again and recall now that we found that this attribute is recognized and honored by the framework regardless of whether an adapter is applied. So it works with and without adapters... at least, that's what Heidi and I seemed to find when we built the sample page to demo the adaption of the CreateUserWizard control.
I'd like to return to your original problem and see if I can duplicate it here. What exactly do I need to do to make this happen on my PC? Clearly I can't simply run the sample page from the kit. It is configured with a "fake" membership provider. What exactly do I need to do to recreate the problem you are seeing? If you can describe that I'll spend the time here to follow your recipe and then do some debugging to try to help you overcome the problem. OK? But first I need the recipe. You said that you'd provided the steps above but I've reread this thread several times and I don't understand exactly what I need to do yet. Can you walk me throught it a bit more verbosely?
Cheers.
Groovybits.com
rfurdzik
Contributor
3439 Points
1731 Posts
Re: Problems with Registration Control
Dec 30, 2006 07:35 PM|LINK
Hello,
The steps are simple:
1) Create sample CSS Adapters Tutorial website
2) Create some real ASP NET membership database and point your site to it by changing web.config
3) Change CreateUserWizard.aspx.cs and make the page to inherit from System.Web.UI.Page.
4) Once you change the above the code will not compile, because there is some code there relevant to the example... Just comment out this out untll the page compiles.
5) Use CreateUserWizard page, the error should occur: "Please enter another user name" (after you create user). It does not redirect, nothing... No confirmation that the user has been created. Yet the user is created in the database...
Please let me know if any of the steps are unclear and I will eleborate more.It has been a while when I wrked on this, but it would be great to have this resolved as I do not use the adapter for that control... Thanks,
Rafal
Buy Sell Domains - DomainsHeat.com
Free ASP.NET controls: Youtube Web Control and Ajax Zoom Control