|
.控件再UpLoad中,彈出窗口
ScriptManager.RegisterStartupScript(this, this.GetType(), "alert('!');", js, true); 2.控件不再UpLoad中,彈出窗口 3.彈出新的網(wǎng)頁 Response.Redirect("'Default.aspx"); Response.Redirect("'Default.aspx?id=" + this.GridView1.SelectedDataKey.Value.ToString());
AutoId.Attributes.Add("onclick", "window.open('Default.aspx?AutoID=" + 注:AutoId為服務(wù)器控件可以為LinkButton控件
5.注冊前臺事件,關(guān)閉彈出窗體,并且刷新父窗體(結(jié)合4使用.) ClientScript.RegisterClientScriptBlock(this.GetType(), "closeWindow", "CloseWindowReflash()", true); 前臺js函數(shù) function CloseWindowReflash() |
|
|