Posts filed under ‘Uncategorized’

Crystal Reports for Visual Studio 2003 and text cut/truncation in fields

Here is a problem: Crystal Reports for VS2003 by default truncates fields using word truncation strategy so if field has text “ABCD EFGHI” and only “ABCD EF” fits then “ABCD” will be displayed. Also we don’t need wrapping to next line.

So the solution is: replace common spaces with non-breakable ones.

string s = “ABCD EFGHI”;

string result = s.Replace(” “, (char) 0x00A0);


June 23, 2008 at 1:07 pm 4 comments

App_Data, App_Code and other App_* folder protection magic

Today I was asked question how ASP.NET protects this folders’ content from external access. ASP.NET does a little magic there with ISAPI filter aspnet_filter.dll, which you can see on IIS Manager\{Your PC Name}\Web Sites\ISAPI Filters tab.

WebDev.WebServer check this internally in WebDev.WebHost.dll

List of protected dirs: “/bin”, “/app_browsers”, “/app_code”, “/app_data”, “/app_localresources”, “/app_globalresources”, “/app_webreferences”.

April 2, 2008 at 12:58 pm 1 comment

CentOS 5, PHP, GD2 library

By default CentOS 5 comes without GD2 library for PHP

There is an easy fix for this with “yumagic” 🙂

Open terminal and run:

yum install php-gd

January 22, 2008 at 10:25 am 4 comments

Internet Explorer (IE) ignores white-space: nowrap on table’s TD

Used gridview today and client wanted content in tables to be displayed without any wrapping. First solution of course just set up:

<table><tr><td style=”white-space: nowrap”>qwe-asd</td></tr></table>

And of course it works fine both in Opera and FireFox but not in IE7 (have not tested under IE6). The picture changes of course but some cells are still wrapping.

Workaround is to use template field with span:

<table><tr><td><span style=”white-space: nowrap”>qwe-asd</span></td></tr></table>

January 15, 2008 at 10:41 am 65 comments


March 2018
« Oct    

Posts by Month

Posts by Category