Need Help with Jquery, Ajax and C#

Need Help with Jquery, Ajax and C#

Hi

I am trying to use Jquery to do a simple Ajax post to the server but I don't know how to it really.

In the function ready method I bind a click event to a button like this:

$("#btnSave").click(function(event)
{
$.post("FlashCardQuiz.aspx.cs", { name: "test" });
});

So when it is clicked I want to send that "test" value to the server.

Now I don't know how to grab this value on the server side.

Like I would like to grab the value "test" from the name variable and then hold it into a string variable and print it back to the string.

How do I do this?