Articles : Page 1 of 2
- Filter:
- JSON
-
Dynamic JSON Parsing in .NET with JsonValue
Mar 1219So System.Json has been around for a while in Silverlight, but it's relatively new for the desktop .NET framework and now moving into the lime-light with the pending release of ASP.NET Web API which is bringing a ton of attention to server side JSON usage. The JsonValue, JsonObject and JsonArray objects are going to be pretty useful for Web API applications as they allow you dynamically create and parse JSON values without explicit .NET types to serialize from or into. But even more so I think...
-
Preventing CSRF With Ajax
Oct 1111A long while ago I wrote about the potential dangers of Cross-site Request Forgery attacks, also known as CSRF or XSRF. These exploits are a form of confused deputy attack. Screen grab from The Police Academy movie.In that post, I covered how ASP.NET MVC includes a set of anti-forgery helpers to help mitigate such exploits. The helpers include an HTML helper meant to be called in the form that renders a hidden input, and an attribute applied to the controller action to protect. These helpers...
-
What’s the Difference Between a Value Provider and Model Binder?
Jun 1130ASP.NET MVC 3 introduced the ability to bind an incoming JSON request to an action method parameter, which is something I wrote about before. For example, suppose you have the following class defined (keeping it really simple here): public class ComicBook { public string Title { get; set; } public int IssueNumber { get; set; } } And you have an action method that accepts an instance of ComicBook: [HttpPost] public ActionResult Update(ComicBook comicBook) { // Do something with ComicBo...
-
JsonValueProviderFactory in ASP.NET MVC 3
Jan 1107A quick post on the new JsonValueProviderFactory in ASP.NET MVC 3. It is easy to take this new feature for granted....
-
Dec 5th Links: ASP.NET, ASP.NET MVC, jQuery, Silverlight, Visual Studio
Dec 1006Here is the latest in my link-listing series. Also check out my VS 2010 and .NET 4 series for another on-going blog series I’m working on. [In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu] ASP.NET ASP.NET Code Samples Collection: J.D. Meier has a great post that provides a detailed round-up of ASP.NET code samples and tutorials from a wide variety of sources. Lots of useful pointers. Slash your ASP.NET com...
-
Slide Deck and Code Samples from Pittsburgh Code Camp 2010.2
Oct 1016Attached is the slide deck and code samples from my ASP MVC talk at today's Pittsburgh Code Camp. For my demos highlighting the Telerik ASP MVC Extensions, you can find the source code here:http://www.telerik.com/products/aspnet-mvc.aspx. Thanks to those who attended my session!! < JVP > ...
-
Extending ASP MVC with Ajax, jQuery and Json sample code from Philly Code Camp 2010.2
Oct 1009Thank you to those who attended my session. Attached is the code samples and slide deck used in the presentation. If you have any questions concerning the presentation and/or how to apply the code, please do not hessitate to contact me at Twitter: @johnvpetersen. ...
-
Slide deck and code from 9/11 Central Penn Code Camp Presentation
Sep 1013Thanks to all who attended my sessions at this past Saturday's Central Penn Code Camp. The attached zip contains the sample code and slide deck. As always, if you have any questions concerning this presentation and/or how to applies the concepts therein, please do not hesitate to contact me. John ...
-
ASP.NET MVC 3 Preview 1 Released
Jul 1027The title says it all, so go get your copy today and check out all the new features. You can download it here. New features include: Razor View Engine Dynamic View and ViewModel Properties Add View Dialog Box Supports Multiple View Engines Service Location and Dependency Injection Support Global Filters New JsonValueProviderFactory Class Support for [...]...
-
Powerpoint and Code Demos from my MVCConf Presentation
Jul 1023Yesterday, I was fortunate to present at the first MVCConf. My topic was on how to extend your ASP MVC Applications with jQuery, Ajax and jSON. The attached zip contains my PowerPoint slide deck and example code. I hope MVCConf becomes a regular event. Major kudos to Eric Hexter and company for a job well done! ...
- 1
- 2

