J
JJ
Using asp.net 1.1
I am trying to have a consistent look for the webcontrols. Right now, every
time I use textbox controls, I manually change the font property, size
property, and other property to the default values that I use for all
webcontrols. So a lot of manual work. To streamline the process, I see two
possibilities.
1. Would it be better to do this by extending a textbox control by creating
my own control (ie creating a web control project for each controls that I
use, be it label, dropdown textbox etc)
2. Use the CssClass property of each webcontrol to control.
Problem with the creating my own control is that to create the dll, I have
to create web control project for each control (to have this new control in
the toolbox of IDE). I thought I just need to create the new class that
extends the textbox class but I guess that is not possible (without creating
a new project)?
Problem with the using CssClass is that I also have to manually add link tag
for every single page and setting value for CssClass.
How do you go about solving this problem? What is the best way? Any
recommendation and advice will be appreciated.
Thanks
I am trying to have a consistent look for the webcontrols. Right now, every
time I use textbox controls, I manually change the font property, size
property, and other property to the default values that I use for all
webcontrols. So a lot of manual work. To streamline the process, I see two
possibilities.
1. Would it be better to do this by extending a textbox control by creating
my own control (ie creating a web control project for each controls that I
use, be it label, dropdown textbox etc)
2. Use the CssClass property of each webcontrol to control.
Problem with the creating my own control is that to create the dll, I have
to create web control project for each control (to have this new control in
the toolbox of IDE). I thought I just need to create the new class that
extends the textbox class but I guess that is not possible (without creating
a new project)?
Problem with the using CssClass is that I also have to manually add link tag
for every single page and setting value for CssClass.
How do you go about solving this problem? What is the best way? Any
recommendation and advice will be appreciated.
Thanks