62,046
社区成员
发帖
与我相关
我的任务
分享
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
String scriptString = "<script type=\"text/javascript\"> function open() {";
scriptString += "chuli.style.display='block'; chuli.style.left=(document.body.clientWidth/2) - (chuli.offsetWidth/2); chuli.style.top=(document.body.clientHeight/2) - (chuli.offsetHeight/2);} </Script>";
if (!Page.ClientScript.IsStartupScriptRegistered(Page.GetType(), "open"))
{
Page.ClientScript.RegisterStartupScript(Page.GetType(), "open", scriptString);
}
}