search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Calling Javascript Functions from Code File(.aspx.cs)

Asked by Anonymous
4 years ago.

How to call Javascript function that is defined in default.aspx file from its code file i.e. default.aspx.cs ??

Answer posted by Dan Letecky [DayPilot]
4 years ago.

If you want to execute custom JavaScript after the server-side CallBack you can use AfterRenderJavaScript. This property specifies the JavaScript that will be executed after every update (i.e. during initial page load and after every postback/callback).

You can pass custom data to AfterRenderJavaScript from CallBack requests using Update() method:

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.