Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > .NET Framework 1.x
|
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 1st, 2006, 10:20 AM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default To show selected related field of DDL1 in DDL 2

I want to show only that items from list in dropdown2 which is assigned in data base if i select any list item from dropdown1
for example
if i have car and bus in dropdown1
and car category have ferrari, bmw,etc and bus have volvo , tata etc
then when i select car in dropdown1 it should show only ferrari, bmw etc item not bus items.
hope u got my problem.
plz help me to solve the problem


 
Old June 1st, 2006, 03:04 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

use the selectedindexchanged event of the first ddl. Grab the value, and use that as a paramether for a sql statment that you execute and retrieve the rows in the related table and bind to your second ddl.










Similar Threads
Thread Thread Starter Forum Replies Last Post
how can selectedvalue of DDL make other DDL visibl hertendreef ASP.NET 2.0 Professional 4 May 20th, 2008 04:38 PM
Output to Excel with selected field beagle Access VBA 1 November 2nd, 2006 09:43 AM
show dynamic textbox when radiobuttonlist selected debjanib ASP.NET 1.0 and 1.1 Professional 1 May 30th, 2006 09:42 PM
Populate field names upon selection from 1st DDL? InsouciantCoquette Classic ASP Databases 0 February 26th, 2006 11:23 PM
Related Field Does Not Display in Query twsinc Access VBA 1 November 18th, 2004 10:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.