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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. flaky results with multiple listboxes

flaky results with multiple listboxes

Scheduled Pinned Locked Moved ASP.NET
helpsysadmin
3 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.
  • F Offline
    F Offline
    foobarDividedByZero
    wrote on last edited by
    #1

    Hi, I'm having a problem that is slowly driving over the edge... I have a page with 3 listboxes that I populate dynamically with the names of files on the server. I have a SelectedIndexChanged event on each of the listboxes that simply redirects the page to the selected document. the problem is when i return from a document, i can only select a new doc if it is from the same listbox, or one on the left. If I select from a listbox on the right, the last doc opened comes up again. Thanks in advance for any help, Craig

    G 1 Reply Last reply
    0
    • F foobarDividedByZero

      Hi, I'm having a problem that is slowly driving over the edge... I have a page with 3 listboxes that I populate dynamically with the names of files on the server. I have a SelectedIndexChanged event on each of the listboxes that simply redirects the page to the selected document. the problem is when i return from a document, i can only select a new doc if it is from the same listbox, or one on the left. If I select from a listbox on the right, the last doc opened comes up again. Thanks in advance for any help, Craig

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      rasdfsadfasdfasdfsa wrote:

      the problem is when i return from a document

      How do you do to return from a document?

      rasdfsadfasdfasdfsa wrote:

      i can only select a new doc if it is from the same listbox, or one on the left. If I select from a listbox on the right, the last doc opened comes up again.

      I think that you have to show a bit of your code if anyone should be able to tell what's wrong with it.

      --- single minded; short sighted; long gone;

      F 1 Reply Last reply
      0
      • G Guffa

        rasdfsadfasdfasdfsa wrote:

        the problem is when i return from a document

        How do you do to return from a document?

        rasdfsadfasdfasdfsa wrote:

        i can only select a new doc if it is from the same listbox, or one on the left. If I select from a listbox on the right, the last doc opened comes up again.

        I think that you have to show a bit of your code if anyone should be able to tell what's wrong with it.

        --- single minded; short sighted; long gone;

        F Offline
        F Offline
        foobarDividedByZero
        wrote on last edited by
        #3

        I am returning via the back button. This is an intranet site, so these are actual word and excel docs on the network that i am linking to, not aspx pages. this is pretty much all the code there is... protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { //populate memos string folderToBrowse = Server.MapPath(memoPath); DirectoryInfo dirInfo = new DirectoryInfo(folderToBrowse ); foreach (FileInfo fileItem in dirInfo.GetFiles()) { lstMemos.Items.Add(fileItem.Name); } } //I populate 2 more listboxes here - same code } //there are 2 more functions just like this for the other 2 listboxes protected void lstMemos_SelectedIndexChanged(object sender, EventArgs e) { Response.Redirect(Path.Combine(memoPath, lstMemos.SelectedItem.Text)); }

        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