IsPostBack == true, even though its a callback

A

Angel Of Death

How come if I have a server side callback function, the IsPostBack value
is always true , when I check it in the Page_Load ?
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

Angel said:
How come if I have a server side callback function, the IsPostBack value
is always true , when I check it in the Page_Load ?

Because a callback uses postback.
 
F

Flinky Wisty Pomm

Göran Andersson said:
Because a callback uses postback

if(IsPostback)
{

if(IsCallback)
{
DoCallbackSpecificThings();
return;
}

DoPostBackStuff();
}
 
A

Angel Of Death

* Göran Andersson said:
Because a callback uses postback.

Does it?

I was under the impression that a callback doesn't use post back since
we're using it via some ASP.NET control that explicitly states that it
uses callbacks so that postbacks are not used (causing a page re-load).

So are they lying?
 
F

Flinky Wisty Pomm

So are they lying?

Yes and no. The data is posted back to the server, but without a page
refresh. IsPostback == true because data has been posted back to the
server, IsCallback is also true because it's a client-side call back
request.


I assume that IsPostback is set to true when the request to the page
contains form data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top