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

Fill table using dropdownlist

I have a dropdownlist with characters from A-Z.

What I want to do is retrive values from the database and display them onto a datagrid or table each time the user selects one of the values in from the dropdownlist.So the values in the dropdownlist will be used to filter the information from the database.

Anyone with an idea on how I can do this.Sample code would be very nice.
Jun 8 '07 #1
1 930
dip_developer
648 Expert 512MB
I have a dropdownlist with characters from A-Z.

What I want to do is retrive values from the database and display them onto a datagrid or table each time the user selects one of the values in from the dropdownlist.So the values in the dropdownlist will be used to filter the information from the database.

Anyone with an idea on how I can do this.Sample code would be very nice.
What language you are using??
Is it a windows application or web application??

how can anyone give you code without this information....??

however In the SelectedIndexChanged event of your dropdown you can write the SQL query like

SELECT * FROM myTable WHERE Tablefield='"& mycombo.text & "'
the rest of the thing about setting up connection,fetching and displaying records in grid and all those.....I think you know
Jun 8 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Eric | last post by:
I'm trying to reproduce the following table layout using CSS only and am having some trouble with it. I'd like them to look identical but I'm having trouble sizing the labels properly as it doesnt...
3
by: tshad | last post by:
I am trying to fill my DropDownList (actually a few of them) with data from my sql table. I am calling Stored procedures for all of them. I would like to use the first line as a place holder...
3
by: phanimadhav | last post by:
hi this is sudheer, i am new one of this ASP.NET .i have one problem,i am using gridview control i know how to place the dropdownlistbox in gridview control.in my gridveiw control have contain...
2
by: Fabio Mastria | last post by:
Hi all! In a my simple project I use callback to fill a dropdownlist with xml data returned by a web service, based on a value which is input via another dropdownlist. NOTE: I can't use...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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
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.