Preventing Infinite Redirect Loops with Apache mod_rewrite
Reader Level:
When writing rewrite rules for URLs without a trailing slash, an infinite redirection loop will be your likely result. To prevent this problem, create a preceding rewrite condition which adds the trailing slash to the requested URL. This tutorial will show you how.
Automatically Add Headers and Footers to Every Page Using ASP.NET - Part 2
Reader Level:
Say it with me - "No more cloning!" That's right, you can add the same header and footer to
every page in your ASP.NET website by modifying just the Global.asax. This article is the second in a series. You'll learn how to create a custom filter, which is used to insert the header and footer text in every .aspx page. This technique is better than the one described in
Part 1 in that each page retains its own distinctive head section. And as an added bonus, you'll learn about a handy C# concept called
verbatim literal strings.
Protect .zip and .exe Files on Your Server Using an HttpHandler - Part 2
Reader Level:
Forms authentication is a clever way to protect resources within specified folders of your web site. The problem is, by default only ASP.NET resources (e.g., .aspx, .asmx, .ascx, .asax, .config files plus a couple others) are protected. But what if you have .zip files or .exe files in those folders as well? If not explicitly protected, users who know the location and name of the .exe or .zip file can simply browse to the file and download it from your server. Not a happy situation. Fortunately, there's a solution. In this two-part article, you'll learn how to protect non-ASP.NET resources. By the end of Part 2, you should be able to extend the paradigm to protect other types of files as well.
Using Dreamweaver and .NET For Batch Updates - Part 1
Reader Level:
The Update Record server behavior is convenient and easy to use when you need to update a single row of a table using values collected from a form. But what if you want to update many rows simultaneously and don't want to bother with filling out a form for each and every item? In this tutorial you'll learn how to modify Dreamweaver's Update Record server behavior to perform a batch update. With a bit of hand-coding you can still take advantage of Dreamweaver's built-in server behavior.
Using An asp:CheckBoxList Control With Dynamic Data - Part 2
Reader Level:
In Part 1 of this series, we learned how to populate an asp:CheckBoxList control with data from a SQL Server database. Part 2 covers how to update the database using a stored procedure that takes as input the selections made in the CheckBoxList control.
Using An asp:CheckBoxList Control With Dynamic Data - Part 1
Reader Level:
Learn how to populate an asp:CheckBoxList control with data from a SQL Server database in Part 1. Part 2 covers how to update the database using a stored procedure that takes as input the selections made in the CheckBoxList control.
Making asynchronous Web service calls in ASP.NET
Reader Level:
Asynchronous web service calls aren't nearly as difficult to implement as they sound, which is nice because they offer the .NET developer a true performance boost. Read on to take advantage of this powerful technology.