[HTML]
<script type="text/javascript">
function JQreload() {
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
}
function EndRequestHandler() {
//這裡放要執行的JQuery,直接複製一模一樣的就可以囉^^
}
</script>
[.CS]
protected void Page_Load(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "<script type=\"text/javascript\">JQreload();</script>");
}
<script type="text/javascript">
function JQreload() {
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
}
function EndRequestHandler() {
//這裡放要執行的JQuery,直接複製一模一樣的就可以囉^^
}
</script>
[.CS]
protected void Page_Load(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "<script type=\"text/javascript\">JQreload();</script>");
}
留言
張貼留言