OneInaMillionOIM
New Member
I have the following drop down list in a user control, which is databound from code behind and works perfect.\[code\]<asp
ropDownList ID="dropDownList_Operators" runat="server" DataTextField="Text" DataValueField="Value" />\[/code\]Now I want to add onchange to it, like so, to set visibility on some div tags based on selected value.\[code\]<asp
ropDownList ID="dropDownList_Operators" runat="server" DataTextField="Text" DataValueField="Value" onchange="SelectionChanged()" />\[/code\]And here the fun starts. The page does a postback. So I tried adding \[code\]AutoPostBack="False"\[/code\]. Same deal, a postback is raised when the selection changes.So, since the page is complex, having a master page and several .js links, I thought that \[code\]__doPostBack()\[/code\] was called in one of those, but it isn't.I've tried disabling \[code\]CausesValidation\[/code\] and \[code\]ViewState\[/code\]. ViewState just to try it. I've also tried \[code\]AutoEventWireup="false"\[/code\] in the control directive.I've also tried \[code\]dropDownList_Operators.Attributes.Add("onchange", "SelectionChanged()");\[/code\] in code behind, but that's not working either.I'm running out of ideas..

