![]() |
| ||
| Page.RegisterClientScriptBlock HI All, Can any one tell me What's the difference between Page.RegisterClientScriptBlock and Page.RegisterStartupScript? Thanks in advance! Jazz |
| ||
| Re: Page.RegisterClientScriptBlock 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. |
| All times are GMT -4. The time now is 7:27 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC