ASP.Net - Confirmation Dialog

It is important to ask the user to confirm whether they want to delete an item incase the delete button was pressed by accident.

This is very easy to do in ASP.Net with JavaScript.

JavaScript confirmation dialog

Just use the code below:

.aspx
function confirmDelete()
{
	return confirm("Are you sure?");
}
C# Code Behind
btnDelete.Attributes.Add("onclick","return confirmDelete()");

It’s that simple. Now you have a fancy new confirmation dialog.

Safari on Windows, Finally!!!

I saw thias article on Ajaxian and just had to tell you about it. This is exciting. Finally all the major browsers can be tested on one platform (if your a Windows user that is).

Steve Jobs gave the keynote at WWDC this morning, where he announced a couple of items that affect Ajax developers.

Safari for Windows

Apple is releasing the public beta of Safari for Windows today. Steve gave demos of Safari, claiming that it screams:

* ibench html performance: IE 4.6 sec, FF 3.7, Safari 2.2 seconds
* javascript: IE 2.4 sec, FF 1.6, Safari 0.9 seconds

WebKit is getting a real solid foundation on Windows with Apple joining Adobe on the Windows port. I bet Adobe is happy.