jquery ajax post to .aspx page load - how to read variable p
jquery ajax post to .aspx page load - how to read variable posted?
我正在尝试向aspx页面发布ajax帖子。如何读取变量"myVar"? 在下面的代码中HttpContext.Current.Request("myVar")
什么也没返回
var p = { "myVar": JSON.stringify(tableOBJ) };
$.ajax({
type: "POST",
url: "Default2AJAX.aspx",
data: p,
success: function (data) {
}
});
默认2AJAX.aspx代码隐藏
Partial Class Default2AJAX
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim s As String = HttpContext.Current.Request("myVar") ''not working???????
End Sub
End Class
我认为应该是
HttpContext.Current.Request.Form("myVar")
相关文章:
- 节点Js:How to catch a“;没有这样的文件或目录“;读取线模块出错
- jQuery AJAX write to XML
- grep in JQuery to C#
- how to convert html <div> to pdf
- Node.js - POST to iFrame?
- SVG xml to image
- Advantages to DOMParser vs template & innerHTML
- how to split a string with ','
- How to declare a Map containing certain properties with flow
- Php variable obj to js
- 如何在submit to sightly时将表单输入值作为参数传递给WCMUsePojo
- D3JS selectAll to append rect
- Javascript connect to websocket
- Underscore each to update collection
- 在哪里可以找到R-to-JavaScript编译器
- SCEditor BBcode to HTML parsing
- Javascript RegEx to XML Schema RegEx
- jquery ajax post to .aspx page load - how to read variable p
- Ajax to read PHP
- How to read an doc file from a server and then upload it to