By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

How to use Request.FORM() ?

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.