?? 非模式窗口返回值.txt
字號(hào):
在非模式窗口間傳遞數(shù)據(jù):window.open
opener 指打開(kāi)窗口父窗口
opener+document.all.+控件名.+value
opener.document.all.txt_Name.value
private void BtnOk_Click(object sender, System.EventArgs e)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("opener.document.all.Hidden1.value='"+zdgMain.GetSelectRowCellText(9)[0].ToString()+ "';");
sb.Append("opener.document.all.txt_Name.value='"+zdgMain.GetSelectRowCellText(2)[0].ToString()+ "';");
sb.Append("opener.document.all.txt_Price.value='"+zdgMain.GetSelectRowCellText(6)[0].ToString()+ "';");
sb.Append("window.close();");
base.WriteJavaScript(this,sb.ToString());
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -