Dropdownlist not showing previous value
<p>I have an asp.net dropdownlist control with autopostback false.
I have written js code to display confirm message while dropdown value changed.</p>

<pre><code>function ConfirmAbsent(ddlPresence) {
        if (ddlPresence != null) {
            var myValue = ddlPresence.options[ddlPresence.selectedIndex].text;
            var blnAbsent = confirm("This will mark as "+ myValue +". Please confirm clicking OK.");

            if (blnAbsent) {
                return true;
            }
            else {
                return false;
            }
        }
    }
</code></pre>

<p>And add this attribute to dropdownlist like below</p>

<pre><code>ddlUserPresence.Attributes.Add("onchange", "if (!ConfirmAbsent(" + ddlUserPresence.ClientID
                    + ")) return; else __doPostBack('"
                    + ddlUserPresence.UniqueID + "', '');");
</code></pre>

<p>When i click on ok button it postback the page working correctly, but when i click on cancel button it is not showing me the previous value instead showing the current value.</p>

<p>So when i click on cancel button it should show me the previous value.Please help.</p>
