473,498 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use Request.FORM() ?

Hi,

I have an old page written in classic ASP. I do not wish to rewrite to
ASP.NET.

Is it possible to use POST in the classic ASP page's FORM tag and
retrieve the POST data in another ASP.NET page?

I can't seem to be able to use Request.FORM in asp.net

Pls advise.

Thanks.

May 31 '07 #1
4 80558
You can use request.form

an example is...

(C#)
string MyVal = Request.Form["FieldName"];

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"user" <my************@gmail.comwrote in message
news:11*********************@g37g2000prf.googlegro ups.com...
Hi,

I have an old page written in classic ASP. I do not wish to rewrite to
ASP.NET.

Is it possible to use POST in the classic ASP page's FORM tag and
retrieve the POST data in another ASP.NET page?

I can't seem to be able to use Request.FORM in asp.net

Pls advise.

Thanks.

May 31 '07 #2
"user" <my************@gmail.comwrote in message
news:11*********************@g37g2000prf.googlegro ups.com...
I have an old page written in classic ASP. I do not wish to rewrite to
ASP.NET.
OK.
Is it possible to use POST in the classic ASP page's FORM tag and
retrieve the POST data in another ASP.NET page?
Yes.
I can't seem to be able to use Request.FORM in asp.net
What code are you using...?
--
http://www.markrae.net

May 31 '07 #3
Yes you can still use Request.Form:
Here's an example:
Dim s As String = Request.Form("TextBox1").ToString 'VB.NET
string s = Request.Form["TextBox1"].ToString(); //C#

Here's more info:
http://SteveOrr.net/articles/PassData.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"user" <my************@gmail.comwrote in message
news:11*********************@g37g2000prf.googlegro ups.com...
Hi,

I have an old page written in classic ASP. I do not wish to rewrite to
ASP.NET.

Is it possible to use POST in the classic ASP page's FORM tag and
retrieve the POST data in another ASP.NET page?

I can't seem to be able to use Request.FORM in asp.net

Pls advise.

Thanks.
May 31 '07 #4
It still works. What is the error you have ? Show us some code...

"user" <my************@gmail.coma écrit dans le message de news:
11*********************@g37g2000prf.googlegroups.c om...
Hi,

I have an old page written in classic ASP. I do not wish to rewrite to
ASP.NET.

Is it possible to use POST in the classic ASP page's FORM tag and
retrieve the POST data in another ASP.NET page?

I can't seem to be able to use Request.FORM in asp.net

Pls advise.

Thanks.

May 31 '07 #5

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

Similar topics

6
10303
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
4
4270
by: Paxton | last post by:
At the risk of being told "If it ain't broke, don't fix it", my code works, but is ugly. Part of the admin site I'm working on at the moment includes a facility for users to enter Formulations...
6
2279
by: Agoston Bejo | last post by:
Hi. x1.asp: <form method="post" action="x2.asp"> .... </form> x2.asp: DoSomeAdministration() Response.Redirect "x3.asp?" & Request.Form x3.asp: further processsing of data
5
2440
by: Paxton | last post by:
I created an html email containing a form whose method is POST. The form is posted to an asp page for processing, but no values are retrieved. So I response.write all the Request.Form fields, and...
5
2188
by: Jack | last post by:
Hi, I am trying to get a thorough understanding of a code where a addition or deletion of records can be done from a list of records. For addition part of the form, data is being obtained from set...
14
19855
by: Drew | last post by:
I need to iterate through a submitted form, inserting data on each pass. In the past, I have always used form elements that were named with numbers at the end, like this, name1 relationship1...
8
3064
by: abcd | last post by:
I can get the value on the form at the server side by using Request.form("max") when max field is disabled I dont get value. For GUI and business logic purpose I have disabled some fields with...
4
4837
by: whyyyy | last post by:
USING IIS 5.1, and Windows XP pro, the following form works on my system, and I can use as many form elements as I wish, as long as all form elements have the same name: "words", in this example....
4
3735
by: Michael Kujawa | last post by:
I am using the following to create an SQL statement using the names and values from request.form. The loop goes through each item in request.form The issue comes in having an additional "and" at...
7
9640
by: =?Utf-8?B?QVRT?= | last post by:
HOWTO Make CStr for JavaScript on ASP w/ Request.Form and QueryString In ASP, Request.Form and Request.QueryString return objects that do not support "toString", or any JavaScript string...
0
7005
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
7168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7381
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
5465
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,...
1
4916
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.