Quote:
Originally Posted by imranabdulaziz
Dear All,
I am making web application using Asp.net C#(Visual Studio2005).
I have checkboxlist(which is populated by all the master filed like category , subcategory ,customer , etc ). Now based on selection I generates web control label (to name the field) and dropdownlistbox (which is filled by code and its description).
My problem is all controls comes one after other. I would like label then dropdownlist in a single line. That custlabel and its dropdownlist comes in one line then next say categorylabel and its dropdownlistbox should align in next line and inbetween them one free line .
My code is ...
Please Guide me or atleast give some help full link.
thanks
Most asp.net controls have a CssClass property. When you create the DropDownList or Label or other web control, you can assign the control a CssClass.
All you have to do is create the CSS file, add the class that outlines how the control should be displayed, reference the CSS file in your aspx page, and assign the controls the appropriate class.
I'd look into how to use CSS.
-Frinny