how can i do a form POST from a regular html file. and call a .net file that ends with .aspx what would my html file require?
+3
A:
<form method="Post" action="YourNETFile.aspx">
... other form elements
</form>
Then on your aspx code behind, you can get to the form elements with: Request.Params["FormElementName"]
Joshua Belden
2009-05-06 15:01:46
The only thing I would add is that your aspx file might need to have viewstate validation turned off.
Chris Lively
2009-05-06 15:07:42
A:
something of the form
<form action="location of aspx" method="Get|post">
<input name="variable name" value="variable value" type="text|hidden|etc" />
</form>
DNeoMatrix
2009-05-06 15:03:38
A:
Just put it as the action
of the form. All you need to remember is to make sure your fields are named what the CodeBehind expects.
Cheers!
p.s. It seems that posting answers is now a game of "beat the clock"
Chris
2009-05-06 15:04:17
Heh, posting answers has been a game of "beat the clock" for some time ;)
Zhaph - Ben Duguid
2009-05-06 15:08:03