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
Post a Comment