Add confirmation popup to dropdownlist in ASP.Net 2.0

Today I was faced with what seemed a relatively minor task of adding a confirmation to the action button associated with dropdownlist of choices.  The concept was to add a simple popup for only the Delete choice in the dropdownlist choices. The solution is simple but requires some Javascript.  Given I'm a pure ASP.Net 2.0 coder, this proved more of a challenge than I expected.  Here's the final solution: First you have to insert two small javascript functions in the top of the HTML section of your ASPX page. 1: <script type="text/javascript"> 2:...

Oct 28, 2010 READ MORE