M
Matthew Louden
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!
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!