This is a migrated thread and some comments may be shown as answers.

Page.IsPostBack vs Page.IsCallBack

2 Answers 295 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 08 Apr 2012, 12:39 AM
Quick question from a Newbie.

When using RadAjaxManager or RadAjaxPanel they both fire events in "If Page.IsPostBack then......" and do not fire events in "If Page.IsCallBack then.....".  So I am not fully understanding the meaning of PostBack and CallBack.  I thought the RadAjaxManager was making CallBacks to the server and not PostBacks.  Is this by design?

What am I missing here?

A quick reply from an experienced programmer would be much appreciated.

Cheers

Ian.

2 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 11 Apr 2012, 02:45 PM
Hello Ian,

Page.IsPostBack is true if the Post method is used instead of Get one for the request of the page. Check this resource for more information:
Methods GET and POST in HTML forms - what's the difference?

And if you like to know if it is Ajax call you could use: IsAjaxRequest of the RadAjaxManager or RadAjaxPanel.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ian
Top achievements
Rank 1
answered on 11 Apr 2012, 03:00 PM
Many thanks Vasil!!

Ian.
Tags
Ajax
Asked by
Ian
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Ian
Top achievements
Rank 1
Share this question
or