0

This is my code on html page:

$.post("a.asp", {name:txt} ,function(result){
    $("span").html(result);
});

I want to access value of name variable on a.asp page. I have tried so many things about Request.QueryString but it didn't work. Can any one help me?

1 Answer 1

2

If you are using POST the parameters are in Request.Form.

Only the parameters sent using GET are in Request.QueryString.

If you would like to use Request.QueryString you could change your code to this:

$.get("a.asp?name=" + txt, function(result){
    $("span").html(result);
});
Sign up to request clarification or add additional context in comments.

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.