J
Jeff
Visual Studio 2003
DotNet framework 1.1
Windows 2000 Pro
I create two pages in an Asp.net application, one is html page with a form
in it:
....
<form id="testForm" method="post" action="test.aspx" runat="server">
<input type="hidden" id="hiddenTest" value="hello, world">
<input type="submit" id="btnSubmit" value="submit">
</form>
....
Another one page is aspx page. It is a blank aspx page in which Request info
is shown in Page_load even handler:
private void Page_Load(object sender, System.EventArgs e) {
//show Request info
string httpMethod = Request.HttpMethod;
....
If I run this web application from the html page and click the submit
button, the aspx page gets called. But from debugger, the value of
Request.HttpMethod will always be "GET" rather than "Post". ???
Has anyone had this kind of problems before?
Thanks!!!
DotNet framework 1.1
Windows 2000 Pro
I create two pages in an Asp.net application, one is html page with a form
in it:
....
<form id="testForm" method="post" action="test.aspx" runat="server">
<input type="hidden" id="hiddenTest" value="hello, world">
<input type="submit" id="btnSubmit" value="submit">
</form>
....
Another one page is aspx page. It is a blank aspx page in which Request info
is shown in Page_load even handler:
private void Page_Load(object sender, System.EventArgs e) {
//show Request info
string httpMethod = Request.HttpMethod;
....
If I run this web application from the html page and click the submit
button, the aspx page gets called. But from debugger, the value of
Request.HttpMethod will always be "GET" rather than "Post". ???
Has anyone had this kind of problems before?
Thanks!!!