How does asp.net know whether it is a postback or not??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lander

    How does asp.net know whether it is a postback or not??

    How does asp.net know to set the Page.IsPostBack property exactly???

    Would somebody detail this, thanks very much...
  • Madhur

    #2
    Re: How does asp.net know whether it is a postback or not??

    lander wrote:
    How does asp.net know to set the Page.IsPostBack property exactly???
    >
    Would somebody detail this, thanks very much...
    When the page is submitted, the ID of control is also sent which caused the
    postback.
    And because of this ID, ASP.NET is able to execute the event handler for
    that control.

    I think thats how ASP.NEt differentiates between the new request and
    postback.

    --
    Madhur




    Comment

    • Michael Nemtsev [MVP]

      #3
      Re: How does asp.net know whether it is a postback or not??

      Hello Madhur,

      Each server control implements IPostBackEventH andler interface, where the
      RaisePostBackEv ent is used.
      IsPostBack return true if PostBack event was raised.

      You can find more discussion there http://forums.asp.net/t/1198506.aspx

      ---
      WBR,
      Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

      "The greatest danger for most of us is not that our aim is too high and we
      miss it, but that it is too low and we reach it" (c) Michelangelo


      Mhow ASP.NEt differentiates between the new request and postback
      M>


      Comment

      • Madhur

        #4
        Re: How does asp.net know whether it is a postback or not??

        Michael Nemtsev [MVP] wrote:
        Hello Madhur,
        >
        Each server control implements IPostBackEventH andler interface, where
        the RaisePostBackEv ent is used.
        IsPostBack return true if PostBack event was raised.
        >
        You can find more discussion there
        A broad category of Microsoft tools, languages, and frameworks for software development. Designed to support developers in building, debugging, and deploying applications across various platforms.

        ---
        WBR,
        Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour
        >
        "The greatest danger for most of us is not that our aim is too high
        and we miss it, but that it is too low and we reach it" (c)
        Michelangelo
        >
        >how ASP.NEt differentiates between the new request and postback
        Thanks Michael

        --
        Madhur




        Comment

        Working...