Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 21, 2007 05:22 PM by ticanaer
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:
Your account has been successfully created.
Dec 16, 2006 05:36 PM|LINK
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...
Dec 18, 2006 06:18 PM|LINK
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.
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...
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.
Dec 30, 2006 07:59 AM|LINK
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?
Dec 30, 2006 07:35 PM|LINK
The steps are simple:
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
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,