473,399 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

solving consistent look problem

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
Oct 30 '06 #1
2 1194
You are partially correct on #1. You will have to create a library to
contain the control to get it on the toolbox. This is still a great option,
as you can reuse acros multiple projects.

#2 is also a good option, but you will have to set the CSS for each control,
or create a snippet with the control attached to CSS and reuse it.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
"JJ" <no****@nospam.comwrote in message
news:uz**************@TK2MSFTNGP04.phx.gbl...
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

Oct 30 '06 #2
JJ wrote:
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.
It would be best to use CSS, as this is exactly what it's made for.

You don't even need to use CssClass to get a little bit of styling. For
example, if it's only text box font you want to control, you can create
a style definition such as the following that will be picket up by every
input box:

input, textarea
{
font: 11px Arial;
}

apathetic
Oct 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Vinay Aggarwal | last post by:
I have been thinking about the lazy initialization and double checked locking problem. This problem is explain in detail here http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html...
10
by: Juha Haataja | last post by:
I have been learning Python since April, and would like a few comments from the experts on list processing. I managed to implement a Python code for solving the so-called Einstein's Riddle, see...
16
by: Bret Pehrson | last post by:
I've converted a non-trivial C++ library to managed, and get the following unhelpful linker error: Assignment.obj : error LNK2022: metadata operation failed (80131195) : Custom attributes are...
7
by: Nick | last post by:
Hi, I am wondering what people do to achieve a consistent look and feel for their websites? Does anybody here do anything similar to the Composite View design pattern, where a view renderer...
16
by: Martin Jørgensen | last post by:
Hi, I've made a program from numerical recipes. Looks like I'm not allowed to distribute the source code from numerical recipes but it shouldn't even be necessary to do that. My problem is...
1
by: bparanj | last post by:
Hello, I have been a software developer for the past 10 years now. I get job descriptions that requires problem-solving skills as one of the most desirable skills in a candidate. But there are...
1
by: bparanj | last post by:
Hello, I have been a software developer for the past 10 years now. I get job descriptions that requires problem-solving skills as one of the most desirable skills in a candidate. But there are...
8
by: digitalorganics | last post by:
What are the reason one would get this error: TypeError: Cannot create a consistent method resolution order (MRO) for bases object ?? I can provide the code if needed....
8
by: jpullam | last post by:
It was suggested elsewhere by a moderator that it is a good practice to use "* {margin:0}" at the beginning of my style sheet to turn off the browser-dependent spacing. Presumably this is one step to...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.