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

Dropdownlist adding data after data bound with another datasource

Im farily new to the .Net so please bear with me. I have several
dropdownlist that is bound to a sql string.
For example
dim sqlstring as string="Select books from SuborgT where books=New"
I then bind this and it gives me the "new" in the dropdownlist.
What I need is just like in a combobox in Ms Access is to not only
give you the source but you can also create the record source in it.
I need for the dropdownlist to include "Old", and "FY". Of course I
can do an items.add just for the books but I have several dropdownlist
that have several items in it.
I tried using the add item... For example
dropdownlist.items.add("Select books from SubOrgT where books not=" &
"'" & dropdownlist.seletecteditem.value & "'")
but this doesn't work it just adds another item to the dropdownlist
that says Select book.....
can anyone tell me why basically I can't add two sources to the
dropdownlist and is there another way to do this.
**please bare with me I don't have the code in front of me.
Nov 20 '05 #1
0 1060

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

Similar topics

1
by: Darren | last post by:
hi i have got a dropdownlist in a templatecolumn and I am trying to load it with values. this is the code in the testGrid_EditCommand function testGrid.EditItemIndex = e.Item.ItemIndex;...
8
by: tshad | last post by:
Can you databind a dropdownlist to another dropdownlist? I have 2 identical list. I am getting my data from a DataReader, so as soon as I have bound the first DDL, I can't do it again to the next...
2
by: zaki.agha | last post by:
Hi I have a aspx application written in c#. I have created a datagrid control on the page. One of the columns in the control is a dropdownlist. I would like to set the data source of the...
5
by: Mike | last post by:
In ASP.NET 2.0 I have a dropdownlist populated from a sqldatasource. The dropdownlist values are successfully populated from a database table. I would like to add the value "Select Company" which...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.