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. Auto post back!!!!!!!!!

Auto post back!!!!!!!!!

Scheduled Pinned Locked Moved ASP.NET
help
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.
  • R Offline
    R Offline
    rameshbhojan
    wrote on last edited by
    #1

    Hi all, I have an issue!!! I have a dropdown list(somewhere near the bottom) in my page with autopostback set on. The problem is as soon as i select an item from the list, due to auto postback,the control goes to the top of the page!(the page is long enough, so the user has to scroll down to completely fill the form). so the user has to again scroll down till bottom of the page. Thank You Ramesh Bhojan

    N P 2 Replies Last reply
    0
    • R rameshbhojan

      Hi all, I have an issue!!! I have a dropdown list(somewhere near the bottom) in my page with autopostback set on. The problem is as soon as i select an item from the list, due to auto postback,the control goes to the top of the page!(the page is long enough, so the user has to scroll down to completely fill the form). so the user has to again scroll down till bottom of the page. Thank You Ramesh Bhojan

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      If you are using ASP.NET 2.0, you have one option called maintainScrollPositionOnPostBack. This accepts boolean value, which you can use with the page tag.Or you can check this[^] for an alternative method that uses javascript. But I suggest you to use the first method, It is cross browser too.

      Navaneeth My Website

      R 1 Reply Last reply
      0
      • N N a v a n e e t h

        If you are using ASP.NET 2.0, you have one option called maintainScrollPositionOnPostBack. This accepts boolean value, which you can use with the page tag.Or you can check this[^] for an alternative method that uses javascript. But I suggest you to use the first method, It is cross browser too.

        Navaneeth My Website

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

        Hi navaneeth! where do i find the maintainScrollposition on postback option? i could not find that in the properties window of the dropdown list!!!!

        H 1 Reply Last reply
        0
        • R rameshbhojan

          Hi navaneeth! where do i find the maintainScrollposition on postback option? i could not find that in the properties window of the dropdown list!!!!

          H Offline
          H Offline
          Harini N K
          wrote on last edited by
          #4

          Hi Simply add MaintainScrollPostionOnPostBack = True in the Page directive if you are using VS.Net 2005. Check this link[^]

          Harini

          1 Reply Last reply
          0
          • R rameshbhojan

            Hi all, I have an issue!!! I have a dropdown list(somewhere near the bottom) in my page with autopostback set on. The problem is as soon as i select an item from the list, due to auto postback,the control goes to the top of the page!(the page is long enough, so the user has to scroll down to completely fill the form). so the user has to again scroll down till bottom of the page. Thank You Ramesh Bhojan

            P Offline
            P Offline
            Puneet Sri
            wrote on last edited by
            #5

            you have one option called maintainScrollPositionOnPostBack in ASP.NET 2.0. I hope this will help you. Puneet Srivastava

            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