Difference Between Page.RegisterClientScriptBlock and Page.RegisterStartUpScript
Posted on 2004-08-27 15:07 Let's DotNet 阅读(425) 评论(0) 收藏 举报
RegisterClientScriptBlock is for returning blocks of client-side script containing functions.
RegisterStartupScript is for returning blocks of client-script not packaged in functions-in other words, code that's to execute when the page is loaded. The latter positions script blocks near the end of the document so elements on the page that the script interacts are loaded before the script runs.
from http://www.dotnetspider.com
RegisterStartupScript is for returning blocks of client-script not packaged in functions-in other words, code that's to execute when the page is loaded. The latter positions script blocks near the end of the document so elements on the page that the script interacts are loaded before the script runs.
from http://www.dotnetspider.com
浙公网安备 33010602011771号