Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional 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 January 29th, 2007, 10:09 AM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default post xml data from ASP.NET app to ASP app

I need to transfer a user from an ASP.NET application to an ASP application at one point during a holiday booking process. The search for locations and options etc happens in the ASP.NET application, but to take payment and finalize the booking I need to transfer the user over to an existing ASP application. At the point when they need to be transferred, there is a large amount of object data stored in the viewstate which represents the options they have chosen.

I have thought of 3 possibilities to acheive this.

1. simply post the viewstate and extract the data out on the ASP side. This is a very neat solution on the ASP.NET side, but unfortunately creates a lot of complexity on the ASP side. I have not had any luck in attempting to decode the viewstate in ASP.

2. Have a hidden field on the ASP.net form which contains an XML representation of the data, which can be posted to the ASP app and easily interpreted there. My concern with this approach is that all that data is already in the page's viewstate and so adding it all to another field will make the page even bigger and therefore slower to load. (But most people use broadband these days, so maybe its not such a big deal any more).

3. post back the ASP.NET web form, and in the event handler simply redirect to the url of the ASP app with all the data encrypted into the querystring. This would be a neat a simple solution, but querystring can be tamperred with easily and also has a size limit.

For options 2 and 3, i would need some way to encode the data that can easily be decoded at the other end. At this point, the data is not sensitive so i don't need a high degree of encryption, just enough to obscure the data from the user.

(I am programming both sides of the system, so am not restriced in the solution i choose).

Has anyone out there successfully done something like this? I will welcome any helpful suggestions or advice. Also let me know if theres any other forums that might be able to help me.

Cheers!
 
Old January 31st, 2007, 08:30 AM
Authorized User
 
Join Date: Dec 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

In option 3 if the form method is 'POST' all the form data is hidden from the user, it only appears in the Querystring if your form method is 'GET'.


 
Old January 31st, 2007, 08:44 AM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

just to clarify, what i meant in option 3 was that the ASP.NET page would post back to itself, and then use

response.redirect "path/filename.asp?data=" & strEncodedData

to transfer the data to the ASP application.

In option 2, it would either submit the form directly to the ASP application (using the post method), or it would post back to itself and use 'server.transfer' to post the form data to the ASP application.

The data would be a big chunk of XML which is created by serialising the object data from the viewstate. i would want to encode it somehow so that if the user views the source of the page they would not see the XML data itself.





Similar Threads
Thread Thread Starter Forum Replies Last Post
using asp.net web user control in asp 3.0 App i_shahid Classic ASP Professional 0 January 8th, 2008 07:32 AM
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
Calendar control for ASP.NET App mishi ASP.NET 1.x and 2.0 Application Design 2 April 10th, 2005 05:23 AM
Problem running app with ASP.NET akhilvira ASP.NET 1.0 and 1.1 Basics 1 January 14th, 2005 09:53 AM
Porting a sa,ple ASP CR viewer app to ASP.NET jhansen42 Crystal Reports 0 August 29th, 2003 10:26 AM





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