Geeks With Blogs

News Awarded Microsoft MVP C#.NET - 2007, 2008 and 2009

I am born in Bangladesh and currently live in Melbourne, Australia. I am a Microsoft Certified Application Developer MCAD Chartered Member (C# .Net)and born in Bangladesh.
I am founder and Chief Executive Officer of
Simplexhub, a highly experienced software development company based in Melbourne Australia and Dhaka, Bangladesh. Co-founder and core developer of Pageflakes
Simplexhub, is on its mission to build a smart virtual community in Bangladesh and recently launched beta an ASP.NET MVC application written in C#.NET.

Some of My Articles
Flexible and Plugin based .Net Application..
Mass Emailing Functionality with C#, .NET 2.0, and Microsoft® SQL Server 2005 Service Broker'
Write your own Code Generator or Template Engine in .NET
Shahed Khan blog September 2007 Entries
Programatically Loading Providers by Avoiding web / app config
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" ......

Posted On Tuesday, September 25, 2007 7:59 PM

Visual C# Development Settings
source: 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 ......

Posted On Monday, September 24, 2007 11:48 AM

Tips and Tricks VS2005 and CS2008
source: 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 ......

Posted On Monday, September 24, 2007 11:43 AM

Loading Xps from MemoryStream
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){ ......

Posted On Saturday, September 22, 2007 4:54 PM

Redirect to Login page on session expiration (ASP.NET)
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 ......

Posted On Wednesday, September 5, 2007 12:54 PM

Copyright © Shahed Khan | Powered by: