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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. IsPostBack and NotIsPostBack

IsPostBack and NotIsPostBack

Scheduled Pinned Locked Moved ASP.NET
question
4 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.
  • S Offline
    S Offline
    saravanan05
    wrote on last edited by
    #1

    hi to all What is the difference between IsPostBack and Not IsPostBack thanx regards saravanan:laugh::laugh::laugh:

    N B G 3 Replies Last reply
    0
    • S saravanan05

      hi to all What is the difference between IsPostBack and Not IsPostBack thanx regards saravanan:laugh::laugh::laugh:

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Page.IsPostBack property Gets a value indicating whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time. MSDN is your friend :sigh:


      only two letters away from being an asset

      1 Reply Last reply
      0
      • S saravanan05

        hi to all What is the difference between IsPostBack and Not IsPostBack thanx regards saravanan:laugh::laugh::laugh:

        B Offline
        B Offline
        Britney S Morales
        wrote on last edited by
        #3

        Every time that user load or reload a page, he's making a postback (roundtrip to server, client->server->client), Except the FIRST TIME that user load the page (server->client) this condition is call isnotpostback. You can reach this condition writing this code lines on load Form event. if(!ispostback) // watch the ! Symbol { //code goes here } :)

        keep Learning and you never will be out of date...

        1 Reply Last reply
        0
        • S saravanan05

          hi to all What is the difference between IsPostBack and Not IsPostBack thanx regards saravanan:laugh::laugh::laugh:

          G Offline
          G Offline
          GaryWoodfine
          wrote on last edited by
          #4

          The Page.IsPostback property is a property you can use to test whether your page is being loaded for the first time or whether it is being loaded as a result of a Postback, meaning that user has done something on the page and caused a reload event to happen. Hope this helps

          Kind Regards, Gary


          My Website || My Blog

          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