Welcome to Bilal Haidar [MVP, MCT] Official Blog Sign in | Join | Help

October 2006 - Posts

the tragedy of my society

I wonder sometimes, is it really true that God prevents two persons from two different religions to live together? Does God differentiate between a person from ReligionX and a person from ReligionY Doesn’t God look at each person as an instance of a Human

Code Snippets in Visual Studion 2005

I found out that 3 different ways are used to add a Code Snippet in your code: Right Click --> Insert Snippet --> then select a snippet. Ctrl button + k + x --> this combination will allow you to select a Code Snippet Using the Tab button. If

AutoRecovery feature in Visual Studio 2005

I was working on Visual Studio 2005 lately and noticed a new feature which is AutoRecorvery. You can define a certain time span to allow VS to autosave your work in case an electricity failure or any other failure happens, just like MS Word does! To reach

Optional Parameters in C#

I have always heard that Optional parameters are not explicitly available in C#. Lately, I was reading the: Microsoft Visual C# Core Reference, while reading the section about Params keyword in C#, I got an idea that we can implement Optional Parameters

DropDownList and Dynamic Loading of Controls

I have noticed that you would have used the "sender" parameter and simply cast the object into a DropDownList, this would have given you what I was trying to do, which is an instance of the DDL that was selected in a dynamically created controls. However,

DropDownList and Dynamic Loading of Controls

When you are working with Loading Controls Dynamically, you might face this problem: Suppose you have a Request Form, where clients can send you several requests, and whenever the user wants to create a new request, he/she will click on a button to create

Store C# Collection in XML

While developing a multi-threaded Web Application, I had the need to store my collections generated in multiple thread somewhere. I tried the CACHE in .NET, however, threads do block the whole CACHE and notonly an item in the CACHE, so as usual, the solution
Posted by BilalHaidar [MVP] | 0 Comments
Filed under:

Read-Only TextBox

That is a nice trick to make a TextBox a read-only TextBox: <asp:TextBox id="txtID" runat="server" onkeydown="return ProtectBox(event);" /> <script language="javascript"> <!-- function ProtectBox(e) { return false; } //--> </script>

XGrid on CodePlex

Dear All: I would like to announce to you that I have finally released the XGrid Control on CodePlex at the following URL: http://www.codeplex.com/Wiki/View.aspx?ProjectName=xgrid&title=Home For those of you who don't know what the XGrid Control is,

Code Geeks, where are you?

Google introduced a new search service called Code-Search, which is best sutied for Code Geeks . Have a look at it here: http://www.google.com/codesearch Regards

Filter Collection of Objects

I have been developing an API for an application of mine at work. The API returns a set of objects in the form of Collections. I needed a way to filter the collection based on some values I provide. I have passed by this blog post: http://codebetter.com/blogs/brendan.tompkins/archive/2004/09/02/24116.aspx