title: asp.net mvc correctly get json data but can not show on the view page
body: <p>I am beginner for .net MVC. I guess my problem is related to route setting.</p>
  
  <p>What I want to do is :I get data from database, in controller transfer data to json format and pass to view, use javascript decode json data and show on the html.</p>
  
  <p>When I write methods under  TechnologyController, type localhost:portnumber/Technology/Index, no decoded json data in html format, but if I type localhost:portnumber/Technology/GetJson
  It show me a page with pure json data (which means if I call GetJson() method separately, it works)</p>
  
  <p>I write the same code in HomeController, it runs correct, all the route setting is default:
      routes.MapRoute(
      "Default", // Route name
      "{controller}/{action}/{id}", // URL with parameters
      new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
      );</p>
  
  <p>//This is my controller</p>
  
  <pre><code>public class TechnologyController : Controller
  {
  public ActionResult Index()
  {
  
  return View();
  }
  
  public JsonResult GetJson() 
  {
  
  Technology myTech = new Technology(); //get data from database (Tested correct) 
  return Json(myTech.select(), JsonRequestBehavior.AllowGet);
  
  }
  }
  </code></pre>
  
  <p>//This is Javascript:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  $(document).ready(function() {
  
  $.getJSON("Technology/GetJson/", null, function(data) {
  
  sss.innerHTML+=data["title"];// this part is correct (I already tested,please ignore), the purpose is to parse json data to html. 
  .......
  }
  )};
  )};
  </code></pre>
  
  <p>I understand if I call "localhost:portnumber/Technology/Index", it only execute index method, that is why GetJson method is not called, but what url should I call in order to call index() as well as GetJson.</p>