[2008] Pass data from static page to aspx form
Code:
<form id="formContact" name="formContact" action="submit.aspx" onsubmit="return validateContactForm();">
<p>Full Name: <input id="txtName" type="text" style="width: 240px;" /> </p>
<p><input id="btnSubmit" type="submit" value="Submit" style="width: 130px;" /></p>
</form>
And it submits to the submit.aspx but i cannot get the txtName value.
I tried everything but seems that Request.Form("txtName") returns nothing no matter what ...
Any idea? Thanks in advance
Re: [2008] Pass data from static page to aspx form
I get this error message:
The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.
Well, if it helps this is dedicated server with IIS7 (win2k8 server) which means that i can make the needed settings if needed.
Thanks :)
Re: [2008] Pass data from static page to aspx form
Interesting. I got this same error when doing posts to a directory inside of Visual Studio's server but changing to the IIS server for debugging fixed my issue. Are you sure you're using IIS?
Re: [2008] Pass data from static page to aspx form
Yes and it seems i resolved it. I just changed the AppPool and now it works like a charm. Have no idea why but, it must be DefaultAppPool.
Thank you :)
Re: [2008] Pass data from static page to aspx form
Hmm, could it be because you were missing the method="POST"?