title: MVC3 Request.Form value is null
body: <p>Issue: In the controller, the Request.Form values are null and count is 0. This is happening after hosting my website with a web hosting firm. However there is no issue while I am developing the website.</p>
  
  <p><strong>HTML PART</strong></p>
  
  <pre><code>&lt;form action = "@ViewBag.SearchLink" method="post" style="vertical-align:middle" name="ListSearch" enctype="application/x-www-form-urlencoded"&gt;
  &lt;table style="width:100%;vertical-align:middle;background-color:#265A9A;border-color:Black;color:White" &gt;
      &lt;tr align="right"&gt;&lt;td&gt;
      &lt;input id="SearchWords" name="SearchWords" type="text" style="font-size:small" maxlength="500"/&gt;
      &lt;select id="SearchParam" name="SearchParam" style="font-size:small"&gt;
      @for (int i = 0; i &lt; ViewBag.ParamCount; i++)
      {
          if (@ViewBag.SelectedParam == @ViewBag.ParamArray[i].ParamName)
          {
              &lt;option selected='selected' &gt;@ViewBag.ParamArray[i].ParamName&lt;/option&gt;
          }
          else
          {
              &lt;option&gt;@ViewBag.ParamArray[i].ParamName&lt;/option&gt;            
          }
      }
      &lt;/select&gt;
      &lt;input class="button_grad" type="submit" value=" Search Param " style="font-size:small"/&gt;
      &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>CONTROLLER PART</strong></p>
  
  <pre><code>public ActionResult SearchList()
  {   
      try
      {
          string searchText = string.Empty;
          if (Request.Form["SearchWords"] != null)
          {
              searchText = Request.Form["SearchWords"].ToString().TrimEnd();
              // Does not enter this if condition  
          }
  
          string searchParam = Request.Form["SearchParam"].ToString();
          int count = Request.Form.Count; // returns 0
  </code></pre>
  
  <p>I have looked at other links but they do not help. Am I missing anything? Please advise.</p>
  
  <p>Adding the full HTML of another page which also returns Request.Form values as null.</p>
  
  <p><strong>HTML PART</strong></p>
  
  <pre><code>@*
  Author and Owner:   
  Modified date:      
  File Name:          Index
  File Type:          CSHTML   
  File Title:         Feedback
  Description: 
  *@
  
  @{
      ViewBag.Title = "Feedback";
  }
  
  &lt;h2&gt;Feedback&lt;/h2&gt;
  
  &lt;form name="AddFeedback" id="AddFeedback" action="@ViewBag.AddFeedbackLink" method="post" onsubmit="return Validation()" enctype="application/x-www-form-urlencoded" &gt;
  &lt;table style="width:35%"&gt;
  &lt;tr&gt;&lt;td&gt;&lt;label style="width:35%"&gt;Name *&lt;/label&gt;&lt;/td&gt;&lt;td style="width:65%"&gt;&lt;input id="Name" name="Name" maxlength="200" style="font-size:small" value="@ViewBag.FeedbackName" onchange ="ControlLeave(this)"/&gt; &lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;&lt;label style="width:35%"&gt;Email *&lt;/label&gt;&lt;/td&gt;&lt;td style="width:65%"&gt;&lt;input id="EmailId" name="EmailId" maxlength="100" value="@ViewBag.EmailId" style="font-size:small"/&gt; &lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;&lt;label style="width:35%"&gt;Contact Number&lt;/label&gt;&lt;/td&gt;&lt;td style="width:65%"&gt;&lt;input id="ContactNumber" name="ContactNumber" maxlength="20" style="font-size:small"/&gt; &lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;&lt;label style="width:35%"&gt;Type *&amp;nbsp&lt;/label&gt;&lt;/td&gt;&lt;td style="width:65%"&gt;&lt;select id="Type" name = "Type"&gt;&lt;option&gt;Advertising&lt;/option&gt;&lt;option&gt;Comment&lt;/option&gt;&lt;option&gt;Grievance&lt;/option&gt;&lt;option&gt;Suggestion&lt;/option&gt;&lt;/select&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;&lt;label&gt;Feedback Box *&lt;/label&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  &lt;br /&gt;
  &lt;textarea rows="10" cols="60"  name="Feedback" id="Feedback" style="font-size:small;background-color:#F2F2F2;"&gt;&lt;/textarea&gt; &lt;br /&gt;&lt;br /&gt;
  &lt;label id="Message" style="font-size:small;color:Red"&gt;@ViewBag.FeedbackMessage&lt;/label&gt;&lt;br /&gt;&lt;br /&gt;
  &lt;input class="button_grad" type="submit" value=" Send "/&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>Please advise why the above code could return Request.Form as null. 
  Also please note that the website is being developed using 
  <em>Microsoft Visual Web Developer 2010 Express.</em></p>