Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How can we identify that the Page is Post Back?

How can we identify that the Page is Post Back?

Scheduled Pinned Locked Moved C#
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    IFTIKHAR AHMADQ
    wrote on last edited by
    #1

    Hy Tell me anyone how can we indentify that the page is postBack?

    OriginalGriffO D A 4 Replies Last reply
    0
    • I IFTIKHAR AHMADQ

      Hy Tell me anyone how can we indentify that the page is postBack?

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Simple: In the page Load event:

      private void Page_Load()
      {
      if (!IsPostback)
      {
      // Do non-postback things...
      }

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      • I IFTIKHAR AHMADQ

        Hy Tell me anyone how can we indentify that the page is postBack?

        D Offline
        D Offline
        DRAYKKO777
        wrote on last edited by
        #3

        There is a good article on this at the MSDN site: http://msdn.microsoft.com/en-us/library/system.web.ui.page.ispostback(v=vs.110).aspx[^]

        1 Reply Last reply
        0
        • I IFTIKHAR AHMADQ

          Hy Tell me anyone how can we indentify that the page is postBack?

          D Offline
          D Offline
          DRAYKKO777
          wrote on last edited by
          #4

          There is a good article on this on the MSDN site: http://msdn.microsoft.com/en-us/library/system.web.ui.page.ispostback(v=vs.110).aspx[^] Check it out. :-)

          1 Reply Last reply
          0
          • I IFTIKHAR AHMADQ

            Hy Tell me anyone how can we indentify that the page is postBack?

            A Offline
            A Offline
            Abhinav S
            wrote on last edited by
            #5

            Yes. We can identify if a page is a postback.

            Apps - Color Analyzer | Arctic | XKCD | Sound Meter | Speed Dial

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups