unbinding a drop down list

Results 1 to 2 of 2

Thread: unbinding a drop down list

  1. #1
    Join Date
    Dec 1969

    Default unbinding a drop down list

    I have two dropdown list. When I select a value in one the other one changes. I am using onselectedindex="action_here()"<BR>On the first drop down I have added an extra list called "select a category" then to my sub "action_here()" I have added<BR>sub action_here()<BR>If cat_id.SelectedItem.Value &#060;&#062; "Select a category" Then<BR>...<BR>End If<BR><BR>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.<BR><BR>This is creating a problem, How do I make the dropdown unbind if nothing is selected in the first dropdown list<BR><BR>Thanx

  2. #2
    Join Date
    Dec 1969

    Default RE: unbinding a drop down list

    sounds like you just need another section to your if statement. Checkout the ELSEIF line i add to your IF statement...<BR><BR>if cat_id.Selecteditem.value &#060;&#062; "Select a category" then<BR> &#039;do something here<BR>elseif cat_id.selecteditem.value = "Select a category" then<BR> &#039;do something here like resetting the value of your other listbox<BR>end if

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts