1:.aspx中post传值
$.post("ABP_ExchangeRatelz.aspx", { option: "isdelete", Ori_Currency: Ori_Currency, Year_Month: Year_Month, Region: Region, time: new Date().getMilliseconds() },
.aspx.cs中post取值
string Year_Month = Request.Form["Year_Month"].ToString();
2: .aspx.cs中url传值
location.href = "ABP_ExchangeRatelz_Edit.aspx?op=edit&Region=" + Region + "&Ori_Currency=" + Ori_Currency + "&Year_Month=" + Year_Month;
.aspx.cs中url取值
string Year_Month = Request.QueryString["Year_Month"];
时间: 2024-12-10 09:53:01