coson
coson

Reputation: 8659

dropdownlist SelectedIndexChanged event with autopostback = false

Is it possible to handle dropdownlist SelectedIndexChanged event with AutoPostBack property = false?

Upvotes: 0

Views: 1546

Answers (2)

Icarus
Icarus

Reputation: 63956

Yes, it is possible, just add the handler for selected index changed and it will be called back when the form is posted again.

Upvotes: 0

Muhammad Akhtar
Muhammad Akhtar

Reputation: 52241

You can achieve it using JavaScript. e.g.

<script language="javascript" type="text/javascript">
    function doPostBack() {
        setTimeout("__doPostBack('yourControlClientID','')", 0);
    }
</script>

Upvotes: 1

Related Questions