[RESOLVED] [2005] fire javascript after event fires
ok here's my question. i have an event that fires and saves information to the database. now after this event fires i need to call some javascript or open a new popup window which will display a report (crystal) and i need to pass the parameters. i'm wondering is there a way that i can call the javascript after the event finishes. this is based on a command button being clicked... i was thinking about using the OnClientClick but that fires before the other event, unless there is something that i'm missing.
Re: [2005] fire javascript after event fires
At the end of the code for your Button_Click register your javascript using RegisterStartupScript as such
Code:
this.Page.RegisterStartupScript("Test", strJS);
The javascript you sent will then fire as soon as the page is rendered.
EXAMPLE
Re: [2005] fire javascript after event fires
It seems the above method is now obsolete in 2.0 and you should use ClientScript.RegisterStartupScript instead.
Re: [2005] fire javascript after event fires