0

What do we mean by Partial post back in a page and complete page posting

  1. What are the events that are Fired when a page is being Post backed
  2. What are the events that are fired when a page is being Partially Post backed

What are the events that are fired when a page is being Partially Post backed.

My question is when I am trying to call a JavaScript function from code behind .

When i use

Page.ClientScript.RegisterStartupScript(this.GetType(),"Call my function","MyFunction()",true);

it is not working where as when i use

Page.ClientScript.RegisterClientScriptBlock 

it is working for sure

Willem D'Haeseleer
  • 19,661
  • 9
  • 66
  • 99
krish
  • 19
  • 1
  • 4
  • Duplicate? [What's the difference between a Callback and a Partial Postback?](http://stackoverflow.com/questions/3016424/whats-the-difference-between-a-callback-and-a-partial-postback) – Phil Cooper Sep 11 '13 at 09:06
  • I believe the answer to both your questions is the same. All events. This is the gotcha with update panels, although they look tame enough, they post the same payload as a normal (non-ajax) postback. – Phil Cooper Sep 11 '13 at 09:08
  • but here, when i raise an event in a update panel the above mentioned was not working – krish Sep 11 '13 at 11:54
  • Does the line get hit in the code behind when debugging? One other thing to try is passing the current `Page` to `RegisterStartupScript` instead of `this.GetType()`. – Phil Cooper Sep 11 '13 at 16:19
  • @PhilCooper it worked when i use pageregisterstartupScript in the place of this.getType(). thanks – krish Sep 17 '13 at 09:20

0 Answers0