title: Asp.net ajax query returning page
body: <p>I'm trying at first to run ajax request using jQuery in my page. On view page
  <code>localhost:1382/Home/Index</code> I have this code:</p>
  
  <pre><code>...bla-bla, another usless code..
   $.ajax({
                          url: "Index/ShowStadium",
                          contentType: "application/json; charset=utf-8",
                          dataType: "text",
                          type: "POST",
                          data: "",
                          success: function (data) {
                              $(".right-content").html(data);
                          },
                          error: function (xhr, textStatus) {
                              alert(textStatus);
                              $(".right-content").html("в этом клубе нет спортивных площадок");
                          }
  
                      });
  ...other usless code...
  </code></pre>
  
  <p>So I put a function named <code>ShowStadium()</code> in my <code>HomeController</code>. But every time I got one of this errors: </p>
  
  <ol>
  <li>200 - Parse error. </li>
  <li>Ok ,  but response is a full page. </li>
  </ol>
  
  <p>Here is my <code>HomeController</code> code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  using ProjectMVC.Models;
  using System.Web.Services;
  
      namespace ProjectMVC.Controllers
      {
          public class HomeController : Controller
          {
              private readonly Initializer init = new Initializer();
  
              public ActionResult Index()
              {
                  return View();
              }
  
              [HttpPost]
              public ActionResult Index(EventDetails obj)
              {
                  if (ModelState.IsValid)
                  {
                     ViewData["Error"] = "nice one!";
                     return Redirect("/home/index2.cshtml");
                  }
                  else
                  {
                      ViewData["Error"] = "Заполните необходимые поля, пожалуйста";  // If JS disabled
                  }
                  return View();
              }
  
              [WebMethod]
              public static string ShowStadium()
              {
                  return "Футбольное поле";
              }
          }
      }
  </code></pre>
  
  <p>As I told, the biggest problem for me is a page in response, the page of view which returning <code>HomeController</code>.</p>