Welcome to Professional ASP.NET - Chris Love's Official Blog Sign in | Join | Help

Chris Love's Official ASP.NET Blog

Chris Love's Helpful tips, tricks and pragmatic development knowledge for the ASP.NET world.
ASP Insider

September 2009 - Posts

Microsoft Store

Communication With a Background Thread in ASP.NET
Over the past couple of years I have written and presented on custom HttpModules . One of my examples is how to spin up a background thread to perform work not related to processing a web request. I thought I would extend the usefulness of this technique Read More...
Dynamically Setting a Style at Run-Time in ASP.NET
Trolling the ASP.NET forums this week I came across a good question, “ setting the background on a master page div at run-time? ”. Even though the person posted he found an acceptable solution before I posted my response, I think the user has a complicated Read More...
Designating Content Type
Another common issue developers have using HttpHandlers is indicating what type of content is being sent to the browser. This is done by setting the MIME TYPE in the request header. In ASP.NET, whether you are doing it in an HttpHandler or a Page, you Read More...
How to Access SessionState in a custom HttpHandler
I create a lot of custom HttpHandlers to performa all sorts of tasks. I like them because you get complete control over the content produced by the server to satisfy the request. Occasionally I need to interact with the user's session. The other day Read More...
I Can’t Send E-Mail from localhost; Cannot connect to SMTP server
I see this question asked over and over in the ASP.NET forums and many times the answer is you have to have an SMTP server on your local machine. The person asking the question is usually under the wrong impression that setting the SMTP server property Read More...
Creating an Image Frame
Yesterday I answered a question on the ASP.NET forums on how to create a ‘frame’ around an image . I answered it with some code from the new Beer House I wrote last fall. In the book I show how to add a drop-shadow around an image using CSS. The code Read More...