Hi everyone I have a web page that is using Jquery to send the data from a dialog to the asp.net method using $.ajax, but it's always giving me a 404 error Web Page not found.
The Ajax is giving this link to the request "Localhost:1395/Login.aspx/sendEmail" (Obtained using firebug), but send Email is the method that should be called in the Login.aspx page.
This is the JQuery code:
$.ajax({
type: 'POST',
url: 'Login.aspx/sendEmail',
data: '{"strEmail":"' + $('#hplForgotDialog').find('input[id$=txtForgotEmail]').val() + '"}',
contentType: "application/json; charset=utf-8",
dataType: "json"
});
Any help with this problem would be really apreciated.
Edit: to demonstrate the error a little more I'll add an image depicting the URL error to witch it tries to connect.
