T
Tomas Vera
Hello All,
I've come across something that's probably simple, but I can't seem to figure
out (probably 'cause it's Monday.. yeah, That's it).
Anyway, how do I receive form information from a standard HTML or ASP page into
my ASPX page?
I assumed that Request.Form would hold the form info from the calling form. But
the form is always empty. This being the case, does the Request.Form member
contain "this" Form property? What property contains the referring form?
Examples
HTML file form code:
<form action="test.aspx" method="post">
<p>Name: <input type="text" name="username"></p>
<p>Email: <Input type="text" name="userEmail"></p>
<p><Input type="Submit" Value="Send it"></p>
</form>
TEST.ASPX.CS code snippet (Request.Form.Count is always zero):
private void ParseFormElements()
{
int i;
i =
for (i=0; i < Request.Form.Count; i++)
{
Response.Write("<p>" + Request.Form.ToString() + "</p>");
}
}
I've come across something that's probably simple, but I can't seem to figure
out (probably 'cause it's Monday.. yeah, That's it).
Anyway, how do I receive form information from a standard HTML or ASP page into
my ASPX page?
I assumed that Request.Form would hold the form info from the calling form. But
the form is always empty. This being the case, does the Request.Form member
contain "this" Form property? What property contains the referring form?
Examples
HTML file form code:
<form action="test.aspx" method="post">
<p>Name: <input type="text" name="username"></p>
<p>Email: <Input type="text" name="userEmail"></p>
<p><Input type="Submit" Value="Send it"></p>
</form>
TEST.ASPX.CS code snippet (Request.Form.Count is always zero):
private void ParseFormElements()
{
int i;
i =
for (i=0; i < Request.Form.Count; i++)
{
Response.Write("<p>" + Request.Form.ToString() + "</p>");
}
}