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. Passing more than one value between windows

Passing more than one value between windows

Scheduled Pinned Locked Moved ASP.NET
data-structureshelpquestion
7 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.
  • G Offline
    G Offline
    Gretna
    wrote on last edited by
    #1

    I posted in here the other day about getting a result from a popup window holding a calendar and the reponse I had was very helpful and that is since working. I am now moving on to the next section. This is where the user can select multiple things in a pop up window and pass them back or just one, or all. I have set it up so a list box displays all the areas that they can chose from and then along the bottom are the options to select all, or they can select individual items from the list box and click ok. The all bit is working fine as that’s just a matter of passing back a string that says all, which is similar to that of passing back the calendar date. However the multiple selection option is proving more difficult so far I have it set up so each item that they have selected is saved into an ArrayList. Is it then possible to pass back the ArrayList and populate a multiline text box with the values in the array list, I presume the passing back of the ArrayList would be fairly similar. It’s the displaying of the values with in it I am having trouble with. Any help as always is greatly appreciated.

    "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

    A 1 Reply Last reply
    0
    • G Gretna

      I posted in here the other day about getting a result from a popup window holding a calendar and the reponse I had was very helpful and that is since working. I am now moving on to the next section. This is where the user can select multiple things in a pop up window and pass them back or just one, or all. I have set it up so a list box displays all the areas that they can chose from and then along the bottom are the options to select all, or they can select individual items from the list box and click ok. The all bit is working fine as that’s just a matter of passing back a string that says all, which is similar to that of passing back the calendar date. However the multiple selection option is proving more difficult so far I have it set up so each item that they have selected is saved into an ArrayList. Is it then possible to pass back the ArrayList and populate a multiline text box with the values in the array list, I presume the passing back of the ArrayList would be fairly similar. It’s the displaying of the values with in it I am having trouble with. Any help as always is greatly appreciated.

      "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Nice to know that yestradys code working fine. and i was confident on that. :) any way , can you me more specefic on your problem. i am not getting actually. please confirm. I will try my best to help you !@@

      cheers, Abhijit Check My Latest Article

      G 1 Reply Last reply
      0
      • A Abhijit Jana

        Nice to know that yestradys code working fine. and i was confident on that. :) any way , can you me more specefic on your problem. i am not getting actually. please confirm. I will try my best to help you !@@

        cheers, Abhijit Check My Latest Article

        G Offline
        G Offline
        Gretna
        wrote on last edited by
        #3

        I have a list box in a popup window wher ethe user can select area's then when they click ok it passes the area's they have selected on the main window. so they open the popup select say (area1, area 3, area7) outs of a possible list of ten. Then when they click ok on the original screen that they opened the popup from it displays... you selected... area1 area3 area7 as a simple example. however when the user selects all the areas via the button "All". its will just show you selected... all I currently have the all bit working following your example with the calendar. Its getting the multiple values working. I orginally thought of adding the value of each one they have selected to an array and then passing the array back. Its then getting it to display the values that are stored in the array i.e area1, area3, area7. Thanks for the help. :)

        "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

        A 1 Reply Last reply
        0
        • G Gretna

          I have a list box in a popup window wher ethe user can select area's then when they click ok it passes the area's they have selected on the main window. so they open the popup select say (area1, area 3, area7) outs of a possible list of ten. Then when they click ok on the original screen that they opened the popup from it displays... you selected... area1 area3 area7 as a simple example. however when the user selects all the areas via the button "All". its will just show you selected... all I currently have the all bit working following your example with the calendar. Its getting the multiple values working. I orginally thought of adding the value of each one they have selected to an array and then passing the array back. Its then getting it to display the values that are stored in the array i.e area1, area3, area7. Thanks for the help. :)

          "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          you can add the elected iteam a string with some Delemiter and pass it to main window and the just split the string with the delemiter.

          cheers, Abhijit Check My Latest Article

          G 1 Reply Last reply
          0
          • A Abhijit Jana

            you can add the elected iteam a string with some Delemiter and pass it to main window and the just split the string with the delemiter.

            cheers, Abhijit Check My Latest Article

            G Offline
            G Offline
            Gretna
            wrote on last edited by
            #5

            Thank you i was just looking into this cheers for the help. :)

            "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

            A 1 Reply Last reply
            0
            • G Gretna

              Thank you i was just looking into this cheers for the help. :)

              "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              great!!!! did you read my today article. ?

              cheers, Abhijit Check My Latest Article

              G 1 Reply Last reply
              0
              • A Abhijit Jana

                great!!!! did you read my today article. ?

                cheers, Abhijit Check My Latest Article

                G Offline
                G Offline
                Gretna
                wrote on last edited by
                #7

                No I haven't. Will have a look now. :)

                "When will I learn? The answers to life's problems aren't at the bottom of a bottle. They're on TV" - Homer Simpson

                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