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) 0×00A0);
Add comment June 23, 2008
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”.
1 comment April 2, 2008
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
2 comments January 22, 2008
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>
24 comments January 15, 2008