Search this site

Blog

Minor Asp.Net development quibble

February 2 2007

Just something I’ve noticed with the Asp.Net label control that a few developers don’t seem to have when I check the source code.

In the attempt to make Visual Studio web development more like Application development, text can be added to a page by developers using a label control, which renders out a span tag with a custom id created at runtime. I want to stress, that these aren’t required everywhere you want text…the amount of asp.net apps I’ve seen online that over-use this element is just crazy, it clutters up source code and will no doubt bloat your build time.

The other thing is when you’re developing forms, please add a label with AssociatedControlID before each form element, this makes the label render out as an html label element for the text box, it’s just good mark up folks.

Minor quibbles as I say. The major ones are to do with the compilation and deployment of .Net websites as a bin library of dll files, which is a nightmare when you just need to do minor changes, you need to upload the entire site every time. I really need to look up a solution for that.

Filed under tech, web apps

James McEwan

Post a Comment

Start yelling

Your email is never published nor shared. Required fields are marked *

Advertising

Your Ad Here