473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Posting data and redirecting

I know this is most likely a very basic question, but I am unsure of the
answer. I have two ASP.Net pages, collect.aspx and process.aspx. I want to
pass the data collected in collect.aspx to process.aspx. I have done this
using response.redirect and adding the form data to the end of the URL (i.e.
process.aspx?FormField=FormData). This would work OK, but I do not want the
user to know what data is being passed. I believe I need to use the POST
method, but I do not know exactly how to go about it. To complicate things
even more, I may need to redirect to different pages based on the input. I
hope that this is understandable and I am sorry if this has been discussed
previously.

Thanks in advance,

Matt Osborne

Nov 17 '05 #1
1 1205
I would like to avoid using the session object if it is possible. I want to
be able to post data to the page so pages not written in ASP.Net can submit
as well.

TIA

Matt Osborne

"Boban Dragojlovic" <news@_N_O_S_P_AM_dragojlovic.org> wrote in message
news:g_*******************@newssvr13.news.prodigy. com...

Unless there is some reason that you can't do it, you would be better off
using the Session variable to store such information.

Anything stored in the Session variable is preserved between multiple page
requests

So, on page 1 (Collect), you put the stuff in
Session("some_var") = some_var
Session("another_var") = "bob"
...
Then, in Process, you get them back
some_var = Session("some_var")
...
"Matt Osborne" <pr*****@stupidSpamer.net> wrote in message
news:HU***************@newssvr24.news.prodigy.com. ..
I know this is most likely a very basic question, but I am unsure of the
answer. I have two ASP.Net pages, collect.aspx and process.aspx. I want
to
pass the data collected in collect.aspx to process.aspx. I have done

this using response.redirect and adding the form data to the end of the URL

(i.e.
process.aspx?FormField=FormData). This would work OK, but I do not want

the
user to know what data is being passed. I believe I need to use the POST method, but I do not know exactly how to go about it. To complicate

things
even more, I may need to redirect to different pages based on the input.

I
hope that this is understandable and I am sorry if this has been discussed previously.

Thanks in advance,

Matt Osborne


Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: lozd | last post by:
Would appreciate any solutions people could offer for this. Basically I wan't to use a frameset with an aspx page as the contents rather than a htm page and I'd like to be able to redirect the...
3
by: Water Cooler v2 | last post by:
That ASP.NET pages post to themselves, how do pages share information amoung themselves? As in, if my index.aspx has to post data to nextpage.aspx, how does it happen? Is it left to the developer...
4
by: Ivan Demkovitch | last post by:
Hi! I have Portal application which is on http. However I like to do user authentification using SSL I like approach most sites use: They have <form name="loginForm" action="https://sss"...
3
by: Vijay | last post by:
Hi, Based on the session timeout, session will be expired. Timebeing , we are manually checking in the each page, whether the session is expired or not, If so,we are redirecting to common login...
3
by: MDB | last post by:
This may sound like a naive question, but that's only because I'm naive about most things ASP.NET, as my background is primarily Lotus Notes Development, and before that, DOS-based FoxPro. Is...
4
by: Greg Smalter | last post by:
Redirecting from page to page within a web project is pretty easy. However, all Redirect methods take strings as arguments, as if you mistype the string, you don't find out until run time that you...
8
by: Morpheus | last post by:
I am trying to test a function that outputs text to the standard output, presumably using a cout call. I do not have access to the source, but need to test the output. Is this possible? I can...
6
by: ShieldsJared | last post by:
Hello all, I've been working on an application for a while now and have now come to a standstill. I have an application that I intend to have stored on a file server (developed in C#), which...
2
by: ghr | last post by:
I'm new to asp. My requirement is: getting the user mail id from the system and forward it to a jsp Now i'm getting the mail id while redirecting it to jsp i'm using ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.