Mehfuz Hossain
Learning never stops....

May 2007 Entries

AssociatedControl Property, another blessing of Microsoft Ajax 1.0

Previously, it was not possible to pass update panel reference to updateprogress panel, as a result, it was really hard to implement muliple updateProgress in a page model. In other words, there is no way to associate a panel with a particular progess panel. This thing is now made possible by the addition of an excellent propery in updateProgress control called AssociatedUpdatePanelID. Therefore, in Ajax 1.0, It is possible that i have two different update panel pointed to separte progress panel...

Calling External Procedures using C#

i found this excellent code, that tells me how can i invoke external routine easily , using C#. The purpose of the following is to set a desktop image , on button click calling a routine from user32.dll using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Runtime.InteropServi... using System.Windows.Forms; namespace wallpaper { public partial class Form1 : Form { [DllImport("user32.dll", CharSet = CharSet.Auto)]...

Interesting alignment issue in HTML Table element.

Few days back , i was having a strange problem. i have a table inside a div and i want the items in table to be centered aligned. Now generally i have declared a class like this. table.thumb{ margin-bottom : 1px; } table.thumb td{ text-align:center; vertical-align :top; } In general sense , this css will have the table leave 1px from bottom and colums will have items center align. Now, this wont work. because , the table is nested inside a div , with float set to "left", in that case even i set the...