0
点赞
收藏
分享

微信扫一扫

html和ashx之间的传值以及js和aspx传值

html 代码

var content = window.location.href;
var ori = content.split('?')
console.log(ori[1])
GetJsonByUrl2("getData_stock2.ashx?workline=" + ori[1], get_html);

$.ajax({
         type: "post",
         url: "Handler1.ashx",
         data: { shuru},
         success: function (data) {
         document.getElementById("content").innerHTML = data;
         }
});

getData_stock2.ashx代码、

context.Response.ContentType = "text/plain";
//string ORGID = Convert.ToString(context.Session["ORGID"])
string or = context.Request["workline"];

Handler1.ashx代码

public string shuru;
shuru=context.Request["shuru"].ToString();

JS代码

window.location.href="Programs/calendar/workday2/calendar.aspx?workline="+workline;


calendar.aspx代码

public string workline;
workline= Context.Request["workline"];

举报

相关推荐

0 条评论