Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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
  #1 (permalink)  
Old May 15th, 2006, 09:57 AM
Registered User
 
Join Date: May 2006
Location: Kathmandu, , Nepal.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to vkshrestha
Default sending data to page two

I have an asp.net page, PAGE-I, which does some calculations.
Now, I need to send this data to different page, PAGE-II, (on different server).
After sending the data, the page must "go" to PAGE-II.
Note that there is nothing to do with the WebForms (<form>)

(1)
The case is somewhat similar to form posting but what i need to send is variables, not client side form data. Generating a dynamic html form and posting it automatically when the html page loads using javascripts has security holes. (I am sending sensitive data).

(2)
Typically, this would have been done by doing something like:
Response.Redirect ("somepage.aspx?value=" & somevalue)
But, the problem is that I need to send a bit large amount of data.
So, passing values in QueryString (by Response.Redirect) is not a solution.

(3)
Server.Transfer is also not a solution at all because
(a) transfer is done in same server, and
(b) i need to transfer values calculated in the process

(4)
Also, HttpRequest does not "seem" to be a solution.
I need to redirect the page to the second page, not to send data to the page and load the results in original page. (I don't know if HttpRequest has capabilities do my requirements, but I did not find anything related.)

Does anyone has an idea on how to tackle this?
  #2 (permalink)  
Old May 15th, 2006, 12:32 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

How about session variables?

  #3 (permalink)  
Old May 15th, 2006, 12:40 PM
Registered User
 
Join Date: May 2006
Location: Kathmandu, , Nepal.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to vkshrestha
Default


As already said, page-1 is in website-1 and page-2 is in website-2.
This website-2 can be in any platform/language.
No, Session variables won't solve this.
  #4 (permalink)  
Old May 15th, 2006, 04:55 PM
Friend of Wrox
Points: 2,101, Level: 18
Points: 2,101, Level: 18 Points: 2,101, Level: 18 Points: 2,101, Level: 18
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Could you do the calculations, save the data in a database and redirect to Web Site II,.... Page II where Page II Selects the data with the calculations?

  #5 (permalink)  
Old May 16th, 2006, 02:35 AM
Registered User
 
Join Date: May 2006
Location: Kathmandu, , Nepal.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to vkshrestha
Default

Yes rstelma, that is one of the possibilities.
But Website II is completely independent of Website I. It is only suppose to take the input, and display the output. It does not do two way communication.


  #6 (permalink)  
Old May 16th, 2006, 11:02 AM
Friend of Wrox
Points: 2,101, Level: 18
Points: 2,101, Level: 18 Points: 2,101, Level: 18 Points: 2,101, Level: 18
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

I'm all out of ideas for this one. Do you know what the limits are for a querystring? I'm not sure myself. You don't really need website II to have two-way communication. It only needs to be able to query the database.

  #7 (permalink)  
Old May 16th, 2006, 11:36 AM
Registered User
 
Join Date: May 2006
Location: Kathmandu, , Nepal.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to vkshrestha
Default

As far as I know QueryString has string length restrictions and depends on different browsers. I have read that browsers detect the redirection (unlike server.transfer) ... so maybe Response.Redirect has also the restrictions. I need to send large xml string.

I can't make Website-2 query the database of Website-1. Actually, we can have Website-3, Website-4, Website-5, etc which needs to send data in similar way. Moreover, Website-3 can be in php/mysql, Website-4 can be in asp/access, and so on.
  #8 (permalink)  
Old May 16th, 2006, 11:55 AM
Friend of Wrox
Points: 2,101, Level: 18
Points: 2,101, Level: 18 Points: 2,101, Level: 18 Points: 2,101, Level: 18
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2003
Location: , , .
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Oh boy. I'll be watching to see how this one gets solved.

  #9 (permalink)  
Old May 18th, 2006, 06:01 AM
Friend of Wrox
 
Join Date: May 2006
Location: Delhi, Delhi, India.
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

xml will solve your problem. create an xml file , save the data in that xml file.
use upload and download to transfer

Bijgupt


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in e-mail structure sending data from data tiawebchd General .NET 3 May 5th, 2008 08:07 AM
The page cannot be refreshed without sending ... toshi Javascript 2 September 26th, 2006 03:00 AM
Sending data to next page (C#) shazia1 VS.NET 2002/2003 2 June 30th, 2005 03:24 AM
Sending data to next page (C#) shazia1 VS.NET 2002/2003 1 June 29th, 2005 09:45 PM
Sending datas from the first page to the next ones mcber35 Access VBA 2 July 28th, 2004 11:14 AM





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