Current location: Hot Scripts Forums » General Community » Script Requests » Simple Drop Down Menus


Simple Drop Down Menus

Reply
  #1 (permalink)  
Old 09-09-09, 01:16 PM
caitlint caitlint is offline
New Member
 
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Simple Drop Down Menus

I would have thought it would be easy to find a way to create drop down menus that are limited by other menus selected values.

What I have is about 12 drop down menus which are populated by values all in one view in a SQL database.

I would like to only show values in the menus for which there are data in the database with the other criteria met.

Since there is no way of knowing which criteria are selected my thought was to create a global WHERE clause string that I could remake each time something was selected.

Here is an example of what I have now.

Code:
               <td class="style2">
                    <asp:DropDownList ID="stack_plate_box" runat="server" Height="16px" 
                        Width="239px" DataSourceID="StackPlateID" 
                        DataTextField="plate_description" DataValueField="plate_id">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="StackPlateID" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:PerformanceDBConnectionString %>" 
                        SelectCommand="SELECT DISTINCT [plate_id], [plate_description] FROM [query_view]">
                    </asp:SqlDataSource>
                </td>
I would appreciate any help.

Thank you.
Reply With Quote
Reply

Bookmarks

Tags
drop down menu


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using SiteMapPath to create drop down menus in breadcrumb? mixermanic ASP.NET 6 05-03-07 07:40 PM
drop down menu's pieteke PHP 9 05-02-06 01:12 PM
Need help help with Drop down menus that pull from a database iampedro ASP.NET 0 05-27-05 09:50 AM
Need help making drop down menu's with decription iampedro JavaScript 2 05-14-05 08:37 PM
Problem about drop down menus hollyweiw PHP 3 07-08-04 05:23 PM


All times are GMT -5. The time now is 09:30 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.