32 items found in the C# Category
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
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
Upload and Crop Images with jQuery, JCrop and ASP.NET
Mikesdotnetting
-
05 January 2009 13:54
I got given jQuery In Action for Christmas. By nature, I'm kind of a late adopter, and I'm already regretting this fact. jQuery has been around for some time, and I wished I had looked at it sooner. It's a fantastic library that really simplifies Javascript development, and is already attracting a goodly number of plug-ins. JCrop is one such, and while it hasn't yet reached version 1.0, it is remarkably easy to use as a web based image cropper. Here's how to put jQuery, JCrop and a FileUpload control together to allow users to upload images and crop them. More...
Filed under: C# AJAX Javascript ASP.NET 3.5 jQuery as Article
Delegates, Anonymous Methods and Lambda Expressions in C#
Mikesdotnetting
-
07 December 2008 19:33
Delegates in C# cause a fair amount of confusion, but with the introduction of LINQ to SQL and the profilic use of the Lambda Expression operator (=>) that it has foisted on an unprepared batch of beginners, an understanding of how these two items are related, together with Anonymous Methods becomes more important. Most definitions of Delegates that you find start off with comparing them to "function pointers in C or C++", which is great if you ever worked with those languages and understood them, but not helpful to new programmers. Here's my attempt at simplifying the various concepts. More...
Filed under: C# ASP.NET 3.5 as Article
iTextSharp - Page Layout with Columns
Mikesdotnetting
-
24 November 2008 07:41
I have now covered many of the basics involved in generating PDF files from ASP.NET using iTextSharp in the series of articles listed below. This article will look at additional ways to provide formatting to documents through the use of columns. More...
Filed under: C# ASP.NET 3.5 iTextSharp as Article
iTextSharp - Drawing shapes and Graphics
Mikesdotnetting
-
17 November 2008 12:30
The previous iTextSharp article looked at bringing images into a PDF file and working with them. Sometimes, however, you may want to draw shapes and lines within the PDF and not rely on images. iTextSharp includes a lot of functionality that covers simple drawing to quite complex shapes. This article gets you started. Previous articles are listed below: More...
Filed under: C# ASP.NET 3.5 iTextSharp as Article
iTextSharp - Working with images
Mikesdotnetting
-
07 November 2008 23:00
The seventh article in my iTextSharp series looks at working with images. This article builds on the previous six which are listed below. More...
Filed under: C# ASP.NET 3.5 iTextSharp as Article
iTextSharp - Introducing Tables
Mikesdotnetting
-
03 November 2008 07:34
Tables will probably be one of the most used elements in PDFs generated from ASP.NET applications to provide the structure for documents such as orders and invoices. This overview is not an exhaustive examination of tables, but provides an introduction to working with them through iTextSharp, and builds on the previous articles in this iTextSharp series: More...
Filed under: C# ASP.NET 3.5 iTextSharp as Article
Book Review - Beginning ASP.NET 3.5 in C# and VB
Mikesdotnetting
-
26 October 2008 11:01
Over the years, I have picked up and read many Beginners books that attempt to get someone started on the road to building web sites with ASP.NET. Nearly all of them assumed that their readers know more than they might. Some of them seem to assume that all readers are upgrading from one version of the .NET framework to another, while others assume that you already know about core web development technologies such as HTML, CSS, C# or VB etc. I well remember being frustrated with my first book, in that it didn't give me enough basic information to get started with web development, let alone web development with ASP.NET. Now, up steps Imar Spaanjaars, with his effort: Beginning ASP.NET 3.5 in C# and VB (Wiley/Wrox, ISBN: 978-0-470-18759-3). More...
Filed under: C# VB.Net ASP.NET 3.5 Book Review as General
iTextSharp - Links and Bookmarks
Mikesdotnetting
-
23 October 2008 21:51
Interactivity within PDF documents is enabled though Anchors (links) and Bookmarks. Following earlier articles in my iTextSharp series, this particular contribution will introduce the basics of linking and bookmarking PDF documents created via iTextSharp. You may want to review earlier articles in this series, if you haven't already done so. More...
Filed under: C# ASP.NET 3.5 iTextSharp as Article
Lists with iTextSharp
Mikesdotnetting
-
20 October 2008 08:32
Having already looked at how to create a PDF document with iTextSharp, set fonts and their styles and add text, this article turns its attention to lists. Ordered and unordered lists will be covered. You may want to review earlier articles in this series, if you haven't already done so. More...
Filed under: C# ASP.NET 3.5 iTextSharp as Article
iTextSharp - Adding Text with Chunks, Phrases and Paragraphs
Mikesdotnetting
-
18 October 2008 22:32
This is the third in a series of articles that looks at using the open source component, iTextSharp from within ASP.NET to generate PDFs. Just as HTML and ASP.NET provide containers for varying ampounts of textual content, iTextSharp offers the Chunk, Phrase and Paragraph classes. Before going on, if you would like to read earlier articles, they are: More...
Filed under: C# ASP.NET 3.5 iTextSharp as Article
iTextSharp - Working with Fonts
Mikesdotnetting
-
15 October 2008 22:07
Following on from my introduction to iTextSharp, the free PDF utility that lets you work with PDF files within ASP.NET, this article looks at working with fonts in PDF documents that you create. If you haven't read the first article in this series, I recommend that you do so now. More...
Filed under: C# ASP.NET 3.5 iTextSharp as Article
Using an ArrayList to cheat at Scrabble
Mikesdotnetting
-
21 August 2007 14:39
My dad had a Facebook account. He was addicted to it. Or rather, he was addicted to the Scrabulous application, which is a Flash-based online version of the popular word game Scrabble. Trouble is, he kept beating me, and I had to do something rather drastic to corrrect that. So I thought it can't be too difficult to build a C# ASP.NET app that would give me some... err... assistance. Scrabulous offer the TWL06 (current official Tournament Word List) as a downloadable text file, so armed with a complete list of all 186,000+ legal Scrabble words, I sat down and started to think about how I could use it. More...
Filed under: C# ASP.NET 2.0 as Article

