If your call to Page.ClientScript.RegisterStartupScript is not working - i.e. the javascript code is not being written to the resulting html page, make sure that you have <form runat=”server”> on your aspx page. It is apparently required, but it does not result in a runtime or compile time error. It just fails silently.
1 of 1