Subscribe to
Posts
Comments

Archive for May, 2005

Normally if you were trying to sort a DataTable you would do see something like

DataTable table = retrieveTable();
DataView view = new DataView(table);
view.Sort = "Name";
datagrid1.DataSource = view;
datagrid1.DataBind();

Doing this works fine for UI cases, but if you need to get access to the sorted table you’ll want to do this.

DataTable unsortedTable = retrieveTable();
DataTable sortedTable = new DataTable();
foreach [...]

Here’s a link to the
MOD version of ‘(Is this the way to) Amarillo?’.
Full story over on the bbc.

Grocery Store Wars | Join the Organic Rebellion
Another fantastic animation.

Problem: I have an access 97 MDE file (compiled MDB) which uses an external data source (.DAT ?) on a network via linked tables. It has user security on it and I need to get the data out into SQL server. Because of the user security the upsizing wizard with Access 2000 cannot convert the [...]

In your ASPX page, add the following such that it renders in the top-right of the popup window

And add this code such that it renders in the bottom-left of the popup window

Then add the following Javascript to your page and make a call to resizeThisWindow().
// Default window dimensions to add to the size we ‘read’ [...]

Taken from this blog is a technique which will postback the form when you hit enter. If you use the script below, it will work in any browser (although bypassing any onClick code for the button specified).

function clickButton(e, buttonid)
{
var bt = document.getElementById(buttonid);
if (typeof bt == ‘object’)
{
try
{
if(navigator.appName.indexOf("Netscape")>(-1))
{
if (e.keyCode == 13)
{
bt.click();
return false;
}
}
if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
{
if (event.keyCode == [...]

Backup!

Socialanimal.com – the images at least – will be offair for a while until I get my server sorted out. I lost a hard drive last week which contains all the website, images, my email, contacts, etc. Until I get it fixed this blog is all you’ve got.
Al