I know you can do this with the following
ClientScript.RegisterStartupScript
But is there a cleaner way to do this. I heard this is a messy way of calling jscript functions and i should never do it. Is this true?
I know you can do this with the following
ClientScript.RegisterStartupScript
But is there a cleaner way to do this. I heard this is a messy way of calling jscript functions and i should never do it. Is this true?
I am not fully aware about what the best practice is. But in my case I use jGrowl to notify the user whether an action either succeded or failed, i.e.:
ScriptManager.RegisterClientScriptBlock(this.Page,
typeof(Page), Guid.NewGuid().ToString(),
"$.jGrowl('The Group was successfully created, { theme: 'succeeded'});", true);
Hope this helps!