2010-10-08 68 views

回答

1

您是否尝试在updatepanel中注册启动脚本?事情是这样的:

ScriptManager.RegisterStartupScript(this.UpdatePanelID, typeof(string), "UpdatePanelScript", "alert('From the UpdatePanel');", true); 

这里有一个链接到文件:http://msdn.microsoft.com/en-us/library/bb359558.aspx

+0

你能方便的话解释一下吗?我通过updatepanel的第一次加载创建一个函数,我必须在那里设置自己的触发器? – Patrik 2010-10-08 11:36:03