Hi Amrit, > I have two drop-down boxes taking values from > two database tables. The content of the second > drop-down should dynamically changing according > to the selection made in the first.
I don't have code for you in ASP, but here's a rough idea of one way to do it (assuming you want to handle the updates client-side): Start off with the second combo box disabled, but containing every possible choice (i.e. the entire set of sub-categories). Attach a function to the OnChange event of the first combo box that enables and then shows/hides options in the second. If you want to do it server-side, I think you may need two forms on the same page - when the first is submitted, generate the second based on the selection. Cheers Jon ____ • The WDVL Discussion List from WDVL.COM • ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
