Geeks With Blogs

News

Len Smith's Facebook profile


nIgnuSharp.NET //len smith is a software developer in ann arbor, mi November 2008 Entries
Low impact Ajax with jQuery and ASP.NET MVC
Here's a simple way to avoid postbacks in your site, still be SEO friendly and degrade gracefully to JavaScript free browsers (and handle middle clicks and copy&paste) in ASP.NET MVC using jQuery. First, we'll create an alternate MasterPage called No.master with no content, only one ContentPlaceHolder: <asp:ContentPlaceHolder ID="MainContent" runat="server" /> Now, we're able to tell via HTTP Headers if a Request is an Ajax Request, so we'll write a new method in our Controller Base class ......

Posted On Sunday, November 9, 2008 3:37 PM

Have I mentioned loving Extension Methods?
Here's my new favorite: public static string AppSetting(this string parameter) { return System.Configuration.Config... } Now I can simply call "BaseUrl".AppSetting(); Beautiful ......

Posted On Thursday, November 6, 2008 7:00 AM

Copyright © Len Smith | Powered by: GeeksWithBlogs.net