日期:2014-05-17 浏览次数:20433 次
string script = "<script>setTimeout(function(){ alert('" + strMsg + "');},1000)</script>"; this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), script);
------解决方案--------------------
调用前台js方法
Page.ClientScript.RegisterStartupScript(GetType(), key, "<script>setBar()</script>");
------解决方案--------------------
string script = @"alert('" + result + "')";
this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(),Guid.NewGuid().ToString(), script,true);
------解决方案--------------------
[Quote=引用:] C# code string script = "<script>setTimeout(function(){ alert('" + strMsg + "');},1000)</script>"; this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToStri…… [/Quote]
------解决方案--------------------
ScriptManager.RegisterStartupScript(Me, Me.GetType, "", "restore();c1();setBar();", True)
------解决方案--------------------
onclick="restore();c1();setBar()"
------解决方案--------------------
原来还可以这么用,见识了.
<script language="javascript" type="text/javascript"> function GetIT() { alert("haha"); } function GetIT2() { alert("haha2"); } function GetIT3() { alert("haha3"); } </script>
------解决方案--------------------
是不是TD的问题