What is the Atlas equivalent to the value returned by Page.IsCallback?
--- Peter Blum
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
As I understand it, since the call is just an intercepted postback, Page.IsPostBack will be True on an Atlas callback. I don't think there is a way to tell if you're dealing with a "True" PostBack or a callback, but I also don't think the event could be
called more than one way, so if you need to check later on in your code how you got to where you are, set a member variable in the event handler.
Thanks folks. I had noticed IsInPartialRenderingMode and found it seems to do the job. I do need a definitive answer as it affects how I create my products. Can anyone of the Atlas team chime in?
--- Peter Blum
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
as you can see, i'm not in the atlas team. however, i'd like to confirm Rama's answer. btw, currently, a partial postaback is identified by a header called delta which has its value set to true during a partial postback. during the init event, the scriptmanager
control looks for that header, and when it has the value true, it initializes the _inPartialRenderingMode field which is used to "feed" the result of the IsInPartialRenderingMode property.
--
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
PLBlum
All-Star
30409 Points
5347 Posts
MVP
Page.IsCallback equivalent
Jul 12, 2006 04:56 PM|LINK
What is the Atlas equivalent to the value returned by Page.IsCallback?
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
AZBob
Member
9 Points
3 Posts
Re: Page.IsCallback equivalent
Jul 12, 2006 05:15 PM|LINK
As I understand it, since the call is just an intercepted postback, Page.IsPostBack will be True on an Atlas callback. I don't think there is a way to tell if you're dealing with a "True" PostBack or a callback, but I also don't think the event could be called more than one way, so if you need to check later on in your code how you got to where you are, set a member variable in the event handler.
Rama Krishna
Participant
1277 Points
307 Posts
Re: Page.IsCallback equivalent
Jul 12, 2006 05:16 PM|LINK
PLBlum
All-Star
30409 Points
5347 Posts
MVP
Re: Page.IsCallback equivalent
Jul 12, 2006 10:15 PM|LINK
Thanks folks. I had noticed IsInPartialRenderingMode and found it seems to do the job. I do need a definitive answer as it affects how I create my products. Can anyone of the Atlas team chime in?
Creator of Peter's Data Entry Suite (formerly Professional Validation And More and Peter's Date Package) and Peter's Polling Package
www.PeterBlum.com
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Page.IsCallback equivalent
Jul 12, 2006 11:03 PM|LINK
hello.
as you can see, i'm not in the atlas team. however, i'd like to confirm Rama's answer. btw, currently, a partial postaback is identified by a header called delta which has its value set to true during a partial postback. during the init event, the scriptmanager control looks for that header, and when it has the value true, it initializes the _inPartialRenderingMode field which is used to "feed" the result of the IsInPartialRenderingMode property.
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu