Results 1 to 2 of 2

Thread: Passing data between two ASP pages

  1. #1
    Join Date
    Apr 2007
    Posts
    1

    Passing data between two ASP pages

    Hi,
    I am trying to design an online auctioning site.
    This is what i have as of now:
    1) one HTML front end to accept the product number
    2) an asp file " material" obtains the product number from the html file and displays the appropriate info from the database and asks the user to enter the bidding price
    3) another asp file "bidding" requires the product number the user has entered in the first page and the bidding price the user has entered in the second page

    The objective is not to ask the user to enter the product number again in the "material" form

    This is what I had tried :
    In the asp file "material" the product number is stored in a variable "pnum"

    so, while invoking the "bidding file" , i thought of something like this :



    <form action="http://localhost/MyWeb/product/templates/bidding.asp" method="get">

    &nbsp;&nbsp;&nbsp; <input type="hidden" name="pnum" value="num"><br>

    <p style='color:green' size='10'> Enter the bidding price &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="hidden" name="price"><br>
    <input type="submit" name="action" value="save">



    But, i am not able to get it to work.
    Any ideas?

    Thanks,
    kris

  2. #2
    Join Date
    May 2006
    Posts
    27
    Quote Originally Posted by kris.c

    But, i am not able to get it to work.
    Any ideas?

    Thanks,
    kris
    You need to get the value from the page and then store it in the textbox.

    Code:
    myPNum = Request.QueryString("num")
    
    <input type="hidden" name="pnum" value="<%=myPNum%>">

Similar Threads

  1. Excel Data into ASP Page
    By dzigner in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 05 Jul 2005, 04:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •