User-1882612923 posted
I am trying to use a ContextKey in my cascading drop down list but the overloaded method is not being called.
This is my cascading drop down:
<
ajax:CascadingDropDown
ID="ddlCarsExtender"
runat="server"
Category="Cars"
TargetControlID="ddlCars"
PromptText="Select a Car"
LoadingText="[ Loading Cars ]"
ContextKey="x1"
ServiceMethod="GetDropDownContents"
ServicePath="~/Controls/MyDDLWebService.asmx"
/>
In my web service my method signiture looks like this:
public AjaxControlToolkit.CascadingDropDownNameValue[]
GetDropDownContents(string knownCategoryValues,
string category)
{
....
}
As soon as I try to add a ContextKey string parameter to the method, the method no longer gets called. I even tried puting the UseContextKey attribute into my drop down list with no success.
How do I get the ContextKey variable passed into the method?