Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Sienna Hughes   on Oct 08 In Asp.net Category.

  
Question Answered By: Myrna Brown   on Oct 08

This is very easy to accomplish
myButton.Attributes["onclick"] = "return confirm('Are you sure you want to save  the data?')";

This will cancel the click event if you press no. Pressing yes will potback the page.

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Add javascript to a button Or get search suggestion and latest updates.


Tagged: