添加JS脚本
function displayDIV()
{
var tempDIV=document.getElementById("div1");
tempDIV.style.display='none';
}在后台调用
在AJAX下
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(),
"UpdatePanel1", "displayDIV();", true);普通情况
Page.RegisterStartupScript("DIV", "<script>displayDIV();</script>");

浙公网安备 33010602011771号