<p>I have a dropdownlist with the autopostback set to true. I want the
user to confirm if they really want to change the value,
which on post back fires a server side event (selectedindexchanged).</p>

<p>I have tried adding an onchange attribute "return confirm('Please click OK to change. Otherwise click CANCEL?';") but it will not postback regardless of the confirm
result and the value in the list does not revert back if cancel
selected. </p>

<p>When I remove the onchange attribute from the DropdownList tag, the page does postback. It does not when the onchange attribute is added. Do I still need to wire the event handler (I'm on C# .Net 2.0 ).</p>

<p>Any leads will be helpful.</p>

<p>Thanks!</p>

Make sure your event is wired:
```
```
dropDown.SelectedIndexChanged += new EventHandler(dropDown_SelectedIndexChanged);
```
```
You can also apply a client-side attribute to return the confirmation. Set the index accordingly if cancelled.
```
```
dropDown.Attributes.Add("onchange", "javascript: return confirm('confirmation msg')");
```
```