In my application I allow my user to delete a transaction at extreme cases
only so I want to a confirmation msg from user whether he is sure to delete the transaction(Are you sure? yes or no).I know about "confirm" msgbox but I dont know how to use it please help me in this regard.

I want vbscript code :eek:

I dont have a VB script code.
You can do that in Javascript.Put this inside the Button Onclick event.

if(confirm('Are you sure you wanna delete'))
		var A = window.location("Originalpage.aspx?delete=Yes");
		else  var B = window.location("Originalpage.aspx?delete=No");

You can use a Query String and invoke a delete function.

Hope it helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.