Example: ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "myscr", "alert('test');", true); –Pierre Feb 4 '15 at 11:24 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google sriman.ch 22-Dec-11 6:21am Mark it as solved then.... 5 solutions Top Rated Most Recent Rate this: Please Sign up or sign in to vote. Thanks a lot!! –Andrew Apr 25 at 5:11 | show 2 more comments up vote 16 down vote Try this code... Before, I had a form with a runat=server tag enveloping all the content on my master page, but I took this out.
Any other solution? The first argument to RegisterStartupScript() is a Control or a Page, depending on the overload used, never a string. –Frédéric Hamidi Jan 21 '13 at 7:55 Using GetType() worked thanx... chetan virkar 22-Dec-11 0:55am yup after validating it will redirected to home or main page..
I want to power off multiple Macs everyday at 23:30 (11:30 pm)? Scriptmanager.registerstartupscript Syntax Solution 1 Accept Solution Reject Solution try in the following way: Page.ClientScript.RegisterStartupScript(this.GetType(), "showSaveMessage", ""); this worked for me Permalink Posted 21-Dec-11 19:49pm member6016.1K Rate this: Please Sign Reply novicehere Contributor 3096 Points 853 Posts Re: ScriptManager.RegisterStartupScript in MasterPage problem Nov 19, 2008 04:59 PM|novicehere|LINK Hello There, hope this link helps you out. It's quick & easy.