asp.net - Error with ScriptManager -


hi have following code:

scriptmanager.registerstartupscript (page, page.gettype (), guid.newguid () tostring (), "document.getelementbyid ('divwarning') innerhtml = 'my_message';", true);  

when write same method in class of specific routines (my_tools.cs), method not work:

public static void showerro (page pag, string error)  {      scriptmanager.registerstartupscript (pag, pag.gettype (), guid.newguid () tostring (), "document.getelementbyid ('divwarning') innerhtml =. '" + error + "';"., true);  }  

what reason not working when inside class instead of calling directly on page?


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -