BackgroundRecently 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, so as you can understand all the configurations are declared in the app.config / web.config file as something like this:Nettiers Config<netTiersService defaultProvider="SqlNetTier... <providers> <add name="SqlNetTiersProvider" ......
source: http://blogs.msdn.com/karen... 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 the source file. Edit.CommentSelection CTRL + K, C or CTRL + E, C Inserts // at the beginning of the current line or every line of the current selection. Edit.FormatDocument CTRL + K, D or CTRL + E, D Formats the current document according to the indentation ......
source: http://blogs.msdn.com/karen... 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 Use .NET 3.5 to get started with LINQ Project | Properties | Application Tab 2) C# Development Settings Share your settings Tools | Import and Export Settings 3) Add New Item [VS 2008] Categorical Filter-as-you-type 4) Class Designer Visual, high-level ......
A common way of loading XpsDocument is to load it from file:XpsDocument document = new XpsDocument(filename, FileAccess.Read, CompressionOption.NotCompre... fixedDocumentSequence = document.GetFixedDocumentSe... view in the DocViewerdocViewer.Document = fixedDocumentSequence as IDocumentPaginatorSource; But if we need to Load the Xps from a Stream we can use the Package Class and do the following:private void LoadXpsFromStream(Byte[] xpsByte, string packageUriString){ ......
ProblemRedirect the user to login page after a period of inactivity or when the session expires.InvestigationA quick search on Google will find many articles which discuss how we can detect session expiration and how to redirect to the login page. However, most of the methods described require page refreshes or requests to the server to find out whether the session expired. Some ways of detecting whether a session has expired:1. ASP.NET Forum ArticleIf you are using cookie, you can store a marker ......