Wednesday, October 27, 2010

RegisterStartupScript inside UpdatePanel

To use RegisterStartupScript inside of an UpdatePanel use the following:

ScriptManager.RegisterStartupScript(page, page.GetType(), Guid.NewGuid().ToString(), “alert(‘hello’)”, true)

http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx

0 comments: