Connecting Tech Pros Worldwide Forums | Help | Site Map

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

econVictim's Avatar
Newbie
 
Join Date: Oct 2008
Location: Chicago
Posts: 13
#1: Dec 17 '08
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

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3.     <system.net>
  4.     </system.net>
  5.     <system.web>
  6.     <webServices>
  7.       <protocols>
  8.         <add name="HttpGet" />
  9.         <add name="HttpPost" />
  10.         <add name="HttpPostLocalhost" />
  11.       </protocols>
  12.     </webServices>
  13.         <compilation debug="true" />
  14.         <customErrors mode="Off" />
  15.         <sessionState cookieless="UseUri" timeout="60" />
  16.         <pages enableViewState="true" />
  17.         <roleManager enabled="false" />
  18.     </system.web>
  19.     <system.webServer>
  20.         <defaultDocument>
  21.             <files>
  22.                 <add value="index.aspx" />
  23.             </files>
  24.         </defaultDocument>
  25.     </system.webServer>
  26. </configuration>
  27.  
What should I be doing to try and enable the GET functionality in asp.net?

kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Dec 18 '08

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


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.
econVictim's Avatar
Newbie
 
Join Date: Oct 2008
Location: Chicago
Posts: 13
#3: Dec 18 '08

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


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.
Reply


Similar IIS / Microsoft Internet Information Services bytes