I'm trying to get an Ajax CascadingDropDown Control working which gets the values via a webservice from a MS SQL database. I'm based the code on that in
I'm using Ajax toolkit v1.0.10301.0 (Have too as I'm working on part of someone else site)
When I run the page with the CascadingDropDown Control the drop down comes up but with just the prompt text and a 'Method Error 500' in each drop down lists.
Iv'e checked the web and its given advice on settings in the web.config which Iv'e done, but the main advice seems to be to add:
<Microsoft.Web.Script.Services.ScriptService()> _
just before the class or the service
ie
<Microsoft.Web.Script.Services.ScriptService()> _
Public Class CarsService
......
End Class
or just before the functions
<Microsoft.Web.Script.Services.ScriptService()> _
Public Shared ....
in and a number of other links.
When I try this though I get visual studio saying
<Microsoft.Web.Script.Services.ScriptService()> _
is not defined change to
<Script.Services.ScriptService()>
(which is then says is not valid for this declaration type)
or
<System.Web.Script.Services.ScriptMethodAttribute()> _
(which it accepts but doesn't seem to help)
I also tried
<System.Web.Script.Services()> _
which also gave the same suggestions
I tried Iv'e tried
Imports System.Web.Script.Services
and whilst it accepts the import it still give the VS warning
I check that System.Web.Extensions.dll is in my references and it is.
I'm using Visual Studio 2008 with asp.net 2 and ajax Toolkt 1. Can anyone advise me why I can't put the ScriptService() that others sugest
Thanks
Andy
I'm using Ajax toolkit v1.0.10301.0 (Have too as I'm working on part of someone else site)
When I run the page with the CascadingDropDown Control the drop down comes up but with just the prompt text and a 'Method Error 500' in each drop down lists.
Iv'e checked the web and its given advice on settings in the web.config which Iv'e done, but the main advice seems to be to add:
<Microsoft.Web.Script.Services.ScriptService()> _
just before the class or the service
ie
<Microsoft.Web.Script.Services.ScriptService()> _
Public Class CarsService
......
End Class
or just before the functions
<Microsoft.Web.Script.Services.ScriptService()> _
Public Shared ....
in and a number of other links.
When I try this though I get visual studio saying
<Microsoft.Web.Script.Services.ScriptService()> _
is not defined change to
<Script.Services.ScriptService()>
(which is then says is not valid for this declaration type)
or
<System.Web.Script.Services.ScriptMethodAttribute()> _
(which it accepts but doesn't seem to help)
I also tried
<System.Web.Script.Services()> _
which also gave the same suggestions
I tried Iv'e tried
Imports System.Web.Script.Services
and whilst it accepts the import it still give the VS warning
I check that System.Web.Extensions.dll is in my references and it is.
I'm using Visual Studio 2008 with asp.net 2 and ajax Toolkt 1. Can anyone advise me why I can't put the ScriptService() that others sugest
Thanks
Andy