Last post Dec 07, 2017 09:50 PM by ishigum
Oct 09, 2008 10:16 AM|krazykatt|LINK
I have three cascading drop downs on an ASP.NET 2.0 aspx page. I do not have UseContextKey or ContextKey attributes set, but for
whatever reason my first cascadingdropdown never fills, instead the only entry is [Method error 500] . When I examine the http response
using web development helper I see the following message
"Invalid web service call, missing value for parameter: \u0027contextKey\u0027."
Why the hell is the toolkit looking for a ContextKey even though the ContextKey and UseContextKey attributes are not defined? You'll notice
that in the cascadingdropdown example in the samplewebsite that whenever ContextKey and UseContextKey are not defined there is no need to
specify ContextKey in the parameter list for the dropdown webservice method.
PLEASE HELP!!!! Here is the pertinent code - (the webservice code behind follows the aspx script -- the functions for the dropdowns are overloaded with a function that
has ContextKey in its parameter list, and one that doesn't)
//webservice code behind
classTable = classAdapter.GetClassesByServiceIdNoPFPA(serviceId);
classTable = classAdapter.GetClassesByServiceId(serviceId);
Dec 29, 2008 09:09 AM|ReinoutW|LINK
Avoid using web- or scriptmethods with the same name, so if you want to overload a method with one with an extra parameter (even if it's contextKey), use another name.
Dec 07, 2017 09:50 PM|ishigum|LINK
You have to leave that parameter out. I'm using version 22.214.171.124 and I had to leave that parameter out in order for it to work. I also had to name the prefixText and count parameters exactly the same because I was getting an internal server error for some
reason when I tried using my own parameter names.