protected void Page_Load(object sender, EventArgs e) { // Show admin link if they have access to the admin directory. // hyperLinkAdmin.Visible = hasAccessToDir("admin"); } protected bool hasAccessToDir(string dir) { return System.IO.Directory.Exists(MapPath(dir)); }
Leave a comment:

