comfreakph comfreakph - 1 year ago 76
Ajax Question

Can't access the code behind using ajax post in

This is my code behind:

enter image description here

This is my KO Script:

enter image description here

this is the result when I click my submit button
enter image description here

I there anything wrong with my code?

Answer Source

I have downloaded your solution and got it working

In App_Start\RouteConfig.cs you have the following line which needs to be removed:

settings.AutoRedirectMode = RedirectMode.Permanent;

Also your web method needs to be static

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download