Tuesday 16 June 2015

How to fix error - JavaScript runtime error: '' is undefined

Watch on YouTube:



To fix - replace
ScriptManager.RegisterStartupScript(Page, typeof(Page), "", "DispMess(" + "test" + ")", true);
with:
ScriptManager.RegisterStartupScript(Page, typeof(Page), "", "DispMess('" + "test" + "')", true);

No comments:

Post a Comment