12 items found in the General Category

Reading Text-based Files In ASP.NET

17 July 2015 13:43

C# General ASP.NET MVC ASP.NET Web Forms

Every time I need to work with the contents of text-based files in an ASP.NET application I invariably start off thinking about using the various static methods on the System.IO.File class to extract the text and then some string manipulation or Regex to parse the content into some kind of structure. And, just in time, I remember the TextFieldParser class that hides itself away in the Microsoft.VisualBasic assembly. The purpose of this article is to introduce this component to a wider audience, but also to serve me as an aide-mémoire in terms of the basic usage, which I always have to look up.

Click to read more about Reading Text-based Files In ASP.NET ...

Viewed 4426 times

0 Comments for this item

Using the HtmlAgilityPack to parse HTML in ASP.NET

30 April 2015 13:26

HTML General HTML5

Hardly a week goes by without someone asking a question in the ASP.NET forums about parsing HTML for one purpose or another. Mostly, the questions are couched in terms of 'finding values' or similar, prompting responses from the community that recommend one regular expression pattern or another, treating HTML as a string of text with no structure or rules. In fact, HTML is a structured document format with a set of very clearly defined rules, which means that it can easily be parsed given the right tool. My favourite tool for parsing HTML is the HtmlAgilityPack.

Click to read more about Using the HtmlAgilityPack to parse HTML in ASP.NET ...

Viewed 51777 times

8 Comments for this item

Scheduled Tasks In ASP.NET With Quartz.Net

07 August 2014 08:34

General ASP.NET MVC ASP.NET Web Forms ASP.NET Web Pages

A perennial question on the ASP.NET forums concerns how to schedule regular tasks as part of a web application. Typically, the requirement is to send emails once every 24 hours at a particular time each day, but it could actually be anything from tweeting on a schedule to performing maintenance tasks. Equally typically, half a dozen members on the forum dive in with recommendations to install Windows Services or schedule batch files with the Task Scheduler - regardless of the fact that most web site owners are not afforded such privileges as part of their shared hosting plan.

Click to read more about Scheduled Tasks In ASP.NET With Quartz.Net ...

Viewed 134435 times

66 Comments for this item

Book Review - CLR Via C# Third Edition

12 September 2010 08:14

C# General Book Review

I've had a review copy of Jeffrey Richter's CLR via C#, Third Edition for some months, and it has taken until now to get round to publishing my thoughts on the book. It's not my fault. I blame the book. It made me forget why I was given a copy in the first place. Let me explain...

Click to read more about Book Review - CLR Via C# Third Edition ...

Viewed 9647 times

1 Comment for this item

ASP.NET MVC v. Web Forms Debate - My View

22 February 2010 21:53

General ASP.NET 3.5 ASP.NET MVC

