Basically I have an event on an ASP.Net button in an Update Panel which retrieves x and y coordinates from a database. Then I am populating a hidden field with these coordinates and I have a JavaScript function which displays points according to the coordinates retrieved from the database and stored in the hidden field. My problem is how do I call this function after the hidden field is populated, with out refreshing the page.
ScriptManager.RegisterStartupScript(this, this.GetType(), "key", "drawPoints();", true);