I find it hard when using asp.net controls, to make proper css files because I don't know what the html output for the different controls end up as.
For example, if I want to add a div tag using a asp.net control, it's not easy to know what kind of control I can use.
Are there any documentation that shows for each asp.net control, what the rendered html for that control will be? I understand that some controls will probably change it's output due to how it's configured, but most controls will at least follow a pattern here.
The best would of course be a service on the web where you can put in the asp.net control definition and get the rendered html out.
Currently I have to put a control into my webform, run it and check the source in the browser, and if it's not the correct html tag, try another control and repeat. That get's tedious quite fast.
div, use adiv. Not done much WebForms lately but I always tried to keep my ASP.NET control usage to form elements andPlaceHoldercontrols to show and hide content. I always preferredRepeaterover any other data-oriented control, gives you maximum control over the rendered markup. And every time you use aGridView, a kitten doesn't just die it's tortured to a slow and painful death.<div>use a<div>. Why are you trying to overcomplicate matters? You should be changing your css to fit your code, not the other way around.