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. drop down list post back refreshes to default state. How to prevent this?

drop down list post back refreshes to default state. How to prevent this?

Scheduled Pinned Locked Moved C#
csharptutorialquestion
3 Posts 3 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.
  • H Offline
    H Offline
    humblepgmr
    wrote on last edited by
    #1

    Hi all, I have a dropdown list on a c# webpage. The page allows the user to select from a dropdown. The page allows the user to click on a submit button after selecting. Once the user selects and presses the dropdown, the system automatically refereshes the page and refereshes the dropdown to default state which doesn't allow me to capture the dropdownllst.SelectedValue. Kinda frustrating, Any suggestions? Thanks

    S N 2 Replies Last reply
    0
    • H humblepgmr

      Hi all, I have a dropdown list on a c# webpage. The page allows the user to select from a dropdown. The page allows the user to click on a submit button after selecting. Once the user selects and presses the dropdown, the system automatically refereshes the page and refereshes the dropdown to default state which doesn't allow me to capture the dropdownllst.SelectedValue. Kinda frustrating, Any suggestions? Thanks

      S Offline
      S Offline
      sujithkumarsl
      wrote on last edited by
      #2

      post this in asp.net forum

      My small attempt...

      1 Reply Last reply
      0
      • H humblepgmr

        Hi all, I have a dropdown list on a c# webpage. The page allows the user to select from a dropdown. The page allows the user to click on a submit button after selecting. Once the user selects and presses the dropdown, the system automatically refereshes the page and refereshes the dropdown to default state which doesn't allow me to capture the dropdownllst.SelectedValue. Kinda frustrating, Any suggestions? Thanks

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

        humblepgmr wrote:

        which doesn't allow me to capture the dropdownllst.SelectedValue.

        Is viewstate disabled for your page ? Where you are trying to capture the selected item ?

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

        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