.NETGURU
unbinding the drop down list
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngdata' list.


Nishat Syed
I have two dropdown list. When I select a value in one the other one
changes. I am using onselectedindex="action_here()"
On the first drop down I have added an extra list called "select a category"
then to my sub "action_here()" I have added
sub action_here()
If cat_id.SelectedItem.Value <> "Select a category" Then
... (Bind the second drop down with values)
End If

This works fine If I am selecting an value. My other drop down also changes
accordingly. But when I select "Select a Category" in the first drop down,
the second drop down still shows the value of the previously selected.
Ideally it should have unbind the data.

This is creating a problem, How do I make the dropdown unbind if nothing is
selected in the first dropdown list

Thanx

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

Reply to this message...
 
    
Andy Smith
try SecondDropDown.Items.Clear()

__
Andy Smith
Keyboard Jockey #3a7-2.78.1

[Original message clipped]

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification