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. AutoPostBack

AutoPostBack

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 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.
  • C Offline
    C Offline
    Carlos Hochberg
    wrote on last edited by
    #1

    I am trying to use two DropDownList controls in the same page. Each DDL will perform a different operation. One will send the user to a link and the other will open a file. If I use only one DDL in the page, it works well. However, if I use both they interfere with each other. Any help on that? cghochberg

    J R 2 Replies Last reply
    0
    • C Carlos Hochberg

      I am trying to use two DropDownList controls in the same page. Each DDL will perform a different operation. One will send the user to a link and the other will open a file. If I use only one DDL in the page, it works well. However, if I use both they interfere with each other. Any help on that? cghochberg

      J Offline
      J Offline
      Jerry Hammond
      wrote on last edited by
      #2

      There pro'ly is a way, but instead of dealing with it--call me chicken--I opted to use 2 radio button list controls. http://www.toasty0.com/OP_Patch.aspx[^] HTH. Best, Jerry

      The only way of discovering the limits of the possible is to venture a little past them into the impossible.--Arthur C. Clark

      Toasty0.com

      1 Reply Last reply
      0
      • C Carlos Hochberg

        I am trying to use two DropDownList controls in the same page. Each DDL will perform a different operation. One will send the user to a link and the other will open a file. If I use only one DDL in the page, it works well. However, if I use both they interfere with each other. Any help on that? cghochberg

        R Offline
        R Offline
        Ray Williams II
        wrote on last edited by
        #3

        Are you scripting again the SelectedIndexChanged event for the individual dropdownlists? Although the AutoPostBack property is needed to tie the client-side event to the post back action, you will still need to capture the specific event which occured. Syntax varies between languages. So if you need more help, please provide your programming language.

        C 1 Reply Last reply
        0
        • R Ray Williams II

          Are you scripting again the SelectedIndexChanged event for the individual dropdownlists? Although the AutoPostBack property is needed to tie the client-side event to the post back action, you will still need to capture the specific event which occured. Syntax varies between languages. So if you need more help, please provide your programming language.

          C Offline
          C Offline
          Carlos Hochberg
          wrote on last edited by
          #4

          Yes, I am scripting against SelectedIndexChanged, and I use C#. Being more specific, I have two DDLs, one with links that open new windows and another DDL that posts to another Windows Form (with a corresponding ID). The problem is, if I open a new window first and then I try to post to the web form, I get both: a new window opens (with the previous link, which was already selected) and I get a post. Also (but this was expected), if the user clicks on the back button of the browser after being posted to the other windows form and tries to open a new window in the main page, he is posted back to the windows form. Thanks for the help! cghochberg

          R 1 Reply Last reply
          0
          • C Carlos Hochberg

            Yes, I am scripting against SelectedIndexChanged, and I use C#. Being more specific, I have two DDLs, one with links that open new windows and another DDL that posts to another Windows Form (with a corresponding ID). The problem is, if I open a new window first and then I try to post to the web form, I get both: a new window opens (with the previous link, which was already selected) and I get a post. Also (but this was expected), if the user clicks on the back button of the browser after being posted to the other windows form and tries to open a new window in the main page, he is posted back to the windows form. Thanks for the help! cghochberg

            R Offline
            R Offline
            Ray Williams II
            wrote on last edited by
            #5

            Sorry, I'm not familiar with coding windows forms and web forms to work together.

            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