Items By Type: Article
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
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
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
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
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
Dependency Injection and Inversion of Control with ASP.NET MVC
Mikesdotnetting
-
10 October 2009 22:46
As you delve more into ASP.NET MVC you start to come across a whole new way of doing things that Web Forms development didn't really expose you to. Inversion of Control (IoC) and Dependency Injection (DI) are two phrases that crop up a lot in the MVC space. So what are they all about? And should you care? More...
Filed under: LINQ ASP.NET MVC Entity Framework as Article
Parameterized IN clauses with ADO.NET and LINQ
Mikesdotnetting
-
28 September 2009 21:53
Since my article on using parameters for Preventing SQL Injection In ASP.NET, I have had a few emails asking how to do the same with an IN clause expression. In this entry, I explore a couple of ways to do this. More...
Filed under: C# ADO.NET LINQ ASP.NET 3.5 as Article
Microsoft Chart Controls to PDF with iTextSharp and ASP.NET MVC
Mikesdotnetting
-
15 September 2009 22:16
If you are developing a business application using ASP.NET MVC, and need to produce some kind of dashboard-style reporting, the Chart Controls from Microsoft are a good place to start. Having a summary in some form of document, say a PDF is also a common requirement. This article introduces you to satisfying both needs. More...
Filed under: iTextSharp ASP.NET MVC as Article
jQuery Star Rating with ASP.NET MVC
Mikesdotnetting
-
08 September 2009 13:40
There are a number of jQuery star rating plugins to choose from. All have their pros and cons. For this site, I decided to implement the one from FyneWorks because it allows for split stars. Here's how I did it. More...
Filed under: AJAX Javascript jQuery ASP.NET MVC as Article
Preventing SQL Injection in ASP.NET
Mikesdotnetting
-
19 August 2009 07:28
I, and many other contributors to the forums at www.asp.net find examples of code posted on a daily basis that are vulnerable to SQL Injection attacks. We continue to exhort beginners (and some more experienced programmers) to code against them. This article examines just how serious a flaw vulnerable coding can be, and what you should do about it. More...
Filed under: SQL ADO.NET ASP.NET 3.5 as Article

