I've got a page (ASP.Net) that refreshes every two minutes (currently using ASP timer control to call some subs that update a dataset and then bind the results to a gridview). On this page, a user can click a linkbutton that causes a jQuery modal dialog box to popup. Everything works great, but when the refresh fires, the dialog box closes. Is there some way that I can start and stop the timer control based on the open and close events of the dialog box? I also tried putting the gridview in an updatepanel, but that prevented the dialog box from showing (not sure if it prevented the dialog completely or if it closed it instantaneously). My goal is to keep the dialog open (i.e prevent page refresh) until the dialog is closed by the user. Anyone have an idea on how to accomplish this?