Geeks With Blogs
Doug.Instance Improving the world one post at a time September 2011 Entries
Another Benefit of Asynchronous Processing of ASP.Net MVC Results
Most people who are really into ASP.Net MVC probably enjoy its test-driven nature or "unit-testability". This is a key benefit of the asynchronous model used by the MVC framework when action results are returned. Another benefit of this is in memory management. I am working on creating a large document which is to be available both online and offline and consists of several hundred (potentialy more than a thousand) items. The items are stored in a tree structure where each item has children and children ......

Posted On Tuesday, September 27, 2011 9:13 PM

Simple MVC 2 Pager
I wrote a simple pager AjaxHelper extension. You can convert this to an HtmlExtension method by just removing the AjaxOptions and swapping out the AjaxHelper with HtmlHelper. This assumes that your parameter for the page name is "Page". 1: public static string Pager(this AjaxHelper ajaxHelper, int page, int pageSize, int count, int pages, string actionName, string controllerName, object routData, AjaxOptions ajaxOptions) 2: { 3: StringBuilder sb = new StringBuilder(); 4: int pageCount = count / pageSize ......

Posted On Thursday, September 22, 2011 5:44 AM

Copyright © Doug Lampe | Powered by: