tpower
tpower

Reputation: 56906

How can I execute javascript from the server when using asp:UpdatePanels?

I used to do the following to execute javascript from the server:

Page.ClientScript.RegisterStartupScript( ... );

And it would execute when the page loads back at the client. I am now modifing existing pages to use UpdatePanels and my javascript is no longer being fired.

Upvotes: 2

Views: 257

Answers (1)

PiRX
PiRX

Reputation: 3575

AFAIR, you should use ScriptManager's RegisterStartupScript method. For details see MSDN

Upvotes: 3

Related Questions