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

Drop down list problem

I am populating a ddl from an Oracle table, this is working fine with one
exception, when I scroll through the list of values in the ddl, right at the
top there is a blank selection. There is no blank in the column of the table
it is populated from, so i must assume that this is default behavoir of the
ddl control? If so how can I prevent this?

Thanks
Jun 19 '07 #1
2 1182

"Problematic Coder" <Pr***************@nospam.comwrote in message
news:e%***************@TK2MSFTNGP06.phx.gbl...
>I am populating a ddl from an Oracle table, this is working fine with one
exception, when I scroll through the list of values in the ddl, right at
the top there is a blank selection. There is no blank in the column of the
table it is populated from, so i must assume that this is default behavoir
of the ddl control? If so how can I prevent this?

Thanks
Sorry not the default behaviour. Why would a control just add a blank
item??

You most likely have a null value in the list which gives you the blank
item. Check your data.

LS

Jun 20 '07 #2
On Jun 20, 7:57 am, "Lloyd Sheen" <a...@b.cwrote:
"Problematic Coder" <Problematic.Co...@nospam.comwrote in message

news:e%***************@TK2MSFTNGP06.phx.gbl...
I am populating a ddl from an Oracle table, this is working fine with one
exception, when I scroll through the list of values in the ddl, right at
the top there is a blank selection. There is no blank in the column of the
table it is populated from, so i must assume that this is default behavoir
of the ddl control? If so how can I prevent this?
Thanks

Sorry not the default behaviour. Why would a control just add a blank
item??

You most likely have a null value in the list which gives you the blank
item. Check your data.

LS
Thanks, you are correct, it is not default behavoir, turns out the
problem was rehashing old code carelessly, in the code behind I was
deliberately placing a blank in the control, like so:
Dim liBlank As ListItem = Nothing
liBlank = New ListItem("", "")
DDLAddYear.Items.Insert(0, liBlank)
I did need it previously but not in this app.
Deleted this and all is good
Thanks again

Jun 20 '07 #3

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

Similar topics

3
by: Don Wash | last post by:
Hi There! I have a Server-side Drop-down box in ASP.NET (VB) page. What do I do to widen the Drop down box's Pull-Down list's width? I'm not talking about the Drop-down box's width but the box...
13
by: Leszek Taratuta | last post by:
Hello, I have several drop-down lists on my ASP.NET page. I need to keep data sources of these lists in Session State. What would be the most effective method to serialize this kind of data...
2
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will...
5
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1);...
4
by: Laura K | last post by:
I have a drop down menu which has a list of subcategories and the initial value is "please choose a Subcategory". When the user chooses a subcategory they are taken to a new page where the drop...
0
by: thebison | last post by:
Hi all, I hope someone can help with this relatively simple problem. I am building a timesheet application using ASP.NET C# with Visual Studio 2003.As it is only a protoype application, my...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the...
0
by: yosri2005 | last post by:
Hello, I'm sure many of you have seen the error message in the subject. I found quiet a few posts on the web regarding this issue, but the ones I saw mainly tackle this issue when you have a...
3
by: jcassan | last post by:
Hello folks. I am new to these forums and have something, which has been stumping me for little while. I am using pspell to spellcheck a scrolling textbox (textarea) containing user input. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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.