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. keep web form drop down list from chagning

keep web form drop down list from chagning

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasehelptutorial
2 Posts 2 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.
  • D Offline
    D Offline
    dcof
    wrote on last edited by
    #1

    In a vb.net 2012 web form application, there is a page that is only accessed by the administrators of the application. There are 2 drop down list options for the user to select and one submit button. Basically one drop donw list is the language that is to be selected and the kind of letter that is to be generated. The letter is a 'template' generic letter that the administrator changes. After the administrator hits the submit button, the template letter is changed in the database and one dropdown list shows the language that was selected. The problem is the kind of letter drop list does not stay and show what was selcted. The kind of letter drop down lists displays what the intitial drop down list looked like initially. Thus would you show me how to keep is the kind of letter drop down list from changing once the user clicks the submit button?

    L 1 Reply Last reply
    0
    • D dcof

      In a vb.net 2012 web form application, there is a page that is only accessed by the administrators of the application. There are 2 drop down list options for the user to select and one submit button. Basically one drop donw list is the language that is to be selected and the kind of letter that is to be generated. The letter is a 'template' generic letter that the administrator changes. After the administrator hits the submit button, the template letter is changed in the database and one dropdown list shows the language that was selected. The problem is the kind of letter drop list does not stay and show what was selcted. The kind of letter drop down lists displays what the intitial drop down list looked like initially. Thus would you show me how to keep is the kind of letter drop down list from changing once the user clicks the submit button?

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

      It looks like you reloaded the control binding on post back event happen when submit button hits. Check on how you binding the data to these controls on page_load event.

      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