Most recent comments
Ryan 10/4/2014 3:47 AM
In response to How to get your forum question answered - avoid thread-jacking
Great article and funny comments. A couple of days ago I was on AST.NET in the Getting Started forum...
Bob Rodes 9/30/2014 1:56 PM
In response to Date Formatting in C#
The short date option (d) doesn't include leading zeros in month and day, so it would actually To to...
Cameron 9/29/2014 12:11 AM
In response to Adding A New Field
I got the following error when running the migrations command. PM> enable-migrations context type...
Rhonda 9/23/2014 10:46 PM
In response to Adding A Model
curious - is the explicit namespace Models required? or just a matter of preference? I usually get...
Prakash 9/20/2014 8:42 PM
In response to Adding a New Row In The Razor WebGrid
This is very good article. Please send me more articles like this....
Drisan James 9/20/2014 6:13 AM
In response to WebMatrix Opens Wrong Version Of Visual Studio
Thank you so much!...
sunita 9/17/2014 7:35 PM
In response to Windows Authentication With ASP.NET Web Pages
Thanks Mike, Article is very simple and helpful....
Michael 9/14/2014 2:03 PM
In response to Optimising ASP.NET Web Pages Sites - Bundling And Minification
Hi Mike, Great article that's exactly what is missing in the asp.net community content. The page in...
Herman Valente 9/5/2014 9:11 PM
In response to iTextSharp - Links and Bookmarks
I've created several PDF documents using iTextsharp containg ONLY internal links (anchors). However,...
Phil Boyd 9/5/2014 8:04 PM
In response to Scheduled Tasks In ASP.NET With Quartz.Net
and BundleConfig are 2 classes created within the basic MVC application template. Look for them in...
Most Popular - Last 7 Days
Most Popular - Last 30 Days
Most Popular - All Time
Mikesdotnetting - Tuesday, January 22, 2013 2:44 PM
Recursive methods are those that call themselves, and they can be applied to solve a number of common practical problems, particularly ones that involve the management and display of hierarchical data. This article explores some of those scenarios and shows how to design recursive helpers and functions that can be used in Web Pages sites.
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.