Set initial sorting on a Telerik RadGrid column

0 Comments

If you want to set an initial sorting on a column on a Telerik RadGrid, use the “NeedDataSource” event and add a GridSortExpression to the MasterTableView.SortExpressions protected void RadGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { // Set

How to solve: IE 8 new tab hang on Connecting… on Windows 7 x64

3 Comments

The solution posted on: http://social.answers.microsoft.com/Forums/en-US/InternetExplorer/thread/e312e580-1cbc-496b-8c6b-b69b8535a7bb solved my problem For Win 7 64 bits : 1 – Create a new notepad document and paste this text : @echo off echo. echo IEREREG Version 1.07 for IE8

Configuring Internet Explorer to Remember Your SharePoint Login Credentials

0 Comments

See: http://blog.sharepointhosting.com/Lists/Posts/Post.aspx?ID=93 Go to Control Panel Go to Internet Options Click the “Security” tab Click “Local Intranet” Click “Sites” Click “Advanced” Add your SharePoint site into the “Local Intranet” zone. Click OK to confirm on

Get first day of current week or last week with TSQL

0 Comments

To get the first day of the current week use: select dateadd(dd, (datepart(dw, getdate()) * -1) + 2, getdate()) To get the first day of previous week and last day of previous week use: select

Leadtools engine initialization error, or there is no appropriate license

0 Comments

If you get the error: Leadtools.Forms.Ocr.OcrException : Engine initialization error, or there is no appropriate license. at Leadtools.Forms.Ocr.Plus.OcrEngine.StartupEngine(String startupParameters) at Leadtools.Forms.Ocr.Plus.OcrEngine.Startup(RasterCodecs rasterCodecs, String workDirectory, String startupParameters) make sure the ocr engine is started with the

How to check if column exists in SQL Server table

0 Comments

SQL Server 2005 onwards: if not exists(select 1 from sys.columns where Name = N’columnName’ and Object_ID = Object_ID(N’tableName’)) begin     — Column does not exist end http://stackoverflow.com/questions/133031/how-to-check-if-column-exists-in-sql-server-table

Insert image with TSQL and a hex string

0 Comments

You can insert an image from t-sql script, if you use the hex string notation: The next line will insert an image representing a "check mark" into the database. In a table [Test] with a