Thursday, October 2, 2008

RegisterClientScriptBlock and RegisterStartupScipt

The main difference between RegisterClient ScriptBlock and RegisterStartupScipt is as follows :

RegisterClientScriptBlock : Registers the script, after the <form> tag opening, but before any page-controls are rendered.

RegisterStartupScipt : Registers the script after all the page-controls are rendered, but before the closing <form> tag.

No comments:

Best viewed in Internet Explorer 8.