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. Web Development
  3. ASP.NET
  4. IsPostBack

IsPostBack

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-nethelp
5 Posts 5 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.
  • U Offline
    U Offline
    User 11127370
    wrote on last edited by
    #1

    HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???

    L P D S 4 Replies Last reply
    0
    • U User 11127370

      HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      See https://www.google.com/search?q=ISPostBack+in+asp.net[^].

      1 Reply Last reply
      0
      • U User 11127370

        HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???

        P Offline
        P Offline
        PANKAJMAURYA
        wrote on last edited by
        #3

        IsPostBack is a property by which you can check that is your page is loading first time or postbacking. In ASP.NET application every event (like clicking a button) causing postback of same page. So the code block written in the page load will execute every time. If you does not want to execute it everytime then enclose that code block with a if(!IsPostBack){}.

        PANKAJ MAURYA SOFTWARE ENGINEER (Daffodil S/W) Gurgaon

        1 Reply Last reply
        0
        • U User 11127370

          HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???

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

          HI, I

          Quote:

          IsPostBack is a Page level property, that can be used to determine whether the page is being loaded in response to a client postback, or if it is being loaded and accessed for the first time.

          example. if(!ispostback){ } else { } When page response very first time then it go into if condition, after that your else statement will call always.

          hi

          1 Reply Last reply
          0
          • U User 11127370

            HI, I want to know that, What is the important of ISPostBack in asp.net??? Can AnyOne help???

            S Offline
            S Offline
            sridhar_thota
            wrote on last edited by
            #5

            This property is used to restrict the postback of page every time unnecessarily. check like below in you code. if(!IsPostback) { //this is your first visit. } else { //this is not your first visit. }

            Sridhar Thota.

            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