I’ve got an ASP app running under SSL that I want to extend by using JQuery/Ajax and thought I’d write the methods that are called by it in .NET, hosted on the same server. How do I set it up? Should it be within the SSL domain?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s an example. Decorate the web service with the
[ScriptService]attribute and then invoke it:You could do the same with an ASPX page with PageMethods.
The only requirement is that the client is hosted on the same domain and it doesn’t violate the same origin policy. So for example if the .NET page is hosted on HTTPS and your client page on HTTP you cannot send AJAX requests (that’s considered as a violation of the same origin policy).