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 June 2008 Entries
ASP.NET tips: Golden rules for Dynamic Controls.
1. Make sure your dynamic controls are Loaded on every postback. Lets play with a very simple example, ASPX <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <body> <form id="form1" runat="server"> <div> <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:... <asp:Button ID="Button1" runat="server" Text="Button" /> </div> </form> </body> </html> C# Code Behind public partial ......

Posted On Thursday, June 26, 2008 2:36 AM

ASP.NET tips, Making Custom Validators work in Partial Rendering mode.
Introduction There are many situations where we need to identify if partial rendering is supported in a page, especially when a control uses javascript, to get the control work in partial rendering mode, the script needs to be registered using a ScriptManager Type instead. A classic example will be Validators. The ASP.NET Page class exposes the Validators property, which is a list of all the IValidator types on the page. A page keeps track of its validators, and registers a javascript array of validators ......

Posted On Tuesday, June 17, 2008 5:43 AM

C# 3.0 tips, Automatic Property
Declaring a property in C# 3.0 is super easy and super short. public class Student { public string Name { get; set; } } yes that's it, the framework will take care of the rest, the private variables will be automatically created and the getter and setter will be automatically implemented. Here is how we can assign value to an automatic property via the constructor public class Student { public string Name { get; set; } public Student (string name) { this.Name = name; } } And finally, here is how ......

Posted On Wednesday, June 11, 2008 12:21 AM

System.Net.WebClient().DownloadString(url) for Web Scrapeing
WebRequest is the abstract base class for the .NET Framework's request/response model for accessing data from the Internet. To get content of a website, in .NET 1.0. we used to use WebRequest, which is good and also works asynchronously. public static string GetContent(string url) { System.Net.WebRequest request = System.Net.WebRequest.Creat... using (System.Net.WebResponse response = request.GetResponse()) { using (System.IO.StreamReader reader =new System.IO.StreamReader(resp... ......

Posted On Monday, June 9, 2008 3:28 PM

Copyright © Shahed Khan | Powered by: