csharp – Chris Coulson's Developer Notes https://blogs.visigo.com/chriscoulson Tips on .Net, SQL Server, Sharepoint & AI Tue, 30 Aug 2011 16:12:35 +0000 en-US hourly 1 https://wordpress.org/?v=6.3.5 https://blogs.visigo.com/chriscoulson/wp-content/uploads/2011/02/chris_profile-150x150.jpg csharp – Chris Coulson's Developer Notes https://blogs.visigo.com/chriscoulson 32 32 LoadTemplate and the ASP.NET Login controls https://blogs.visigo.com/chriscoulson/loadtemplate-and-the-asp-net-login-controls/ https://blogs.visigo.com/chriscoulson/loadtemplate-and-the-asp-net-login-controls/#respond Tue, 30 Aug 2011 16:12:35 +0000 http://blogs.visigo.com/chriscoulson/?p=50 Recently I was trying to programmatically load the templates for the PasswordRecovery control. I thought it should be pretty straightforward: Should be a piece of cake right? Wrong. If the template is put directly in the ASPX page all works as expected. If the same template is loaded using LoadTemplate, you’ll get an error like: After some sleuthing I realized the problem was in the way...

Source

]]>
https://blogs.visigo.com/chriscoulson/loadtemplate-and-the-asp-net-login-controls/feed/ 0
Simplify Your Caching By Using a Generic Method https://blogs.visigo.com/chriscoulson/simplify-your-caching-by-using-a-generic-method/ https://blogs.visigo.com/chriscoulson/simplify-your-caching-by-using-a-generic-method/#respond Wed, 24 Aug 2011 05:02:20 +0000 http://blogs.visigo.com/chriscoulson/?p=61 I needed to add caching to my data access routines to improve the performance of commonly accessed data. This is pretty straightforward: The problem was, I had a lot of data access routines that I wanted to add caching to. Adding the 4 or 5 lines of code needed to do this to each routine would be tedious, and all of the repetition would be messy. I knew I had to centralize my caching functionality...

Source

]]>
https://blogs.visigo.com/chriscoulson/simplify-your-caching-by-using-a-generic-method/feed/ 0