码迷,mamicode.com
首页 > Web开发 > 详细

.aspx.cs传值与取值

时间:2015-06-10 19:14:41      阅读:242      评论:0      收藏:0      [点我收藏+]

标签:

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"];

.aspx.cs传值与取值

标签:

原文地址:http://www.cnblogs.com/rookie-26/p/4566843.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!