后台无法调用js的函数?
xxx.aspx页面写了个函数
<script type="text/javascript">
function ShowMask() {
......
}
</script>
xxx.aspx.cs中
这个页面某个按纽事件:
protected void Print_Click(object sender, EventArgs e)
{
…………………………
ClientScript.RegisterStartupScript(ClientScript.GetType(), "", "parent.window.ShowMask();", true);
ClientScript.RegisterStartupScript(this.GetType(), "showMask", "<script>ShowMask()</script>");
ClientScript.RegisterClientScriptBlock(this.GetType(), "showMask", "<script>ShowMask()</script>");
}