943,513 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 12967
  • ASP.NET RSS
Aug 2nd, 2005
0

about confirm message box

Expand Post »
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:
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ramareddy_dotne is offline Offline
15 posts
since May 2005
Aug 2nd, 2005
0

Re: about confirm message box

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

ASP.NET Syntax (Toggle Plain Text)
  1. if(confirm('Are you sure you wanna delete'))
  2. var A = window.location("Originalpage.aspx?delete=Yes");
  3. else var B = window.location("Originalpage.aspx?delete=No");

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

Hope it helps
Reputation Points: 11
Solved Threads: 6
Junior Poster
Letscode is offline Offline
175 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: URGENT! Loading Roles From ticket.UserData
Next Thread in ASP.NET Forum Timeline: download and upload





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC