When you press the "order" button I want the "prodcode", "proddesc", "prodqty" to show up on the confirmation page which is generated by the .asp file, at the moment when you press "order" the conformation page shows but doesn't show the relevent data, it
just displays :
Your Shopping Basket Contains:
- Product Code: <%response.write(request.querystring("prodcode"))%>
- Product Description: <%response.write(request.querystring("proddesc"))%>
- Order Quantity: <%response.write(request.querystring("prodqty"))%>
If anyone could help me it would be appreciated. My codes are below:
Yes. Then in second form in code behind use this to extract values: You can actually pass more than one value if needed.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim Procode As String = Request.QueryString("ID")
'or anyother valuable you want to use
End Sub
hyman1
Member
2 Points
2 Posts
Order Form Help
Feb 20, 2012 02:43 PM|LINK
When you press the "order" button I want the "prodcode", "proddesc", "prodqty" to show up on the confirmation page which is generated by the .asp file, at the moment when you press "order" the conformation page shows but doesn't show the relevent data, it just displays :
Your Shopping Basket Contains:
- Product Code: <%response.write(request.querystring("prodcode"))%>
- Product Description: <%response.write(request.querystring("proddesc"))%>
- Order Quantity: <%response.write(request.querystring("prodqty"))%>
If anyone could help me it would be appreciated. My codes are below:
<html> <head> <title>ASP Script for IS5302/62 e-Shop Prototype: Purchase</title> </head> <body> <center> <table border=1 cellpadding=20 width=80% BGCOLOR="#C0C0C0"> <tr><td> <h3>IS5302/62 e-Shop Prototype: Purchase Confirmation</h3> <!-- product data --> Your Shopping Basket Contains:<br> - Product Code: <%response.write(request.querystring("prodcode"))%><br> - Product Description: <%response.write(request.querystring("proddesc"))%><br> - Order Quantity: <%response.write(request.querystring("prodqty"))%><br> <!-- next page buttons --> <p> Click <a href="next-page"> here </a> to continue shopping<br> Click <a href="next-page"> here </a> to proceed to checkout </p> </td></tr> </table> </center> </body> </html>mhinkle2
Member
564 Points
519 Posts
Re: Order Form Help
Feb 20, 2012 03:09 PM|LINK
You need to pass value to the second page using session("prodocde")=Procode in code behind or YOu can do something like
function transferonclick() { var ID = document.getElementById('<%= procode.ClientID %>'); var Location = "page2?ID=" + ID.value; window.open(Location, "Find", "location=1,status=1,scrollbars=1, width=500, height=500"); }hyman1
Member
2 Points
2 Posts
Re: Order Form Help
Feb 20, 2012 03:23 PM|LINK
Thanks, I will try that. To confirm I am supposed to put that into the first code, not the .asp file?
Smith Peter
Member
142 Points
52 Posts
Re: Order Form Help
Feb 21, 2012 12:52 PM|LINK
Hi,
You are right my friend.
mhinkle2
Member
564 Points
519 Posts
Re: Order Form Help
Feb 21, 2012 01:42 PM|LINK
Yes. Then in second form in code behind use this to extract values: You can actually pass more than one value if needed.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim Procode As String = Request.QueryString("ID") 'or anyother valuable you want to use End Sub