Last post Jan 28, 2010 11:35 AM by sudheerMCA2006
Jun 30, 2008 10:54 PM|legz11|LINK
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:
For Each LI
As ListItem In ddlInstList.Items
If LI.Value =
LI.Selected = True
And also, here is the ccddl code
Jul 03, 2008 02:10 AM|Jonathan Shen – MSFT|LINK
= value; It should be executed on client.
Jul 06, 2008 10:57 PM|legz11|LINK
Thanks Jonathan I will give that a go and respond.
Jul 25, 2008 02:21 PM|pwilson|LINK
Any luck with this?
Jun 10, 2009 10:54 AM|Fretwire|LINK
Sorry to resurrect such an ancient thread, but I'm trying to do something similar, (ie reset the ccd from the client side), but can't make your solution work.
I add this code snippet:
$get("<%=BusinessUnitDropDownList%>").selectedIndex = 0;
However this gives me a runtime error:
The Controls collection cannot be modified because the control contains code blocks (i.e. <%...%>).
Do you know what's causing this error?
Jun 13, 2009 10:44 AM|Fretwire|LINK
Answering my own thread:
Jan 28, 2010 11:35 AM|sudheerMCA2006|LINK
$get("<%=ddlCostCentres.ClientID%>").selectedIndex = 0;
i am try to execute the above code i got the foolowing error
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).