62,073
社区成员
发帖
与我相关
我的任务
分享
function aaa() {
$.ajax({
type: "post",
url: "Ajax/Ajax2.aspx?" + (new Date()).valueOf(),
data: { dbType: "StatusList" },
dataType: "html",
success: function (data) {
$('#divmsg').html(data);
},
error: function (a, textStatus, errorThrown) {
$('#divmsg').html('ajax错误');
}
});
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string txt1 = Server.UrlDecode(Request["dbType"].ToString());
Response.Write(txt1 + "</br>" + txt2);
}
}
using (StreamReader reader = new StreamReader(context.Request.InputStream))
{
string requestJson = reader.ReadToEnd();
//Do Something
}
[HttpPost] ?