The method, Page.RegisterStartupScript is obsolete, as the error says. And again, as the message already said, the recommended alternative is to use ClientScript.RegisterStartupScript. Replace all the Page.RegisterStartupScript
lines with ClientScript.RegisterStartupScript.
Ruchira
All-Star
42946 Points
7023 Posts
MVP
Re: How Can Fix "RegisterStartupScript" error
Apr 28, 2012 10:56 AM|LINK
Hello,
The method, Page.RegisterStartupScript is obsolete, as the error says. And again, as the message already said, the recommended alternative is to use ClientScript.RegisterStartupScript. Replace all the Page.RegisterStartupScript lines with ClientScript.RegisterStartupScript.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.