Hi,
I'm using cascading drop down lists rigged up to web service. They are part of a form and the user can choose to cancel adding or updating the record in the database.
I want to reset the drop down lists to their original prompt text. For example "<select an institution>"
I have tried to set the selected index, also ddl.items(0).selected = true and re-binded the data before the call to no avail.
I have also tried the following:
ddlInstList.DataBind()
ddlInstList.ClearSelection()
For Each LI As ListItem In ddlInstList.Items
If LI.Value = "99999" Then
LI.Selected = True
End If
Next
And also, here is the ccddl code
<cc1:CascadingDropDown ID="ccddl1" runat="server"ServicePath="CascadingDropdown1.vb.asmx"
ServiceMethod="GetInstitutions"
TargetControlID="ddlInstList"
Category="Institutions"
PromptText="< select institution >"
LoadingText="Please wait..."
PromptValue="99999" ></cc1:CascadingDropDown>
Any suggestions apprieciated?