Most Popular - Last 7 Days
Most Popular - Last 30 Days
Most Popular - All Time
Latest Entries
ASP.NET MVC v. Web Forms Debate - My View
Mikesdotnetting
-
22 February 2010 21:53
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. More...
Filed under: General ASP.NET 3.5 ASP.NET MVC as General
ASP.NET MVC is not all about Linq to SQL
Mikesdotnetting
-
21 February 2010 08:21
Pretty much every sample application that illustrates ASP.NET MVC uses Linq To SQL or the Entity Framework as the data access method. I've seen a number of questions posted to the forums at www.asp.net asking if there are any alternatives, and indeed there are. This article will look at using plain ADO.NET within a data access layer to provide dynamic content to a typical small CRUD application. More...
Filed under: ADO.NET ASP.NET MVC as Article
Using gacutil.exe and Reflection to generate the Exceptions Cheat Sheet
Mikesdotnetting
-
10 February 2010 07:28
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. More...
Filed under: C# Visual Studio General ASP.NET 3.5 as Article
Cheat Sheet - .NET Framework Exceptions
Mikesdotnetting
-
07 February 2010 17:19
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. More...
Filed under: C# General ASP.NET 3.5 as Cheat Sheet
Simple task Scheduling using Global.asax
Mikesdotnetting
-
30 January 2010 22:22
A frequent requirement for ASP.NET developers is to schedule tasks at regular intervals. This can include site maintenance tasks, like cleaning up old files, emailing newsletters on a schedule etc. This article examines one easy option for managing tasks like these without having to configure external tools, and discusses a couple of alternatives. More...
Filed under: ASP.NET 3.5 as Article
Get The Drop On ASP.NET MVC DropDownLists
Mikesdotnetting
-
07 January 2010 21:27
DropDownLists in ASP.NET MVC seem to cause a fair amount of confusion to developers fresh from Web Forms World. This article looks to provide you with all (well, most) of what you need to know to get your DropDownLists working in ASP.NET MVC. More...
Filed under: ASP.NET MVC as Article
Translating My Articles? Let Me Know And I Will Link To You
Mikesdotnetting
-
28 December 2009 08:42
I put into practice what I preached about preventing image leeching. Within the first 48 hours I got literally hundreds of email notifications from the logger I installed giving me URLs where I can find copies of my articles pasted word for word, including links to my images. I was also able to identify a number of sites owned by people who had taken the trouble to translate my articles into other languages (but were still leeching my images). More...
Filed under: General as General
ASP.NET MVC - Prevent Image Leeching with a Custom RouteHandler
Mikesdotnetting
-
25 December 2009 22:31
Have you ever noticed an unusually high number of requests in your web server log files for image files? It may well be that someone is linking to your images from their own site, and basically stealing your bandwidth. Here's how to implement a custom RouteHandler within an ASP.NET MVC application to prevent people leeching your images. More...
Filed under: ASP.NET MVC as Article
ASP.NET MVC Uploading and Downloading Files
Mikesdotnetting
-
21 December 2009 22:29
If you come to ASP.NET MVC from a purely ASP.NET Web Forms background, one of the first things you are likely to notice is that all those nice easy Server Controls have disappeared. One of those is the FileUpload, and its absence seems to cause a few problems. This article looks at how to upload files to the server in an MVC world, and how to get them back from the server to the user again. More...
Filed under: ASP.NET MVC as Article
Please Help - URGENT!!!
Mikesdotnetting
-
12 December 2009 10:31
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". More...
Filed under: General as General
Storing Files and Images in Access with ASP.NET
Mikesdotnetting
-
06 December 2009 19:46
Should you store files and images in the database or the filesystem in an ASP.NET application? With SQL Server this is a dilemma, with both approaches having their pros and cons. When it comes to Access, the decision is much easier to make. Because an Access database is restricted to 2Gb, it makes more sense to store files in the file system. However, sometimes, you may not have the choice. If you have to use the database, here's how. More...
Filed under: MS Access ASP.NET 3.5 as Article
Simple File Download Protection with ASP.NET
Mikesdotnetting
-
25 November 2009 09:09
When it comes to protecting files from unauthorised downloading, the vast majority of articles offer solutions that involve mapping common file types (.pdf, .txt, .doc etc) to ASP.NET within Internet Information Services. However, often in a shared hosting environment, you don't have access to IIS and the hosting company will not agree to providing such mappings for you, so what do you do? More...
Filed under: ASP.NET 3.5 as Article
What ASP.NET Can And Cannot Do
Mikesdotnetting
-
23 November 2009 22:26
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. More...
Filed under: Javascript General ASP.NET 3.5 as Article
Book Review - Professional Enterprise .NET
Mikesdotnetting
-
28 October 2009 15:49
I reviewed an ASP.NET Architecture and Design book recently. It was OK. I felt it was a bit thin, and didn't cover topics beyond beginner level. Then I got sent a review copy of another book: Professional Enterprise .NET. Having read it, this is the book that the previous book should want to be when it grows up. More...
Filed under: ASP.NET 3.5 ASP.NET MVC Book Review as General
Displaying Google Analytics Data in ASP.NET
Mikesdotnetting
-
26 October 2009 22:30
If you have a Google Analytics account, you can use the Data Export API provided by Google to access your visitor stats, and retrieve them for use elsewhere. Here's how to display some stats in ASP.NET. More...
Filed under: ASP.NET 3.5 ASP.NET MVC as Article

