Posts for September, 2004

ASP.NET multi-line textbox

It’s simple, but annoying to find in the documentation.. <asp:textbox id="MultilineTextBox" rows="10" columns="80" <strong>textmode="MultiLine"</strong> runat="server"/> Wish textboxes were multi-line automatically if they had more than one row..
Published in ASP.NET on Wednesday, September 29th, 2004

Finding the path of an ASP.NET webapp

If you’re trying to generate a filename that’s relative to the root of your webapp, the easiest thing to do is use the Page.MapPath() method. If you want to load a file in the root directory of your webapp, you’d use the MapPath() method in the following way: dataset1.ReadXml(MapPath("xmlfile.xml")); If this isn’t what you’re trying […]
Published in ASP.NET on Wednesday, September 29th, 2004

Substrings in bat files

Useful snippet of code for getting substrings in windows batch files: Code: SET VARIABLE=%OTHERVARIABLE:~index,length% Example: SET FIRSTNAME=%HELENNAME:~0,5% Source: windows 2000 mailing list.
Published in Sysadmin on Monday, September 27th, 2004

Setting up custom 404 pages on apache

Enabling htaccess on apache: 1. Open httpd.conf (in <apache_dir>/conf directory) 2. Find the <directory> for the directory you want to change it in 3. Change AllowOverride None
Published in Web development on Monday, September 20th, 2004

CSS2 @font-face threatens to make our pages prettier

It’s funny the way the universe echos sometimes. While I was walking to lunch yesterday I was thinking that it was high time developers got more choice about the fonts that their webpages display in. I mean we live in an age where bandwidth restrictions have relaxed so much there’s video linked from the homepage […]
Published in CSS on Thursday, September 16th, 2004

2.7 million uk emails for £270! Woo!

I wonder if people who buy spam lists from spam emails ever find their own names on them. :)
Published in Web development on Wednesday, September 15th, 2004

Truths of the universe..

..it’s easy when you know how :) Just spent the best part of an hour discovering that in ASP JScript you have to do query(“field”).Value to get the value of the field as a “real” jscript object that you can compare to null. I love ASP!
Published in Web development on Tuesday, September 14th, 2004