Most recent comments
Stiven 12/20/2013 11:13 AM
In response to Request Validation In ASP.NET Web Pages
Satyabrata Mohapatra 12/20/2013 9:44 AM
In response to Request Validation In ASP.NET Web Pages
Thank you sir for the post. Learned a lot....
Cogni 12/19/2013 7:54 AM
In response to Windows Authentication With ASP.NET Web Pages
I am relatively new to this, like the idea of simple membership, I read that simple membership is by...
Ric 12/17/2013 5:54 PM
In response to C# Regular Expressions Cheat Sheet
The \un example should be "\u0020", rather than "\u0200"--that would give you Ȁ instead....
cogni 12/16/2013 6:07 AM
In response to The WebGrid - Efficient Paging And Sorting With SQL CE 4.0
is there an equivalent for OFFSET & FETCH in MySQL?...
tiara 12/12/2013 10:54 PM
Michael Hidalgo 12/12/2013 1:23 AM
In response to Simple File Download Protection with ASP.NET
You are not properly Sanitizing the request parameter context.Request.QueryString["File"];. A bad in...
Alan 12/6/2013 8:52 PM
In response to WebMatrix and jQuery Forms Part 2 - Editing Data
Great article, I followed most everything but the following line $('#' + What does this do? I do +...
satyabrata 12/6/2013 3:38 PM
In response to Check Duplicate User Names In ASP.NET Web Pages Sites
Nice post.very helpful. ...
Quintus 12/6/2013 3:07 PM
In response to Implementing Customers Also Bought In ASP.NET Web Pages
Mike, several of the images in this post are not being found and returning 404...
Most Popular - Last 7 Days
Most Popular - Last 30 Days
Most Popular - All Time
Mikesdotnetting - Saturday, July 14, 2012 8:24 PM
There are a huge number of articles and blog posts on persisting data between user requests in ASP.NET. However, the ASP.NET Web Pages framework introduces a couple of additional mechanisms so this article explores those, as well as reviewing some of the standard approaches already available to Web Pages developers from other parts of the ASP.NET framework.
Mikesdotnetting - Thursday, June 14, 2012 12:47 PM
The new release of ASP.NET Web Pages - version 2 - doesn't include many obvious changes, but the most significant one is an enhanced Validation system. A couple of new classes have been introduced, and Web Pages validation now works with the MVC Unobtrusive jQuery validation library. This article explores the new validation system and sees what it brings to the party.
Mikesdotnetting - Saturday, June 9, 2012 11:40 AM
Mikesdotnetting - Sunday, June 3, 2012 10:30 AM
A frequent requirement is to display data hierarchically, such as products by category. This article shows how to use LINQ to Objects and the jQuery Accordion to display the result of a database query in such a fashion within Razor Web Pages.
Mikesdotnetting - Saturday, May 26, 2012 11:21 PM
The recommended practice for transferring data to and from views in ASP.NET MVC is to use a View Model. But what is a View Model? How to you design one and how should they be used? This article attempts to provide answers to those questions.
Mikesdotnetting - Wednesday, February 1, 2012 9:52 PM
The built-in Web Pages routing system offers a fair degree of freedom in terms of how friendly URLs can be constructed and managed. However, the major limitation with the standard routing mechanism is that it relies on matching segments of the URL to files on disk. ASP.NET MVC and Web Forms enjoy a much more flexible routing system. This article looks at a Package that brings full ASP.NET routing control to Web Pages and examines how to use it.
Mikesdotnetting - Monday, January 2, 2012 6:31 PM
Web site skinning is a concept where by a web application user can personalise their experience, by choosing from a selection of prepared themes or skins. Each theme or skin might offer a different design, or content, or both. ASP.NET Web Forms has included a comprehensive Themes framework since version 2.0. WebMatrix developers can find Themes management functionality in the ASP.NET Web Helpers Library package available through the Package Manager. This article looks at how the Themes helper works.
Mikesdotnetting - Friday, December 30, 2011 3:25 PM
Since I published an item covering Code First development with Entity Framework and WebMatrix, I have had a few requests to provide a guide to working with the Entity Framework from a database first point of view. This post answers those requests and provides a step by step guide to getting up and running with a WebMatrix web site based on the Northwind sample database that comes with SQL Server CE 4.0.
Mikesdotnetting - Sunday, December 25, 2011 11:27 AM
A nugget that has remained partially hidden from view within the Web Pages framework is the HtmlHelper class. Parts of this class peek out in the template sites provided in WebMatrix where validation is performed and related messages displayed, but a vast range of methods designed for rendering form inputs are often overlooked in tutorials, blog articles and books (mine included). This article provides an overview of Web Pages HTML Helpers, and digs into one or two in more detail.
Mikesdotnetting - Monday, October 10, 2011 9:35 PM
Globalization is the process of preparing your site so that it is accessible to as wide an audience as possible. This is largely achieved by presenting content in the native language of the visitor. This article explores how you can approach this task within the ASP.NET Web Pages framework.
Mikesdotnetting - Monday, September 5, 2011 5:27 PM
The existing data access story for WebMatrix is the Database Helper. Microsoft's recommended data access technology going forward is the Entity Framework (EF). This article explores how to use the Code First capability offered by EF within an ASP.NET Web Pages application.
Mikesdotnetting - Sunday, August 28, 2011 10:46 PM
A problem inherent in the existing version of the WebGrid is that it is not very efficient when it comes to paging data out of the box. If you have 10,000 rows of data, and you want to display 10 rows per page, all 10,000 rows are retrieved from the database for each page. The grid works out how to only show the current 10, and wastes the other 9,990 rows. That's a fair sized overhead on each page. Ideally, you should only retrieve the data you need for each page. This article examines how you can do that with the existing WebGrid and a SQL CE database, while still maintaining sorting capabilities.
Mikesdotnetting - Saturday, August 27, 2011 4:57 PM
A number of people have run into problems when trying to combine a search or filter form, and a WebGrid. The main issue that arises is when paging or sorting the search result or a filtered subset of it. Here, I look at the cause of the problem and what you can do about it.
Mikesdotnetting - Tuesday, August 23, 2011 9:13 PM
This snippet is one in a series showing how to use jQuery to enhance the behaviour of a Web Pages WebGrid. This example shows how to maintain scroll position on the page when paging or sorting the WebGrid.
Mikesdotnetting - Tuesday, August 23, 2011 11:23 AM
This snippet is one in a series showing how to use jQuery to enhance the behaviour of a Web Pages WebGrid. This example shows how to make an entire row clickable so that the user is taken to another page that displays details of the selected row.