Hey there! Sign in to join this conversationNew here? Join for free
    • Thread Starter
    Offline

    0
    ReputationRep:
    Hi could anyone offer any advice? i've created a visual studio website as part of my course done it all including coding but im stuck with one bit.

    basically ive got a Button2 on Default.aspx that i want to transfer all the items from ListBox1 to ListBox2 on a different page (basket.aspx)

    the only coding for this ive got so far is;

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
    Response.Redirect("basket.aspx")

    End Sub



    this basically only moves from Default.aspx to basket aspx :rolleyes:
    Offline

    15
    ReputationRep:
    While I know very little asp(x), then if I was doing it in PHP, I would either use a form to submit from default to basket.aspx (HTML and PHP on the basket page), or if this wasn't an option or you can't do that is aspx, then the easiest way would be to get the values entered in ListBox1, and put it as a GET data in the URL (so your redirect reads Response.Redirect("basket.aspx?v alue1=x&value2=y&...&valuen=z")
 
 
 
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • Poll
    Brexit voters: Do you stand by your vote?
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

    Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

    Write a reply...
    Reply
    Hide
    Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.