8. June 2011 by
Mads
By default the <asp:Label /> control in ASP.NET render as a <span> HTMl tag. That can be kind of a problem if you have some CSS that only applies to an <label> tag. So, how do you make a <asp:label /> render as a <label> tag?
Actually it's pretty easy. All you need to to is to set the "AssociatedControlID" on the <asp:Label /> to an associated text. The reason for this is that you usually use a label as the caption for a textbox, as it is the nature of the HTML <label> tag.
11. January 2008 by
Mads
So this were the day that I got BlogEngine.Net up and running. I looked at the engine about a year ago, but skipped it again because I at that time just had setup my previous blog and couldn't over come to setup all the style and design again. I'm a programmer, not a designer :)
This week one of my colleages told me that he had downloaded the engine and said that it were so easy to setup and style. Today I had time to try it out and I most say that it is VERY easy to setup! I haven't even read any of te documentation or anything, just did what I guess were needed and it seems to work very well.
So the setup was easy, but what about the style?
Pretty fast I found the "themes" folder and saw the site.master. If you have worked with ASP.NET before, no further instructions are needed here. All you need it in the "themes/template-name" folder. Couldn't be easier.
So right now I'm a happy developer with a brand new blog.