人生是一场不能存盘的RPG,我只能尽量多搞几个Screenshot

November 10, 2006

RegisterClientScriptBlock vs RegisterStartupScript

Filed under: ASP.NET

RegisterClientScriptBlock一般返回的是客户端函数的包装,而RegisterStartupScript返回得函数在document装载完成后会执行,类似于body onload=”f()”里面的函数;

这两个方法在客户端呈现的代码位置不同,RegisterClientScriptBlock在<form runat=server>之后,而RegisterStartupScript在</form>之前。

Comments »

The URI to TrackBack this entry is: http://recordsome.blogsome.com/2006/11/10/registerclientscriptblock-vs-registerstartupscript/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham