How to enable get/post in IIS7 asp.net 2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • econVictim
    New Member
    • Oct 2008
    • 13

    How to enable get/post in IIS7 asp.net 2.0

    I have a standard html form in my master page. The form uses the GET method. When I submit the form, nothing is appended to the URL. I am assuming that this feature is disabled somewhere somehow. I have read a few articles that describe how to enable the features in the web.xml and so I've gone ahead and done it and my web.xml looks like

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    	<system.net>
    	</system.net>
    	<system.web>
        <webServices>
          <protocols>
            <add name="HttpGet" />
            <add name="HttpPost" />
            <add name="HttpPostLocalhost" />
          </protocols>
        </webServices>
    		<compilation debug="true" />
    		<customErrors mode="Off" />
            <sessionState cookieless="UseUri" timeout="60" />
            <pages enableViewState="true" />
            <roleManager enabled="false" />
    	</system.web>
    	<system.webServer>
    		<defaultDocument>
    			<files>
    				<add value="index.aspx" />
    			</files>
    		</defaultDocument>
    	</system.webServer>
    </configuration>
    What should I be doing to try and enable the GET functionality in asp.net?
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Personally, I would forget about the html get method. You are using asp.net so why not use its methods. In dot net extensive use is made of querystring, but it is usually the id of a DB table passed not all the input values of a form,

    Suggest checking out MSDN or suitable tutorial.

    Comment

    • econVictim
      New Member
      • Oct 2008
      • 13

      #3
      thanks for your reply but this is not really an answer to the question. for various reasons relating to custom application i cannot take advantage of the usual .net methodology. instead this is really a work around. i could take advantage of this simpler approach or consider redesigning hundreds of content pages.

      Comment

      Working...