Most recent comments
Robert 7/15/2014 10:18 AM
In response to Using ASP.NET Identity with Razor Web Pages
Mike, Is there a security benefit over the Simple Membership Provider? Thanks...
zircon747 7/14/2014 5:05 AM
In response to C# Regular Expressions Cheat Sheet
Manoj Patil 7/10/2014 11:28 PM
In response to Sessions and Shopping Carts
Thanks. Really Helpful...
Scott 7/10/2014 6:54 PM
In response to Lists with iTextSharp
Thanks so much for these guides. Using them and other posts I've dug up, I've managed to produce I I...
Steve 7/8/2014 10:28 PM
In response to Migrating Classic ASP To ASP.NET Razor Web Pages Part Three- Include Files And Reusable Code
I need to pass variables from a "master" page to the header/footer, which I am including using "This...
gjuro 7/6/2014 10:03 PM
In response to Adding A Controller
sentence Run the application and browse to local_host:XXX_HelloWorld_Welcome_Mike_3 is missing the...
Ed 7/6/2014 3:36 AM
In response to WebMatrix - URLs, UrlData and Routing for SEO
Hi mike, On that last comment, please disregard the 2nd part...da Googles gave me dis: Variable...
Ed 7/6/2014 3:26 AM
In response to WebMatrix - URLs, UrlData and Routing for SEO
This is one of those things that make WebPages "golden" to me, and your article, though I'm only was...
Nuri 7/4/2014 4:01 AM
In response to More Flexible Routing For ASP.NET Web Pages
Mike, does this article and related WebPageRouteHandler.cs still apply to Web Pages 3.0?...
kishor 7/2/2014 12:51 PM
In response to Highlighting Keywords Found In Search Results
it will give an error if I give a single ( or ) as a keyword...
Most Popular - Last 7 Days
Most Popular - Last 30 Days
Most Popular - All Time
Mikesdotnetting - Monday, January 7, 2013 8:38 PM
This article looks at how you can provide your users with the ability to export the contents of a Razor Web Pages WebGrid to an Excel file using OleDb.
Mikesdotnetting - Thursday, December 27, 2012 8:17 PM
SignalR is a library that simplifies the creation and management of persistent connections between web servers and clients. This facilitates the development of applications that can display updates to data held on the server in real-time. Chat applications are the most obvious beneficiaries of this technology, but line-of-business applications that need to report availability to users can benefit too. Here, I look at extending the canonical SignalR chat example to incorporate a "who's typing" feature, and I also extend my previous Knockout example to use SignalR.
Mikesdotnetting - Thursday, December 20, 2012 1:31 PM
This article looks at how you can provide your users with the ability to export the contents of a Razor Web Pages WebGrid to a PDF file using the popular free PDF library, iTextSharp.
Mikesdotnetting - Monday, December 17, 2012 8:17 PM
This article looks at how you can provide your users with the ability to export the contents of a Razor Web Pages WebGrid to an Excel file.
Mikesdotnetting - Friday, December 14, 2012 7:24 PM
The Web Pages WebGrid offers sorting capability out of the box. However, it's not always obvious to the user on which column the grid data is being sorted at any one time, nor the direction in which it is being sorted. The convention is to provide arrows in the column header to act as a clear visual cue. This article looks at a three ways in which you can enhance your grids with sorting arrows.
Mikesdotnetting - Tuesday, November 13, 2012 10:37 AM
Unlike the Web Forms GridView control, the Web Pages WebGrid doesn't offer anything by way of inline editing capability. This article looks at one approach to solving that requirement through the addition of a sprinkling of jQuery.
Mikesdotnetting - Tuesday, October 23, 2012 9:27 PM
Every so often, you will want to conditionally render HTML attributes or their values within your Razor Web Pages based on the outcome of some runtime logic. Often, the logic required to manage this can become messy and lead to unnecessary spaghetti code. This article explores a few common scenarios and provides some solutions, as well as introducing a nice new feature that was released as part of Razor v 2.0.
Mikesdotnetting - Thursday, September 27, 2012 1:39 PM
Some people have questioned the security of the ASP.NET SimpleMembershipProvider's storage of passwords. The cause for concern seems to stem from the fact that the PasswordSalt field in the standard membership table is unused by the SimpleMembershipProvider, whereas it is used by, for example, SqlMembershipProvider. So what is the PasswordSalt field, and why should the fact that it isn't used raise an eyebrow?
Mikesdotnetting - Thursday, September 20, 2012 2:56 PM
It's an odd thing: WebMatrix 2 is lauded for its support of HTML5, but the Web Pages framework doesn't include any helpers for the new HTML5 form input types such as email or color. It's fair to say that support among browsers for the new inputs is patchy at the moment, but with barely a week flying past without a new version of one or other browser being released, it won't take long for that to change. So in the meantime, if you prefer to use helpers, you have to write your own for rendering HTML5 forms.
Mikesdotnetting - Tuesday, September 18, 2012 8:08 AM
Since the introduction of the Web Pages framework, ASP.NET has been making use of the dynamic type introduced in C# 4.0. Along with that comes some new error messages which at first glance don't make a lot of sense - mainly because they are unexpected. I have already looked at how dynamics do not support extension methods, and a recent question in the ASP.NET forums illustrated another way in which the dynamic type can catch you out.
Mikesdotnetting - Saturday, September 15, 2012 5:05 PM
Mikesdotnetting - Saturday, September 8, 2012 9:56 AM
I have looked at cascading dropdown lists with WebMatrix previously, but the approach I featured demonstrated the use of jQuery Templates. At the time, the jQuery Templates project looked promising, but since then, the jQuery team have decided not to take them beyond beta stage. So the reason for this article is to illustrate a more "traditional" jQuery approach to managing cascading dropdown lists when developing ASP.NET Web Pages using WebMatrix.
Mikesdotnetting - Friday, August 31, 2012 2:33 PM
Version 2 of the Web Pages framework includes a new validation framework. Included are a number of specific validators that cover common scenarios such as validating for presence, data type or range. It may be however, that you want to create your own custom validator to test for something that isn't covered by the existing validators, or to combine multiple tests in one composite validator. Fortunately, the Web Pages team have made the validation system extensible so that you can create your own validators.
Mikesdotnetting - Tuesday, August 7, 2012 9:07 PM
The imminent release of Visual Studio (2012) will include jQuery Mobile as part of the ASP.NET MVC 4 Mobile application template, and some enhancements to the framework to make developing for mobile devices much easier. So it was a well-timed invitation that I received from Packt Publishing to review their latest jQuery title: jQuery Mobile Web Development Essentials.
Mikesdotnetting - Sunday, July 22, 2012 8:46 PM
If you want to build AJAX powered rich client interfaces with ASP.NET Web Pages, you will work with JSON - a lot. You might also be attracted to the Entity Framework for your data access technology. There are some special considerations to take account of when serialising Entity Framework objects to JSON for use in Web Pages applications. This article explores some of the issues you will encounter through the example of a simple To Do list manager.