Display Image Thumbnails and Resizing

3 articles on Scott Mitchell’s 4GuysFromRolla regarding displaying scaled images: (The resizing here means resizing on the server, on the fly, to create thumbnails so the loading speed can be improved. This doesn’t control the size of the initial uploading. ) Displaying a List of Scaled Images True Image Resizing – Part 1 True Image … Continued

Data Access Tutorials

Microsoft ASP.NET Official Data Access Tutorials – really covers a whole varieties of topics, take the time to read them. By Bryan Xu

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