Chuck Norris Puts the Ms on M&Ms November 30 2005
I don’t know who dreams this stuff up but
this Chuck Norris craze is freakin Hell-Arious!
Tickle Me Elmo Joke November 29 2005
I cannot claim credit for this one, but I thought it was cute enough to share.
A new employee is hired at the Tickle Me Elmo factory. The personnel manager explains her duties, and tells her to report to work promptly at 8 am.The next day at 8:45 there’s a knock at the personnel manager’s door. The assembly line foreman comes in and starts ranting about this new employee. He says that she is incredibly slow and the whole line is backing up.
The foreman takes the personnel manager down to the factory floor to show him the problem. Sure enough, Elmos …
Access Date/Time and DateTime.now - Data type mismatch in criteria November 18 2005
I was recently receiving “Data type mismatch in criteria expression” errors when trying to insert a record into an Access database with a Date/Time field.
It seems as though if you assign the Datetime.now to a class variable and put the class variable into the SQL Parameter Add statement all will be well.
If you try and put the DateTime.now directly into the SQL Parameter Add statement, you will get the mismatch error.
For the Access DB, it appears you need to use the following:
DateTime.Now.ToOADate
More wasted hours
TabStrip IE Control - Changing Tabs November 17 2005
Very simple and obvious upon reflection however I spent time trying to figure this out so I’ll write it down.
Given:
<ie :TabStrip id=”TS1″…>
</ie:TabStrip>
<ie :MultiPage id=”MP1″>
..
</ie:Multipage>
You can change which tab is selected by the TabStrip not by the multipage!
e.g. TS1.SelectedIndex = {INDEX}
ASP.NET TabStrip and Microsoft.Web.UI.WebControls
A quick gotcha that my ASP.NET book failed to mention : You need to put the Microsoft.Web.UI.WebControls.dll into your project and reference it through the IDE otherwise it will not find it.
Once that is done, you can reference as usual:
< %@ Import Namespace="Microsoft.Web.UI.WebControls" %>
< %@ Register TagPrefix="IE" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
