Welcome to my blog. If you like my posts, please subscribe to my feed and if you want to keep in touch, follow me on twitter! Happy reading!

How to add a tooltip to an ASP.NET DropdownList item

Tuesday, June 16th, 2009

If you want to set a common tooltip for all the items in a DropDownList then you can just set the Title attribute for each item like so:

foreach(ListItem item in ddlScorecards.Items)
    item.Attributes.Add("Title", "YOUR TOOLTIP TEXT");

But if you want to set unique tooltips for each item then you have wrap the text value of the items in a DIV.

foreach(ListItem item in ddlScorecards.Items)
  item.Text = String.Format("<div title='{0}'>{1}</div>", "YOUR_TOOLTIP", item.Text);

Happy Programming!

Cheap Web Hosting

Friday, January 9th, 2009

Looking for cheap web hosting?? Our cheap price and support make us the obvious choice for web masters.

You look good if your site is fast and always available. We been successfully focusing on Super Fast and Highly Reliable Hosting and the only Bangladeshi provider to offer not just a unique package of features but a philosophy for extracting the best value out of your Internet presence. With us you get the best in high availability hosting using the finest quality hardware and facilities, backing it up with a local personal and highly effective extended hours support service. These, together with performance-guarantees at a competitive price, make us the professional’s choice.

Hosting Features:

  • 99.9% Web Server Uptime guarantee
  • Extensive Data Backup
  • 24 x 7 x 365 Server Monitoring
  • Optional control panel for hands on access
  • Reliable email service
  • Quality visitor monitoring statistics
  • Good server response times
  • Secure servers for confidential transactions
  • Choice of web hosting with a Linux & Windows Server
  • Reliable 24 hour operation, 365 days a year
  • Flexible bandwidth to cope with your peak traffic
  • Sufficient storage space for your site files and databases

For further inquiries, please send us an email with your specs to sales@raihaniqbal.net

ASP.NET ImageButton not supported in Firefox 2.0

Friday, July 25th, 2008

I recently discovered that the ImageButton and LinkButton ASP.NET controls do not function properly in Firefox 2.0. I wasted almost two days trying to figure out what was wrong with my code. Apparently, I was chasing a ghost! For more information on this problem can be found here. Unfortunately, the only workaround for this problem is to either upgrade to Firefox 3, which ROCKS by the way, or use a standard ASP.NET button and style it using CSS.