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. autopostback property

autopostback property

Scheduled Pinned Locked Moved C#
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.
  • C Offline
    C Offline
    chithra r
    wrote on last edited by
    #1

    Hi all can anyone explain me about autopostback property.

    pintoo

    K R D 3 Replies Last reply
    0
    • C chithra r

      Hi all can anyone explain me about autopostback property.

      pintoo

      K Offline
      K Offline
      Kristian Sixhoj
      wrote on last edited by
      #2

      First result from Google (have you heard about that? :)): http://msdn2.microsoft.com/en-us/library/ms529034.aspx[^]

      Kristian Sixhoej


      "Failure is not an option" - Gene Kranz

      1 Reply Last reply
      0
      • C chithra r

        Hi all can anyone explain me about autopostback property.

        pintoo

        R Offline
        R Offline
        rah_sin
        wrote on last edited by
        #3

        autopost back property of any control on aspx page indicates whether to submit the page to server on the specific event of that control or not.you can set this property either true or false.

        rahul

        1 Reply Last reply
        0
        • C chithra r

          Hi all can anyone explain me about autopostback property.

          pintoo

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

          For understanding AutoPostBack, we need to know , what a PostBack Then, what is AutoPostBack, Autopostback is the mechanism, by which the page will be posted Back to the server automatically based on some events in the web controls. In some of the web controls, the property called auto post back, which if set to true, will send the request to the server when an event happens in the control For example. Dropdown Box (Combo box) web control has the property autopostback, if we set the property to true, when ever user selects a different value in the combo box, and event will be fired in the server. i.e. a request will be send to the server. Why we need to send a request to the server in this case? Consider this scenario where the web page is used for entering the user information. The page contains two combo box controls State and Town. When user selects the state, the appropriate towns should be filled in the town combo box which is loaded from the database. For achieving this requirement, we can set the autopostback property of state combo box to true. If we do that we can handle the event in the server side and write code to populate the town combo box with the values from the database. This is how we use the autopostback property. I will give another example for the autopostback usage with another control which will give much better understanding. Consider a login page, which contains text fields User ID, User Name and Password fields. User name text box will not be editable. So the requirement will be like this, when user enters the user id and clicks tab, his name should be displayed in the User Name text field. For achieving this we have to make autopostback property of the user id textfield to true and handle the event in the server side, In the event handler, we have to write code to fetch the user name from the database for the user id ,which we will be getting from the user id text box

          dhans

          modified on Friday, January 04, 2008 2:07:23 AM

          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