954,174 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

about confirm message box

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:

ramareddy_dotne
Newbie Poster
15 posts since May 2005
Reputation Points: 10
Solved Threads: 0
 

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

Letscode
Junior Poster
175 posts since Feb 2005
Reputation Points: 11
Solved Threads: 6
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You