September 2007 - Posts

0
Comments

Programatically Loading Providers by Avoiding web / app config by shahed

Background Recently I was in a situation where I had to expose two of my .NET Libraries as COM, to invoke via VBScript (Late Binding) from one of the Legacy Application. One of the .NET Library uses .NetTiers and the other one uses Subsonic as the DAL...
0
Comments

Visual C# Development Settings by shahed

source: http://blogs.msdn.com/karenliu/archive/2006/06/12/628756.aspx Visual C# Development Settings Default KeyBindings Editing Edit.CollapseToDefinitions CTRL + M, O Collapses existing regions to provide a high-level view of the types and members in...
0
Comments

Tips and Tricks VS2005 and CS2008 by shahed

source: http://blogs.msdn.com/karenliu/archive/2007/06/21/tips-and-tricks-for-vs20005-and-vs2008.aspx Tips and Tricks for VS20005 and VS2008 Tips for Understanding Code 1) [VS 2008] Target Multiple Versions of the Framework Use .NET 3.0 to target Vista...
0
Comments

Loading Xps from MemoryStream by shahed

A common way of loading XpsDocument is to load it from file: XpsDocument document = new XpsDocument(filename, FileAccess.Read, CompressionOption.NotCompressed); FixedDocumentSequence fixedDocumentSequence = document.GetFixedDocumentSequence(); //To view...
1
Comments

Redirect to Login page on session expiration (ASP.NET) by shahed

Problem Redirect the user to login page after a period of inactivity or when the session expires. Investigation A quick search on Google will find many articles which discuss how we can detect session expiration and how to redirect to the login page....
Powered by Community Server (Commercial Edition), by Telligent Systems