Archive for ASP.NET

Dictionaries of HTML Codes

February 11, 2009 | 0 Comments

I wrote this class to help me do some screen scraping programs. It has two Dictionary objects. One contains the HTML codes and their text equivalents and the other contains the numeric HTML codes and their text equivalents.

Filed Under: ASP.NET, WinForms

Installing the AJAX Controls Toolkit 3.5

February 5, 2009 | 2 Comments

The AJAX Controls Toolkit is an open source toolkit developed by Microsoft and the ASP.NET community. The latest version is for .NET 3.5 and it contains 38 client side components used to create Rich Internet Applications.

Filed Under: ASP.NET, Code Editors

2 or More Domain Names Linked to the Same Folder

February 1, 2009 | 2 Comments

Most if not all web hosting services allow users to link two or more domain names to the same account to save them the cost of a new account for each domain name. With such accounts, opening any of the registered domain names calls the same default page as the other. The solution is to [...]

Filed Under: ASP.NET, Mono XSP 2.0

Reading Excel 2003 and 2007 Files Using OLEDB

January 30, 2009 | 21 Comments

One of the feature of the application I’m working on these days is allowing the user to import data from Excel 2003 and 2007 files. After some research I found out that OLEDB is the only way to read both Excel formats without any problems.

Filed Under: ASP.NET, WinForms

2 Ways to Confirm Deletion in an ASP.NET GridView

January 20, 2009 | 2 Comments

When a GridView is used to display and manipulate data, the Delete button can be displayed next to each record to easily delete a single record, or at the bottom of the GridView to delete multiple records at once. I will show in this post 2 ways to implement the former.

Filed Under: ASP.NET

404 and 403 Error Pages in ASP.NET

January 12, 2009 | 2 Comments

The 2 most common HTTP errors that occur are the 404 and 403. 404 is the File Not Found error and it is generated when the user clicks on a broken link or enters a file or folder name that does not exist in the server. And the 403 Access Denied error is generated when [...]

Filed Under: ASP.NET

Encrypting Sections of the Web.Config File in ASP.NET

December 31, 2008 | 0 Comments

In most cases some sections of the web.config file of an ASP.NET project need to be encrypted before moving project to a production server. The most important section to encrypt is the connectionString, because of the login information it contains. Here is a quick way to encrypt the sections you want, without adding or changing [...]

Filed Under: ASP.NET