It seems that the whole world (and Margate) is having its say on which is better - MVC or Web Forms. Scott Guthrie posted his views on technical debates in general, and then contributed his thoughts on MVC v. Web Forms. Ian Cooper has an interesting contribution to make to the debate too. Rob Conery (formerly of Microsoft) posted probably the most linked to opinion on the matter. (There - I've just added another link...) A lot of other blog posts around scream that MVC is better because its better. One even tries to posit the notion that some kind of score card approach can help you decide.

Click to read more about ASP.NET MVC v. Web Forms Debate - My View ...

Viewed 61520 times

12 Comments for this item

Using gacutil.exe and Reflection to generate the Exceptions Cheat Sheet

10 February 2010 07:28

C# Visual Studio General ASP.NET 3.5

The most recent addition to my Cheat Sheets features details of all the Exceptions that can be found in the most commonly used assemblies within ASP.NET development. Compiling this information was an interesting challenge. I could have simply copy-pasted from MSDN, but that would have been extremely tedious. Instead, I ended up with a blend of Linq to XML, Reflection, a dash of Regex and the Global Assembly Cache Tool - gacutil.exe. Here's the full story.

Click to read more about Using gacutil.exe and Reflection to generate the Exceptions Cheat Sheet ...

Viewed 9385 times

3 Comments for this item

Cheat Sheet - .NET Framework Exceptions

07 February 2010 17:19

C# General ASP.NET 3.5

Here's a list of Exceptions that can be found in the assemblies which are most commonly used in ASP.NET development.  Ideally, you should be as specific as possible when catching or throwing Exceptions. The more specific you are, the less work the CLR has to do in locating the appropriate catch block, and the more informative your error messages are, which should help speed up identifying the source of any problems.

Click to read more about Cheat Sheet - .NET Framework Exceptions ...

Viewed 43530 times

8 Comments for this item

Please Help - URGENT!!!

12 December 2009 10:31

General

Some one posted a comment to one of my articles the other day.  It appears that they had had little success in adapting some code I had posted in the article to their application. They included this phrase in their comment: "Please advice me, it is  urgent".

Click to read more about Please Help - URGENT!!! ...

Viewed 13682 times

18 Comments for this item

What ASP.NET Can And Cannot Do

23 November 2009 22:26

Javascript General ASP.NET 3.5

If you are new to web development and choose ASP.NET Web Forms as your starting point, you may be forgiven for not understanding how ASP.NET works, and what its role is. This article covers the basics which should help you discover your limits.

Click to read more about What ASP.NET Can And Cannot Do ...

Viewed 54794 times

4 Comments for this item

Book Review - ASP.NET 3.5 Application Architecture and Design

11 October 2009 18:36

General ASP.NET 3.5 Book Review

Back in the day, when I began to get interested in ASP.NET application architecture and design, I spent hours hunting for a book that would explain all I needed to know.  I wanted one that focused on ASP.NET, with its special demands, rather than a general .NET development book.  I wanted a book that would explain what layers and tiers were, and how I should separate code out to make it more scalable and reusable.  I wanted a book that would explain how I could take my skills to the next level. I couldn't find one.  There was a big gap in the market.  Vivek Thakur has attempted to fill this gap, with this apty named title: ASP.NET 3.5 Application Architecture and Design.

Click to read more about Book Review - ASP.NET 3.5 Application Architecture and Design ...

Viewed 36679 times

3 Comments for this item

ASP.NET MVC - Battle of the Books

27 July 2009 13:25

General ASP.NET MVC Book Review

There's always a splurge of new books that come out around the RTM of any new ASP.NET related technology. Authors all over the place are burning the midnight oil, cursing the changes from one CTP to the next, through to Betas and hoping against hope that the Release Candidates and final RTMs aren't stuffed with "breaking changes" which inevitably mean total rewrites of whole sections or chapters in their draft. And then the race between the publishers is on, as each tries to get their offer to market before the others. Here, I look at three of the titles that were published around the time that ASP.NET MVC was launched, and give my judgement on how they fare in covering not only the core Framework but the key features that ASP.NET MVC is designed to offer:

Click to read more about ASP.NET MVC - Battle of the Books ...

Viewed 57938 times

10 Comments for this item

I'm a Microsoft MVP!

05 April 2008 10:26

General

I was delighted to find out on April Fool's Day (?) that I have been awarded the 2008 Microsoft® MVP Award.

Click to read more about I'm a Microsoft MVP! ...

Viewed 5483 times

0 Comments for this item

Recent Comments

Sivu 19/10/2016 08:21
In response to Entity Framework Core TrackGraph For Disconnected Data
Oh that's very very very nice ! Thanks for the write up Mike, much appreciated for the taking the to...

Mark 12/10/2016 16:42
In response to ASP.NET Web Pages vNext or Razor Pages
Although "Web Pages" was removed from the roadmap, has it just been renamed to "Razor Pages"?...

Satyabrata 12/10/2016 09:20
In response to Entity Framework Core TrackGraph For Disconnected Data
Nice article. Please write more articles featuring ASP.Net web pages. Thank you...

Julian 26/09/2016 14:27
In response to Loading ASP.NET Core MVC Views From A Database Or Other Location
Fantastic, many thanks Mike! Had got half way down this road before finding your article - saved...

Abolfazl Roshanzamir 14/09/2016 05:36
In response to Loading ASP.NET Core MVC Views From A Database Or Other Location
Nice article. Thanke you so much ....

cyrus 02/09/2016 15:12
In response to ASP.NET Web Pages vNext or Razor Pages
I've got some news. As Damian stated in this link: https://github.com/aspnet/Mvc/issues/5208 “We...

Simon 01/09/2016 08:00
In response to Loading ASP.NET Core MVC Views From A Database Or Other Location
Thanks Mike, nice post and exactly what I was looking for. Like you said, I think I'll opt to the...

dave 20/08/2016 14:57
In response to ASP.NET Web Pages vNext or Razor Pages
Do SimplemembershipProvider in viewpages is supported?...

Steven 18/08/2016 04:40
In response to Entity Framework Code First and Stored Procedures
Can you provide the directives (using statements) you're using for EF7 example?...

yousaid 17/08/2016 22:08
In response to ASP.NET Web Pages vNext or Razor Pages
Increasingly, learning a Microsoft tool is no longer worth the return on investment. Too many tools...