I recently published an article at DotNetSlackers on how to securely collect and display HTML. For those that have not seen it, the URL is:


http://dotnetslackers.com/articles/aspnet/Encode_and_Display_HTML_Securely_in_ASP_NET_2_0.aspx

So far, I’m having a great time. Arrived around noon today (Monday) and had an event free ride from San Jose to Las Vegas, then to Mandalay Bay, the conference hotel and my digs for the next three nights. The highlight was almost getting on the wrong bus, and almost leaving my overnight bag on that wrong bus. The nice bus driver actually walked across the street to give it back to me. Las Vegas really has become a friendly place.

A main reason I come to these meetings is to meet interest people (and of course learn new technologies). Standing in line at Starbucks, I noticed a speaker from Microsoft with badge saying ASP.NET. I immediately recognized my opportunity to get answers to all my troubling questions (about ASP.NET that is). Little did he know (that is Richard Turner who is Program Manager of Web Services Strategy from Redmond) that I had so many issues. I asked my first question about the Cache Block in the Enterprise Library while we were standing in line. Richard said "Do you have 5 minutes?". An hour later we left for the keynote. Richard was a wealth of information and most certainly will be receiving an invitation to next years Silicon Valley Code Camp II.

(more…)

In this article, I will show a simple way to implement Cache for a GetData type call in the SqlClient layer of the generated code. I won’t go through all the details of getting to this point but will show the code and briefly explain how it works. I’m new to CodeSmith so I’m sure there is a better way to solve this problem, but for now, this is one technique that works.

(more…)

© 2012 PeterKellner.net. All Rights Reserved