IsPostBack == true, even though its a callback

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Angel Of Death

    IsPostBack == true, even though its a callback

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

    #2
    Re: IsPostBack == true, even though its a callback

    Angel Of Death wrote:
    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.

    Comment

    • Flinky Wisty Pomm

      #3
      Re: IsPostBack == true, even though its a callback


      Göran Andersson wrote:
      Angel Of Death wrote:
      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
      if(IsPostback)
      {

      if(IsCallback)
      {
      DoCallbackSpeci ficThings();
      return;
      }

      DoPostBackStuff ();
      }

      Comment

      • Angel Of Death

        #4
        Re: IsPostBack == true, even though its a callback

        * Göran Andersson wrote:
        Angel Of Death wrote:
        >
        >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.
        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?

        Comment

        • Flinky Wisty Pomm

          #5
          Re: IsPostBack == true, even though its a callback

          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.

          Comment

          Working...