![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 神之心 ![]()
![]() ![]() |
各位好,請教一個問題,是關於A網頁跳到B網頁再傳值回到A網頁的問題,目前單一值回傳控制項是可以的,但是如果是多參數回傳多控制項請問該怎麼做,煩請 大家指教,謝謝。 A.aspx protected void btn1_Click(object sender, EventArgs e) { ScriptManager.RegisterClientScriptBlock(UpdatePanel1, UpdatePanel1.GetType(), "", "window.open('../A.aspx?fieldClientID=" + aLabel.ID + "', 'Joseph', '');", true); } B.aspx protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { bLabel1.Text = Request.QueryString["fieldClientID"].ToString(); } } protected void btnCheck_Click(object sender, EventArgs e) { test.Text = "111"; string script = ""; script += "<script>"; script += "window.opener.document.getElementById('" + bLabel1.Text + "').innerHTML='" + test.Text + "';"; script += "window.close();"; script += "</script>"; ClientScript.RegisterStartupScript(this.GetType(), "", script); }
搜尋相關Tags的文章:
[ 跳網頁傳值,多參數傳值 ] ,
本篇文章發表於2014-02-09 22:42 |