Oct
31

ASP .Net 2.0 Login Control Formatting

There are sometimes when I truly wonder if designers and developers have it out for me.

Take for instance, the ASP .Net 2.0 login control. The designer wants it to look one way, however the .Net login control call only gives you so many options for style and layout. What is a front end architect to do?!

Thankfully, I’ve been blessed with the knowledge of the view as template option in Visual Studio 2005. The “view as template” option allows you to expand the normal login control code to a more complete view including the table that incapslates all the labels and text boxes.

To get to this magic option, do the following:

  1. open the page with the login control you want to expand
  2. view the page in design view
  3. select the little black arrow to the right side of the control on the page
  4. select ‘view as template’ in the drop down
  5. switch back to the code view and skin to your hearts desire

1 Comment to “ASP .Net 2.0 Login Control Formatting”

  • Nice, you just made my day (as you know). This is great. I have struggled to style this control for a while. I know you can view the source with firebug and get all the elements, but you just cannot style things exactly how you want. Until NOW. I was having an issue with the submit button alignment, and now I can control it how ever I want. Thanks for the sweet tip.

Leave a comment

What is this?

This little blog happens to be the personal ramblings of one April Holle - I'm female, outspoken, webbie, a community evangelist, and Principal of Made Better Studio. Check out the about section for more info.

What People Are Saying…