Delete Files using C#

Example code to follow: protected void CleanImageFolder() { string imgFolder = Server.MapPath(“~/lab/maskemail/img/”); string[] imgList = Directory.GetFiles(imgFolder, “*.jpg”); foreach (string img in imgList) { FileInfo imgInfo = new FileInfo(img); if (imgInfo.LastWriteTime < DateTime.Now.AddMinutes(-3)) { imgInfo.Delete(); } } } By Bryan Xu

ASP.NET 3.5

Couple general readings by Scott Mitchell on his 4GuysFromRolla:

Lazy-Load on ModalPopup

This is the scenario: we have a Data control inside the Modal div, and we don’t want all the data inside this modal popup to be loaded when the main page is loaded. We want them to be loaded when the user decides to bring out the popup the first time. If Visible is set … Continued

MS Tutorial Video on Login/Membership/Profile/Roles

Securing your Web Site with Membership and Login Controls (Lesson 9 of the Beginners series) This tutorial demonstrates the uses of all the controls in the Login toolbox. It’s relatively simple and didn’t go into all the specific details of each control. It also shows how to use restrict people with authentication (User.Identity.IsAuthenticated) and specific … Continued

RoundedCorner Web Control

Couple articles extracted from Scott Mitchell’s 4GuysFromRolla on RoundedCorner Web Control: Introducing the RoundedCorner Web Control Improving the RoundedCorner Web Control By Bryan Xu