1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do i transfer data

Discussion in 'C#' started by tomgeller, Jul 26, 2006.

  1. #1
    How do i transfer data from page to page (not in a button) via link?
    SEMrush
     
    tomgeller, Jul 26, 2006 IP
    SEMrush
  2. mad4

    mad4 Peon

    Messages:
    6,989
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Add some variables to the link

    <a href="page.asp?color=blue&size=large">Large Blue page</a>
     
    mad4, Jul 26, 2006 IP
  3. DangerMouse

    DangerMouse Peon

    Messages:
    275
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Using query string parameters is probably the most reliable way to do it but you could also consider using session variables.

    Page1
    
    <%
    Session("MyVar") = "XXX"
    %>
    
    Code (markup):
    Page2
    
    <%
    Response.Write Session("MyVar")
    %>
    
    Code (markup):
    Hope this helps ;)
     
    DangerMouse, Jul 26, 2006 IP
  4. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #4
    here your request would be
    
    <%
    response.write request.querystring("color")
    response.write request.querystring("large")
    %>
    
    Code (markup):
     
    ludwig, Jul 26, 2006 IP