Setting the form action attribute just isn't the ASP.NET way.
Of course there are a number of ways to pass values from one page to
another, such as using the querystring, cookies, session,
context, saving to a temporary table in the database between each page, etc.
You'll have to decide which technique is best for your application.
Here are several good articles on the subject to help you decide.
http://msdn.microsoft.com/msdnmag/is...e/default.aspx
http://www.aspalliance.com/kenc/passval.aspx
http://www.dotnetjunkies.com/tutoria...tutorialid=600
http://www.dotnetbips.com/displayarticle.aspx?id=79
Here's one nice, simple way to pass values from one page to another:
'Add data to the context object before transferring
Context.Items("myParameter") = x
Server.Transfer("WebForm2.aspx")
Then, in WebForm2.aspx:
'Grab data from the context property
Dim x as Integer = CType(Context.Items("myParameter"),Integer)
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at
http://www.able-consulting.com
"Matthew Louden" <> wrote in message
news:...
> In ASP, if I have asppage.asp for GUI and aspprocess.asp for process
> requests from database.
>
> In asppage.asp code will be like:
> <form action="aspprocess.asp" method="POST"> GUI CODE </form>
>
> When the user clicks the submit button on asppage.asp, it will invoke
> aspprocess.asp page
>
> aspprocess.asp code can get the user input from asppage.asp by doing:
> Request.Form("Control_ID")
>
> In ASP.NET, if I want to achieve the same goal: if I have aspxpage.aspx
for
> GUI and aspxprocess.aspx for process requests from database
>
> In aspxpage.aspx code will be like:
> <form id="Form1" method="post" action="aspxprocess.aspx" runat="server">
GUI
> CODE </form>
>
> However, when the user clicks the submit button on aspxpage.aspx, it
didn't
> invoke aspxpage.aspx page at all, unless I do the the following:
>
> Private Sub Submit1_ServerClick(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles Submit1.ServerClick
> Response.Redirect("aspxprocess.aspx")
> End Sub
>
> But even now I am in aspxprocess.aspx page, how can I get the user input
> from aspxpage.aspx??
> Request.Form("Control_ID") no longer works.
>
> Please advise!
> Thanks!
>
>