custom pagertemplate

The default pager mechanism inserts a table in the last row and then this table contains one row with as many cells as needed that contain page number (I set the page mode to numeric). Instead of having this nested table, I’d like to create a pagertemplate that consists of small square divs that are floated to the left of each other, with the page number inside each box.

Remove invalid (disallowed, bad) characters from FileName (or Directory, Folder, File)

I’ve wrote this little method to achieve the goal in the subj., however, is there more efficient (simpler) way of doing this? I hope this can help somebody who will search for this like I did. var fileName = new System.Text.StringBuilder(); fileName.Append("*Bad/ :, Filename,? "); // get rid of invalid chars while (fileName.ToString().IndexOfAny(System.IO.Path.GetInvalidFileNameChars()) > -1) … Read more

Creating a mini-site in ASP.NET that works on Blackberry, Windows Mobile, and iPhone

I’m working on an ASP.NET website which targets desktop browsers. We want to enable an optional mobile view (e.g. http://m.sample.com) which will offer a few simple pages which will be mostly text. There will be not need for AJAX or even Javascript, and there’s no user input – it’s really just tables of text with a few links to navigate between the pages.