Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Normal HTML pages work fine on an IIS7 server as do ASP pages. However when I try to add a HTML form and after clicking on the submit button, I receive the error:

The HTTP verb POST used to access path '/FormServer/Mig/_vti_bin/shtml.dll/admissions/askseaaggie.htm' is not allowed.

Currently the only solution I know is to rebuild the entire form using ASP.NET markup.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

The question is a bit confusing, but I'll try and answer it as I understand it.

HTML pages don't process form data (unless you are using the GET form method, in which case you can extract values from the querystring), so you would have to point the form's 'action' attribute at a dynamic server page. Assuming (from your mention of it) that this is ASP, then you would set the action value like so:

<form method="post" action="myserverpage.asp">
<input name="firstname" type="text"/>
<input name="lastname" type="text"/>
</form>

Then you use a server-side script (e.g. in 'myserverpage.asp') to access the POSTed form values. What you do with them is up to you, but a simple example in classic ASP (as opposed to .Net) would be something like:

<%
response.write(request.form("firstname"))
response.write(request.form("lastname"))
%>

Which would render the two values back to the client's browser.

So, in summary, the HTML page's form POSTs (i.e. submits) the two values to the 'action' page, whereupon the ASP retrieves the POSTed values and responds by writing them out to the client.

If this isn't working, it means you haven't correctly installed ASP on IIS7 (it is off by default), follow these instructions for your OS:

http://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis

(Basically, enable 'ASP' in control panel>turn features on/off>windows features)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.