473,385 Members | 1,518 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,385 software developers and data experts.

Posting Data ??

Hi,

Simple question, Is there a way to post the data from one .aspx page
to another page ?
For example, I have a Page1.aspx that lets the user enter data like
"Last Name", "First Name", but I want post that information into another
..aspx page (Page2.aspx ) .
I know I can do a redirect to the second page ,but then I will have to
build a "query string" .

Is there a way just to post the data to the second page, just like the
old .asp pages did before .aspx without having to build a "query string" ?

Thanks,
hang
Jul 21 '05 #1
2 1564
Ray
http://msdn.microsoft.com/library/de...sferTopic2.asp
The Server.Transfer method is what I think you are looking for. When you
post back to the original page, you can, depending on an action you define
in your code, transfer execution of the submission to another page.

Ray

"HANG LAM" <ha*****@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
Hi,

Simple question, Is there a way to post the data from one .aspx page
to another page ?
For example, I have a Page1.aspx that lets the user enter data like
"Last Name", "First Name", but I want post that information into another
.aspx page (Page2.aspx ) .
I know I can do a redirect to the second page ,but then I will have to build a "query string" .

Is there a way just to post the data to the second page, just like the old .asp pages did before .aspx without having to build a "query string" ?

Thanks,
hang

Jul 21 '05 #2
hang

I suspect what you are asking is - can you still use a post rather than a
get in a form action?

eg, <form action="page2.aspx" method="post"......

The simple answer is yes, these methods will still work without any
problems. You use the request.form("fldName") to retreive the data. There
are newer methods though which you should consider which make life a lot
easier....

If you have a number of fields on a page (within a form) you just have to
put an <asp:button> on the page, double click on the button in VS and this
will open up the code behind page. you can then just type in what you want
it to do from there.... eg me.lblresponse.text = me.txtTextbox.text.

Much quicker than the older methods. After recording the data you can then
transfer all the headers (including your post data) to another page if that
is what you require by using the server.transfer method.

If this doesn't really answer your question perhaps you could give us an
example of what you are trying to do

regards
--
Jody
[MCSD.Net]

Jody
"HANG LAM" <ha*****@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
Hi,

Simple question, Is there a way to post the data from one .aspx page
to another page ?
For example, I have a Page1.aspx that lets the user enter data like
"Last Name", "First Name", but I want post that information into another
.aspx page (Page2.aspx ) .
I know I can do a redirect to the second page ,but then I will have to build a "query string" .

Is there a way just to post the data to the second page, just like the old .asp pages did before .aspx without having to build a "query string" ?

Thanks,
hang

Jul 21 '05 #3

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

Similar topics

1
by: Allan Cammish | last post by:
I have seen some examples of client-side code inside an ActiveX control posting data back to the server in ASP. I have tried the code and it works well. However, I need to see how this is done...
10
by: DaveFash | last post by:
Posting variables from an HTML FORM, via the Request.Form function on the receiving ASP page is great. But how can you POST a Form variable to an ASP page -- without a human pushing a Submit...
4
by: Stacey Levine | last post by:
Please tell me if this makes sense. I have written an ASPX page to handle and process POSTed XML data to it. I am expected the data to be in the Request.Form object. This works perfectly fine...
6
by: KC | last post by:
How would I post data from a listbox that allows multiple selections? How do you join the name/value pairs for the posted data? And for extra credit: Where is a page posting to when there is no...
3
by: Peter Afonin | last post by:
Hello, I'm posting the data to another page and reading the results. I'm doing it approximately as described here: http://authors.aspalliance.com/stevesmith/articles/netscrape2.asp It works...
11
by: bill | last post by:
I dynamically create buttons and associate them with an event using AddHandler. I want all the button events to fire at one time, when the page is posted, instead of when each button is clicked....
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
4
by: Peter Afonin | last post by:
Hello, I have a form with several buttons, and I need to post this data to several different applications. In ASP.NET 1.1 it was quite easy - I just used HTML controls (text or hidden), then...
6
by: fnoppie | last post by:
Hi, I am near to desperation as I have a million things to get a solution for my problem. I have to post a multipart message to a url that consists of a xml file and an binary file (pdf)....
4
by: Boki | last post by:
Hi All, I need to let user type some text in a textbox, and user will click a button to submit the material. It is very straightforward if we implement it by single thread. But the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.