Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ASP.NET to ASP form post

0 views
Skip to first unread message

John McD

unread,
Dec 17, 2002, 3:20:35 AM12/17/02
to
Hi,

I want to post a form from an ASP.NET page to a traditional
ASP page.
What's the easiest way to do this?

Thanks in advance, John McD.

Kevin Spencer

unread,
Dec 17, 2002, 7:52:08 AM12/17/02
to
Set the ACTION property of your ASP.Net form to point to the ASP page.

HTH,

--
Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Complex things are made up of lots of simple things.

"John McD" <judet...@hotmail.com> wrote in message
news:052e01c2a5a5$2ca36d90$d6f82ecf@TK2MSFTNGXA13...

Steve C. Orr, MCSD

unread,
Dec 17, 2002, 12:51:43 PM12/17/02
to
For this technique to work I believe you'll need to use an old fashioned
Form by removing the runat="server" attribute from your Form tag.
However, this makes any necessary ASP.NET server side code more challenging.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net


"Kevin Spencer" <ke...@takempis.com> wrote in message
news:Og#tBrcpCHA.1616@TK2MSFTNGP10...

andy

unread,
Dec 18, 2002, 12:59:14 AM12/18/02
to
I have just posted a few minutes ago as I am having
similar issues. I want to pass info to a .php page. I have
used the server.transfer in my Eventhandler, but it seems
to only pass or post to .aspx pages not to php?? This
response.redirect method you use here, would it work for
passing values from my server controls ie..text boxes and
dropdown lists to php??
>-----Original Message-----
>The easiest way is to not use Post but to use a
querystring to pass the values:
>
> Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As
>System.EventArgs) Handles Button1.Click
> Response.Redirect("otherpage.asp?
value1=Hello&value2=There")
> End Sub
>
>If you really need to use Post, you might want to look at
the Webclient class:
>
>http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpref/html/frlrfsystemnetwebclientclassuploaddatatopic.a
sp
>
>As you've seen, you can't use the Action property on
the .aspx page because
>ASP.NET ignores it and just posts back to itself.
>
>Ken

>
>
>"John McD" <judet...@hotmail.com> wrote in message
>news:052e01c2a5a5$2ca36d90$d6f82ecf@TK2MSFTNGXA13...
>.
>
0 new messages