When working with a friend recently, we fell across a little problem with the default ASP.Net controls for membership.
The basic problem seems to be that someone somewhere decided that it would be a good idea to wrap everything in <table> tags and fill things with in-line styles. A lot of people on-line seem to be banging their heads over this and I myself spent quite a while looking about trying to find a solution.
I stumbled across this article on demarzo.net that seemed to have a nice fix for the Log-in control at least. It’s a bit of a hack, but hey, it works. It is simplicity itself, simply overriding the default Render method and stripping out the surrounding table.
This is all well and fine, but we then came to look at the CreateUserWizard. Oh my good Lord ! What a mess; tables and in-line styles everywhere. SO off we tootle again trying to figure out how to get rid of all of that. Again, demarzo helps us out with this by informing us of a new CSS release of the controls.
You can find the exact information here on the ASP.net site. If, like me you’re quite new to some of this, you may want to note the that at the top there is an ‘Examples’ link. Not although the examples really are Demos and not much more, there is a link to the white paper about how to use the CSS friendly adapters (this one helped me out a lot).