2

How do I go about making true ajax requests to an asp.net page? (Not update panels). I read this tutorial but couldn't get it working. Is there a better approach? Or should this work?

http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/

3
  • 2
    What exactly doesn't work? What do you have so far? No, it's the best approach. Yes, it should work. Commented Nov 14, 2010 at 1:10
  • @negative that was rather positive ;) ~ @nick you should really really share some code that you've tried or illustrate what's not working for you so we know what your level of understanding is. Commented Nov 14, 2010 at 1:14
  • I understand the concept of using jquery, I just didnt know how the rest works, like do you mark your methods with webrequest. Just trying to see what techniques are available. I am new to Ajax. Commented Nov 14, 2010 at 7:58

2 Answers 2

1

The standard today is using JSON to get the job done. That means you'll be using JavaScript, and when you're using JavaScript jQuery is your friend.

Here's some example code that uses AJAX, jQuery, and a .NET Web Service. Learn it, love it, live it.

Sign up to request clarification or add additional context in comments.

Comments

0

Try PageMethods. It will be easier. You're living in a .NET world, use the .NET tools.

Here's a page to get you started.

http://aspalliance.com/1922

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.