.NET Article Published March 21, 2007
If you use one server to develop your applications and another to deploy them, you probably have to change your database connection settings each time you deploy your configuration files. Learn a quick fix for this problem.
.NET Article Published March 12, 2007
In development scenarios where you make multiple changes to the database, consider using transactions and, optionally, nesting transactions.
.NET Article Published March 2, 2007
One of the many new libraries included with .NET 2.0 allows for compression and decompression of files using the gzip file format. Find out how to use it.
ASP & ASP.NET Article Published February 23, 2007
Tracing down errors in web applications and services is no easy task. To make it simpler, learn how to add trace statements to your code. They appear only when tracing is enabled on the web page or the web site.
Visual C# Article Published February 16, 2007
If you use a return statement within a Try/Catch block, there's a behavior you need to be aware of in your code.
ASP & ASP.NET Article Published January 29, 2007
ASP.NET 2.0 enables you to encrypt portions of your configuration file. You can pick a section in your Web.config file to encrypt and then decrypt.
ASP & ASP.NET Article Published January 24, 2007
Learn a nice, easy drop-in solution that helps your web site users log in and out without seeing the "artifacts" that you may have run into during previous implementations of your security code.
ASP & ASP.NET Article Published January 17, 2007
Prior to ASP.NET 2.0, some HTML controls had ASP.NET equivalents and others didn't. ASP.NET 2.0 rectifies this inconsistency with the new FileUpload control.
ASP & ASP.NET Article Published January 12, 2007
The LoginView control added to ASP.NET 2.0 can replace some of the tedious code you've probably got in your ASP.NET 1.x applications.
Web Services Article Published December 22, 2006
A number of "low-tech" approaches for implementing security around your Web services don't involve a lot of extra coding.
.NET Article Published December 18, 2006
The generic collection introduced with .NET 2.0 allows you to create collections of your objects without having to design a new class.
Visual C# Article Published December 11, 2006
The .NET Framework's built-in comparison functions don't handle nulls properly. Learn a couple of functions to take care of this for you.
ASP & ASP.NET Article Published November 30, 2006
How do I implement paging within a Repeater control, you ask? Simple: Roll your own paging solution.
ASP & ASP.NET Article Published November 27, 2006
If you have a Web-based application that doesn't support Web services, you perform "webscraping": a Web-based screen scraping using the HttpWebRequest and HttpWebResponse objects.
ASP & ASP.NET Article Published November 20, 2006
Web servers sometimes produce a Web page even if it has an error. To verify whether the server is actually running and not generating any Web errors, use the HttpWebRequest class to check the content of any ASP.NET page.
.NET Article Published November 13, 2006
The TcpClient class enables you to test whether services such as FTP and SMTP/POP3 mail are running and responding properly.
.NET Article Published November 10, 2006
By using the Ping class, one of the many classes included in the .NET Framework Library, you can create a simple server monitor that ensures your servers are all responding to network traffic.
ASP & ASP.NET Article Published October 25, 2006
Under ASP.NET 1.x, the built-in FormsAuthentication method enabled persistent logins easily, but ASP.NET 2.0 has changed how the forms authentication tickets work.
ASP & ASP.NET Article Published October 20, 2006
The new System.Net.Mail library in ASP.NET 2.0 introduces some useful features, but it also includes bugs. Find out how they come into play when you send mail.
ASP & ASP.NET Article Published October 16, 2006
Sure, you can bind database-related objects to grids and repeaters, but what about binding your own objects to grids and lists? Learn how to build a class that can be bound to a Repeater without involving any databases.
ASP & ASP.NET Article Published October 11, 2006
Although easy to create, user controls are harder to share between projects. As an alternative, you can create a composite control, which is harder to create, but much easier to share between applications.
ASP & ASP.NET Article Published October 6, 2006
Atom, the replacement for RSS, is quickly being adopted by many blogging software makers. Learn how to produce an Atom XML feed using a database table.
Visual C# Article Published September 28, 2006
Password security is an easy way to tighten access to any application. Use this function to check a password against a set of rules, as well as a set of previously used passwords.
ASP & ASP.NET Article Published September 25, 2006
Enable your users to download data for use in Excel spreadsheets with a few easy tricks that leave all the hard formatting work to Excel.
.NET Article Published September 20, 2006
Want to make managing the sequence of events within a Web page easier? Simply register for a custom event and run your code when the event occurs.
ASP & ASP.NET Article Published September 15, 2006
The nested master page is a great way to manage the layout of your Web site without duplicating content on every page.
ASP & ASP.NET Article Published September 13, 2006
Enable your Web application to select a master page dynamically at runtime based on whatever criteria you choose.
ASP & ASP.NET Article Published August 30, 2006
Learn a method for controlling how users download files from your ASP.NET applications.
ASP & ASP.NET Article Published August 25, 2006
When you create a PlaceHolder control, an empty container to which you can add your controls, ASP.NET will remember the values for your dynamic controls and repopulate the data automatically.
.NET Article Published August 16, 2006
System event logs can provide valuable information, but manually finding the worthwhile details in them can be difficult. Learn the easy, automated ways .NET provides for reading and searching event logs.
ASP & ASP.NET Article Published August 9, 2006
Sometimes you need to vary the number and configuration of your controls to control the layout of your input forms. Learn how to set various attributes on the controls.
.NET Article Published August 2, 2006
The system event log is a good place to store information about your .NET application, and writing entries to the event log is fairly straightforward. You can easily add the code for it to a utility class.
ASP & ASP.NET Article Published July 28, 2006
The ASP.NET Repeater control is fully customizable, but if you try to add a RadioButton control into a Repeater, they won't work correctly. A simple JavaScript function is a reliable fix for this problem.
ASP & ASP.NET Article Published July 19, 2006
An outdated page footer can give the impression that your site is stale. With just a little HTML and code-behind, you can keep your footer perpetually current.
Visual C# Article Published July 14, 2006
Employ this function in your e-commerce application to validate the credit card numbers your users enter.
.NET Article Published June 30, 2006
Creating a custom configuration section in your configuration class will make it more modular and not reliant on the generic appSettings section in the configuration file.
.NET Article Published June 26, 2006
Overloading the constructor of a class, which is the method called when you instantiate an object, ensures that your object is populated with all the information it needs to operate properly.
ASP & ASP.NET Article Published June 21, 2006
By adding a JavaScript confirmation dialog to your Web application, you can help prevent users from doing something they will regret.
.NET Article Published June 14, 2006
When you're creating a function that needs a variable list of arguments, use a parameter array.
ASP & ASP.NET Article Published June 9, 2006
The .NET Framework 2.0 gets very fussy when you try to run both ASP.NET 1.1 and ASP.NET 2.0 sites in the same application pool. Learn how to support both versions on the same Windows 2003 machine.
ASP & ASP.NET Article Published May 31, 2006
Learn how to work with the fields and data within ASP.NET's Repeater control using the ItemDataBound event. This feature enables you to perform a variety of useful functions.
ASP & ASP.NET Article Published May 29, 2006
The Repeater control, like other ASP.NET data-bound controls, contains events to help you respond to the actions a user performs on controls within the Repeater. Learn how to respond to the ItemCommand event.
ASP & ASP.NET Article Published May 26, 2006
By creating smart properties to instantiate your objects, you can keep a single instance of an object without worrying about whether the object has been instantiated yet.
ASP & ASP.NET Article Published May 17, 2006
The ViewState used in ASP.NET provides a cleaner way to pass your own information while your page is running. Learn how it works.
ASP & ASP.NET Article Published May 12, 2006
Creating a shared Page class from which all your Web pages inherit allows the pages to share common functions, settings, and so forth without having to do much work.