PC Review


Reply
Thread Tools Rate Thread

dependent dropdownlists

 
 
mcnews
Guest
Posts: n/a
 
      17th Apr 2011
i need an example of how to populate a top listbox via stored proc
that once an item is selected two other listboxes are populated from
stored procs. when the 2nd listbox item is selected the 3rd is
updated from stored proc.
tia,
mcnewsxp
 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      19th Apr 2011
There is nothing different if you do it using a stored procedure or a
dynamic procedure.

If you use a datatable than this is all you need to do.

dim dt as new datatable
using da as new SQLDataAdapter("YourSPName",TheConnectionString)
da.SelectCommand.commandType = command.SP
da.Fill(dt)
end using
YourListBox.DataSource = dt
YourListBox.DisplayMember = "YourDisplayColumn"
YourListBox.ValueMember = "YourValueColumn"

Normally is the SelectedValue then the where parameter for the next SP



"mcnews" wrote in message
news:acfb9887-3542-4806-92f4-(E-Mail Removed)...

i need an example of how to populate a top listbox via stored proc
that once an item is selected two other listboxes are populated from
stored procs. when the 2nd listbox item is selected the 3rd is
updated from stored proc.
tia,
mcnewsxp

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Better way for dropdownlists =?Utf-8?B?TWFkaXNvbg==?= Microsoft ADO .NET 5 12th Nov 2007 11:41 AM
DropDownLists Mirnes Microsoft ASP .NET 1 18th May 2007 10:11 PM
Using DropDownLists et Microsoft ASP .NET 4 3rd Apr 2006 09:24 AM
dropdownlists in asp.net somersbar@yahoo.com Microsoft ASP .NET 1 20th Mar 2006 10:49 PM
2 dropdownlists Bart Schelkens Microsoft ASP .NET 7 11th Aug 2004 10:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:25 PM.