I am trying to do a ajvascript alert message box using :
ScriptManager.RegisterStartupScript(this, this.GetType(), "err_msg", "file_error()", true);
This works perfectly when the line above is put in the Page_Load of the page. However, when it is in another class and the Page_Load calls the object function, it does not work. I've stepped through the code and its as if it just ignores it. There is no error.
Can anyone tell me how to get it to work in another class file?
I am doing this:
Page page = HttpContext.Current.Handler as Page;
ScriptManager.RegisterStartupScript(page, page.GetType(), "err_msg", "waveform_file_error()", true);
but it does not work... thanks
View Complete Post