Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 How to have a drop down list and fill a datagrid based on the drop down list selection.

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-12-15 : 08:24:59
Melinda writes "I have a drop down list called JobCategoryDropDownList and what I'm wanting to do is when someone clicks on a particular Job Category it will pull those Openings and fill the dataset. I have a sql database with all of the job opening information including what category the job is in."

chadmat
The Chadinator

1974 Posts

Posted - 2004-12-15 : 16:21:36
You can set the autopostback proerty of the DropDown to true. Then create a handler for the dropdown's SelectedItemChanged event and fill the dataset in there.

That is the easiest way, not the most efficient, but the easiest.

-Chad

http://www.clrsoft.com

Software built for the Common Language Runtime.
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-12-15 : 16:53:27
You might find this article interesting:

http://msdn.microsoft.com/msdnmag/issues/05/01/CuttingEdge/default.aspx
Go to Top of Page
   

- Advertisement -