4

Sending Email with ASP.NET

Something found on every web page today is an email form of some sort. In all probability this will not change anytime soon, therefore I will demonstrate today how to send email via ASP.NET: from plain to HTML mail and… Continue Reading

4

In a Class of its own – the .NET Zip Library

The .NET Framework contains several hundreds of classes, yet something is missing: there is no class for compressing and decompressing Zip archives. This omission however can be made up for by using the .NET Zip Library (NZipLib) – it supports… Continue Reading

Uploading Files with ASP.NET

Something that could not reasonably be done under ASP without a third party component was the uploading of files to the web server even though the uses of this feature range from content management systems to online cost estimates for… Continue Reading

1,287

Directory Browsing the .NET Way

Enumerating Drives The first thing we should find out is which drives actually are available for browsing on the computer (listdrives.aspx): <% @Page Language=”C#” %> <% @Import Namespace=”System.IO” %> <% string[] achDrives = Directory.GetLogicalDrives(); int nNumOfDrives = achDrives.Length; Response.Write(“<ul>”); for… Continue Reading

24

Generating graphics on the fly

Generating a graphic Before burdening us with the ballast of ASP.NET, we do a dry run with a simple command line program – and then use this source code as the base of our ASP.NET script. The difference lies in… Continue Reading