MayoorPatel
Programmer
Hi there I have a form using VB.NET which submits data to the database and then posts back to itself and populates the dropdowns with the values I have just added to the database.
I have a multi select dropdown called "drpCategory" which needs to populate the selected items from the request object once the form posts back to itself.
I have the following code for a single select but this now doesnt work as I have multiple values.
So i need to know how to amend this code for my needs.
Thankyou in advance for any help!
Mayoor
I have a multi select dropdown called "drpCategory" which needs to populate the selected items from the request object once the form posts back to itself.
I have the following code for a single select but this now doesnt work as I have multiple values.
Code:
If Not Request(subcategory.ID.ToString).Equals(String.Empty) Then
subcategory.Items.FindByValue(Request(subcategory.ID.ToString).ToString).Selected = True
End If
So i need to know how to amend this code for my needs.
Thankyou in advance for any help!
Mayoor