|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hello guys,
my problem is that when i try to submit my form i redirected to page cannot be displayed HTTP 405 - Resource not allowed Internet Information Services i have configured my asp page and enabled default document on the directory and my form looks like this <form action="/?page=1" method="post" name="form1"> <input type="submit"> </form> and i wonder why its not working, it works fine on my webhosting |
|
#2
|
||||
|
||||
|
Is your index page setup to accept query string parameters as the action of the form will effectively be calling "index.asp?page=1" or whatever your default document is set to.
__________________
Hope this advice helps.
If so please show your appreciation by adding reputation points (click gauge image on top right of this post).- Post your code - Post your errors - Be clear - Be courteous - AND PLEASE...Finalise your thread with a solution or confirmation that the last advice worked or failed. Visit My ASP Free Members Club Profile |
|
#3
|
||||
|
||||
|
Is your default document an ASP page i.e. index.asp or default.asp or is it an HTML file as in index.htm?
|
|
#4
|
|||
|
|||
|
thanks for the reply
yeah its default.asp or an asp page not .html page. i just set my default document to default.asp |
|
#5
|
|||
|
|||
|
any ideas anyone?
your help is greatly appreciated |
|
#6
|
||||
|
||||
|
try this:
Code:
<form action="index.asp?page=1" method="post" name="form1">
__________________
Come JOIN the party!!! Quote of the Month: Pretension: The downside of being better than everyone else is that people tend to assume you're pretentious. Questions to Ponder: You can be overwhelmed and underwhelmed, but why can't you be simply whelmed? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#7
|
|||
|
|||
|
Quote:
i mean... i want to hide my webpage extension thats why i add my asp page as default document on the iis coniguration. it works fine on a "<a href="/?page=1">try</a>" but doesn't work on form submition. <form action="index.asp?page=1" method="post"> yup this one works but i want this one <form action="/page=1" method post> sorry for my bad english hope you could help me setup my iis passing only querystrings on forms |
|
#8
|
||||
|
||||
|
If the form page is in the same folder as the index page try...
Code:
<form action="?page=1" method="post"> |
|
#9
|
|||
|
|||
|
Quote:
yup i tried that one but it gives me http 405 resource not allowed? i think theres a problem with my iis |
|
#10
|
||||
|
||||
|
Actually thinking about it, leaving the action attribute blank or not specifying a file name just parameters defaults to the same page. So if your form is frm.asp and have no action attribute or just a parameter like ?page=one then submitting the form will reload the frm.asp.
If you say it works on your web host then i would look at your IIS, off the top of my head check the Application Configuration, Mappings tab then check that the asp entry has GET,HEAD,POST,TRACE in the verbs section if it is set to limited to: |
|
#11
|
|||
|
|||
|
i followed your instructions and still i received the same error, is there any other solutions you can share?
btw thanks a lot for your reply Quote:
|
|
#12
|
|||
|
|||
|
i even tried putting the directory in my form's action
Code:
<form name="form1" action="../mytest/?page=1" method="post"> <input type="text" name="test"> <input type="submit" value="submit"> </form> but still no luck , i think my iis here is screwed how i wish i can find solution to this one |
|
#13
|
||||
|
||||
|
wiil it work if you add the page name to the action...
Code:
<form name="form1" action="../mytest/PageName.asp?page=1" method="post"> <input type="text" name="test"> <input type="submit" value="submit"> </form> |
|
#14
|
|||
|
|||
|
yes it works fine with pagename name included, its kinda weird ive checked already the application mappings and and in asp extension ive edited limit to GET,HEAD,POST,TRACE and still i received resource not allowed
![]() |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > IIS - Other - Need help my asp in iis |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|