ajax post getting value in CLASSIC asp

后端 未结 2 1683
粉色の甜心
粉色の甜心 2021-01-07 02:15

I am trying to get the value of the posted textbox using jquery AJAX:

This is my code:

$(document).ready(function(){
$(\'#submitButton\').click(funct         


        
相关标签:
2条回答
  • 2021-01-07 02:33

    Your ajax is using POST, ASP will need to get the value using request.form instead of request.querystring - alternatively, change your ajax to GET.

    0 讨论(0)
  • 2021-01-07 02:49

    Your form is POSTing so you can't access the variables you send via Request.QueryString but rather via Request.Form. Alternatively, change your ajax call to type:'get'.

    0 讨论(0)
提交回复
热议问题