Preferred Language:
Listing 21.10 - SqlVirtualDirectory.cs
using System;
using System.Collections;
using System.Web.Hosting;
using System.Web;
namespace AspNetUnleashed
{
public class SqlVirtualDirectory : VirtualDirectory
{
public SqlVirtualDirectory(string virtualPath) : base(virtualPath) { }
public string AppPath
{
get { return VirtualPathUtility.ToAppRelative(VirtualPath); }
}
public override IEnumerable Children
{
get {return VirtualFiles.DirectorySelectChildren(VirtualPath); }
}
public override IEnumerable Directories
{
get { return VirtualFiles.DirectorySelectDirectories(VirtualPath); }
}
public override IEnumerable Files
{
get { return VirtualFiles.DirectorySelectFiles(VirtualPath); }
}
}
}
ASP.NET 3.5 Unleashed
- Containing almost 2,000 pages of code samples and in-depth explanation of the
ASP.NET 3.5 Framework, ASP.NET 3.5 Unleashed is the most comprehensive book
written on the ASP.NET 3.5 Framework.
ASP.NET 3.5 Unleashed is now available in your local bookstore and online (Published January 7, 2008).
All of the code samples from this book are hosted "live" at this website.
Click here
to view the table of contents and code samples.