Finding Controls in Repeater/DataList From The Event Handler
[ June 20th, 2009 | 155 views ]
Leave comment
Posted in: General
You may have Button, DropDownList etc controls in a Repeater/DataList that generates an Event. From those event handlers how do you find other controls inside the Repeater/DataList, in case you need the values from other controls.
The text, ntext, and image data types are invalid in this subquery or aggregate expression
[ June 19th, 2009 | 135 views ]
Posted in: General
I have a client I was building an e-commerce website for. I was developing the website on MS SQL 2005 Database, but their deployment server have MS SQL 2000. From experience I knew there are some stuffs that would not work in MS SQL 2000, so I avoid them. This one missed my eyes. I get this error message on the search results page:
The text, ntext, and image data types are invalid in this subquery or aggregate expression.
CASE Statement in Where Clause – Microsoft SQL
[ June 15th, 2009 | 331 views ]
Posted in: General
Can we use CASE statement in a where clause? Answer is yes.
LinkButton CssClass Not Working – ASP .NET
[ June 10th, 2009 | 303 views ]
Posted in: General
I have two css classes like this:
.folderTextON,a.folderTextON:active,a.folderTextON:link,a.folderTextON:visited {color:#fff;font:bold 10px/12px Verdana,Arial;text-decoration: none;}
a.folderTextON:hover { text-decoration: none; color: #FFFFFF; }
.folderTextOFF,a.folderTextOFF:active,a.folderTextOFF:link,a.folderTextOFF:visited {color:#AD9596;font:bold 10px/12px Verdana,Arial;text-decoration: none;}
a.folderTextOFF:hover { text-decoration: none; color: #fff; }
I also have LinkButton like this:
<asp:linkbutton id="linkbtn" CssClass="folderTextOFF" Runat="server">A Link Button</asp:linkbutton>
On code behind I tried to set the css class like this:
linkbtn.CssClass="folderTextOn";
This does not
IsInteger in ASP .NET
[ May 19th, 2009 | 265 views ]
Posted in: Programming / Coding
If you need to check if a number is an integer, there is no built in function for that in ASP .NET. But you can create a simple method for that like this.
Wordpress Update With Add-On Domain Causes Redirect to Main Url
[ April 24th, 2009 | 2,402 views ]
Posted in: Programming / Coding
Google & Twitter Drama: Winner is Twitter and Looser is FaceBook
[ April 5th, 2009 | 415 views ]
Posted in: Advertising / Marketing, Technology
There are a lot of rumor around regarding Google and Twitter. Some tech news websites are reporting Google buying Twitter, some reporting Google and Twitter partnering together. Its all started when Google created an account at Twitter.No matter what its a win-win situation for Twitter.
Twitter gets the most out of
Happy April Fool’s Day
[ April 1st, 2009 | 424 views ]
Not sure if I can call the April Fool's Day a Happy day, but I mean well.
How to Select Random Row from Database
[ April 1st, 2009 | 656 views ]
Posted in: Programming / Coding
Few example codes shown below to select a Random Row from a table in different databases. The codes below shows how to select a single random row, you can change them to select multiple rows.
Comma Seperated Value From Table in Microsoft SQL
[ March 30th, 2009 | 393 views ]
Posted in: Programming / Coding




My name is Manik. I am a web developer & entrepreneur. Working with Microsoft ASP .Net, MS SQL, C# mainly. I have a full-time job managing a large e-commerce site. I also work freelance developing websites mainly the backend coding and database stuffs. My entrepreneur life started with webcosmo.com, a free classified ads site, followed by webcosmoForums.com and few other sites...