473,396 Members | 1,836 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,396 software developers and data experts.

DropDownList font size in ASP 2.0 - I can't change it

I am working with a dynamic DropDownList. It is being created in my VB
code-beside. I applied a css class to it to resize the font and
nothing changed. I then removed that css class and instead set the
ddl.font.size to a number. That doesn't change anything. The font
stays the same size no matter what number I use. Am I using the wrong
property? Why would the css style do anything? Any help would be
greatly appreciated

_
_
ddlSearchValues = New DropDownList()
ddlSearchValues.Width = 180
ddlSearchValues.Font.Size = 4
_
_
Thank you,
--Larry--

Apr 8 '06 #1
2 1759
First of all a few questions.

1.) Have you tried this class on a static control and observed that the
class is making the correct font application ?
2.) If in 1 both questions are true. Have you checked to see if the spelling
of your class is correct ( BTW dont include the dot which preceeds the
classname.
3.) If all of the above are true, then have you looked at the code that the
page renders and observed your class attribute has been applied correctly <
.. . . class="yourClassName" . . . ? You can do this by right clicking
over the page and choosing View Source.

Hope these questions put you on the right track !

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net

<la**************@gmail.com> wrote in message
news:11*********************@v46g2000cwv.googlegro ups.com...
I am working with a dynamic DropDownList. It is being created in my VB
code-beside. I applied a css class to it to resize the font and
nothing changed. I then removed that css class and instead set the
ddl.font.size to a number. That doesn't change anything. The font
stays the same size no matter what number I use. Am I using the wrong
property? Why would the css style do anything? Any help would be
greatly appreciated

_
_
ddlSearchValues = New DropDownList()
ddlSearchValues.Width = 180
ddlSearchValues.Font.Size = 4
_
_
Thank you,
--Larry--

Apr 8 '06 #2
4) Are you using Themes?
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
"OHM ( One Handed Man )" <me@mine.com> wrote in message
news:eT**************@TK2MSFTNGP03.phx.gbl...
First of all a few questions.

1.) Have you tried this class on a static control and observed that the
class is making the correct font application ?
2.) If in 1 both questions are true. Have you checked to see if the
spelling of your class is correct ( BTW dont include the dot which
preceeds the classname.
3.) If all of the above are true, then have you looked at the code that
the page renders and observed your class attribute has been applied
correctly < . . . class="yourClassName" . . . ? You can do this by
right clicking over the page and choosing View Source.

Hope these questions put you on the right track !

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net

<la**************@gmail.com> wrote in message
news:11*********************@v46g2000cwv.googlegro ups.com...
I am working with a dynamic DropDownList. It is being created in my VB
code-beside. I applied a css class to it to resize the font and
nothing changed. I then removed that css class and instead set the
ddl.font.size to a number. That doesn't change anything. The font
stays the same size no matter what number I use. Am I using the wrong
property? Why would the css style do anything? Any help would be
greatly appreciated

_
_
ddlSearchValues = New DropDownList()
ddlSearchValues.Width = 180
ddlSearchValues.Font.Size = 4
_
_
Thank you,
--Larry--


Apr 9 '06 #3

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

Similar topics

2
by: rmorvay | last post by:
I am trying to dynamically build a dropdownlist and bind it to a cell in a grid. I tried to utilize the following code but I am stuck at the point where I bind the dropdownlist to the grid cell. ...
5
by: DC Gringo | last post by:
I've got a command button to submit a value from a dropdown list that should then filter a SELECT query. I'm simply appending a WHERE colx = <variableSelectedFromDropdownList>. How do I pass this...
2
by: Shiju Poyilil | last post by:
Hello, I have a datagrid with only one row and its having 2 dropdownlists, I need to populate the secodn dropdownlist on the basis of the selection in the first dropdown. but I am not able to...
5
by: tshad | last post by:
How can I set the size of text in the dropdown list: <asp:DropDownList ID="ddlQuestionType" runat="server"> <asp:ListItem Value="MS" Text="Multiple Single" /> <asp:ListItem Value="MM"...
1
by: Frank | last post by:
Hello, I have some text boxes and 2 drop down lists (DDL) within a panel like so: Everything updates fine but the values from the DDLs are always the items selected by default. In other words,...
4
by: glenn | last post by:
Hi folks, I am getting an error "Object reference not set to an instance of an object". It seems I have everything in place but something is obviously in err. If you could take a quick peak...
5
by: Victorious1 | last post by:
Why doesn't the the SelectedIndexchanged event for my dropdownlist ever get executed? Why do I get a page not found error when I select a new item? My dropdownlist is within a form. The items...
7
by: =?Utf-8?B?UmVraGE=?= | last post by:
Hi, I am trying to change the font color for the items in a dropdownlist control at run time using ASP.NET 2.0. DropDownList1.Items.Attributes.Add("style", "color:red"); But when I run the...
0
by: sgtmarcjones | last post by:
How do I access a dropdownlist that is nested within a Formview ItemTemplate Gridview Template? I want to see a label (lgbTimeKeep ! TextValue of ddlName dropdownlist) instead of a dropdownlist...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.