ASP.NET

Dynamic Image Loading, Caching, & Performance

I came across an interesting blog posting and comment today doing some research on ASP.NET performance. Essentially, Alik Levin mentions that if you're loading images dynamically (either from a file-system or DB) you will not be taking advantage of browser/client caching out-of-the-box. I'm using a very simple HTTP Handler in one of my applications, the handler, well, handles serving up images in my application - something there are lots of. So it seems like it makes a lot of sense to have the browser...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

ASP.NET Performance Tips

In the post below I am going to run down a short-list of some of the less-popular performance tips and the reasoning behind them. There are loads of blog postings and articles on asp.net performance enhancements, and I urge you to check those out as well. Onto the good stuff... Session.ReadWrite versus Session.ReadOnly It goes without saying that using the Session object will incur some performance overhead so if possible it should be turned off in the web.config. That said, If you’re using the Session...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Send e-mail with attachment from database image column (sql server 2k5)

Soooo...I needed to get files out of my SQL Server table (which has the files in an image column) and attach them to an email to send out. I honestly thought this would be a no-brainer but turned out it was pretty finicky. Anyway...the code to so is below just in case anyone is wondering. Partial Class _Default Inherits System.Web.UI.Page Function SendEmail() 'Get your data (filename, content type, image column) from the db Dim dt As DataTable = GetYourStuff() If dt.Rows.Count <= 0 Then Return...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Export to vCard from .NET (VB.NET)

Hi all - So was poking around a few weeks ago and couldn't find any code that'll allow me to export data to vcard...The class would require a little modification to utilize, but should get you 90% of the way there Partial Class vCardExport Inherits System.Web.UI.Page Private Const nameFirst As String = "FirstName" Private Const nameLast As String = "LastName" Private Const nameMiddle As String = "MiddleName" Private Const nameTitle As String = "Mr" Private Const email As String = "firstname.lastname@domain....
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Twitter