12 Jul
2004

Rent your own Microsofty

Now don’t get me wrong, I am a Microsoft developer to the core. I embrace their new developer focused initiatives and think .Net is the greatest thing since, well, Java. With all of that, I still have to ask why in the world they have to make their product offerings so complex as to need […]

Read More
12 Jul
2004

asp:DataGrid Client-side Confirm Delete

I use this helpful article to come up with a nice client-side delete when deleting a row from an ASP.Net datagrid. http://authors.aspalliance.com/aldotnet/examples/cd.aspx My resulting code: private void _dgProjectTypes_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { switch( e.Item.ItemType ) { case ListItemType.Item: case ListItemType.AlternatingItem: case ListItemType.EditItem: TableCell myTableCell = e.Item.Cells[2]; Button myDeleteButton = (Button)myTableCell.Controls[0]; myDeleteButton.Attributes.Add(@”onclick”, @”return confirm(‘Are you sure […]

Read More