April 2008
    May »



Recent Posts


asp .net asp .net membership browsers computer crash Guy Burstein javascript link-o-rama LINQ office 2007 optimization outlook 2007 performance ScottGu SQL Server t-sql web servers workarounds xmlhttprequest

Archive for April, 2008

ASP .NET Membership: Where’s the UserID?

Friday, April 25th, 2008

I couldn’t figure this out intuitively, but good news: there is a way to get it from the MembershipUser class.
They don’t call it UserID (duh) but ProviderUserKey
dim user as MembershipUser = Membership.GetUser()
dim userGUID as GUID = user.ProviderUserKey
dim userID as String = user.ProviderUserKey.toString

Click on pen to var showHover=true;

SQL Server: Data types text / ntext won’t play with sort or LIKE.

Tuesday, April 22nd, 2008

Msg 306, Level 16, State 2, Line 1
The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.
Pretty self-explanatory.
In order to compare or sort text/ntext, you need to convert it to varchar (or similar datatype that can allow compare/sort). Note, text/ntext often has a large capacity [...]

LINQ here, LINQ there, LINQ everywhere

Tuesday, April 22nd, 2008

According to DA GURU (that’s Scott Guthrie), on his article LINQ to SQL (Part 5 – Binding UI using the ASP:LinqDataSource Control)
We will also take advantage of the built-in paging/sorting support within LINQ to SQL to ensure that features like the product listing paging/sorting are performed not in the middle-tier, but rather in the [...]

ASP .Net says: Look, Ma, I’m a Javascript!

Saturday, April 19th, 2008

Here’s was my problem yesterday, in a cool scripted form:
Mission> Your mission, should you choose to accept, is to allow third party sites to grab from this system you are developing and display our content. These undisclosed third party sites may be in ASP .Net, ASP, PHP, or even… [ominous pause] static HTML. You have [...]

Outlook 2007 Installation Nitemare

Friday, April 18th, 2008

9th April from 9pm till 5am next day
outlook 2007 configuration nightmare
from one error to another even after installing patches and SP1
tried total removing of office (http://support.microsoft.com/kb/928218) which includes Registry changes
run MS Office diagnostic if Error#1 occurs
copy RTFHTML.dll into windows\system32 to prevent below common errors #1 & #2
set loadbehaviour to zero for edatasecurity section within registry [...]

Hello world!

Thursday, April 17th, 2008

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Click on pen to var showHover=true;