Search code examples
jqueryasp.net-mvcjsonstatic-html

Strictly using static html files, jquery, ajax and json web services for a website?


I've been using ASP.Net MVC for a while now and I've been thinking that this:

<% foreach(ItemRow in Items) { %> <div><%=ItemRow.Description%></div> <% } %>

Reminds me a little too much of ASP Classic and PHP. Yeah there are definite improvements but it still makes me cringe a little.

I've been thinking instead of writing nothing but static html and strictly using jQuery to gather JSON results from webservices and populate the page appropriately. Has anyone tried this approach? What was your experience?


Solution

  • I have been finding myself doing this more and more. I find it quicker to do simple customer-centric apps. The only "issues" are security and session state management. But it is not a deal killer.

    Depends on your view, but one of the positives we have found is that we can build the business and data layers, allow our front end developers to build their interface vision without many restrictions, and finally we can allow a less experienced developer do a lot more of wiring the jquery stuff. Which from a business perspective has a higher ROI as i can dedicate the higher end engineers and developers to do better use of their time.