Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 5th, 2005, 08:11 AM
Authorized User
 
Join Date: May 2005
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got it working, heres the code if anyone has a similar problem

<%@Import Namespace="System.Web.Security" %>

<form runat="server">
        <asp:TextBox id="instId" style="DISPLAY: none"
runat="server">53352</asp:TextBox>
        <asp:TextBox id="cartId" style="DISPLAY: none"
runat="server">36901</asp:TextBox>
        <asp:TextBox id="currency" style="DISPLAY: none"
runat="server">GBP</asp:TextBox>
        <asp:TextBox id="amount" style="DISPLAY: none"
runat="server">30.00</asp:TextBox>
        <asp:TextBox id="testMode" style="DISPLAY: none"
runat="server">100</asp:TextBox>
        <asp:Button id="btnSubmit" onclick="btnSubmit_Click" runat="server"
Text="Buy This"></asp:Button>

    </form>

Sub PostData()

dim page, wpSignature, wpSignatureFields as String

        wpSignatureFields = "instId:cartId:currency:amount:testMode:Addres s1"
        wpSignature = FormsAuthentication.HashPasswordForStoringInConfig File("jamal" & ":" & instId.Text & ":" & cartId.Text & ":" & currency.Text & ":" & txtTotal.Text & ":" & testMode.Text & ":" & PostCode.Text, "MD5")
        wpSignature = wpSignature.tolower()
        page = "https://select.worldpay.com/wcc/transaction?"
        page = page & "instId=" & instId.Text
        page = page & "&cartId=" & cartId.Text
        page = page & "&currency=" & currency.Text
        page = page & "&amount=" & txtTotal.Text
        page = page & "&testMode=" & testMode.Text
        page = page & "&PostCode=" & PostCode.Text
        page = page & "&signatureFields=" & wpSignatureFields & "&signature=" & wpSignature

        Response.Redirect(page)

End Sub






Similar Threads
Thread Thread Starter Forum Replies Last Post
access C#.Net page as action of calssic ASP page mansharma_s ASP.NET 1.x and 2.0 Application Design 6 January 7th, 2008 10:58 AM
form action attribute austinf HTML Code Clinic 2 August 2nd, 2006 08:30 AM
Two action in a form johnjohn Classic ASP Components 1 November 16th, 2004 05:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.