Tenho o seguinte código:
(...)
<script type="text/javascript">
function selectedChange(obj)
{
var sValue = obj.options[obj.selectedIndex].value;
window.location = "default.aspx?ID=" + sValue;
return false;
}
</script>
(...)
<asp:DropDownList runat="server" OnSelectedIndexChanged="selectedChange(this)" id="ConcessionariosDrop" Width="190px" Height="16px" DataSourceID="CSource" DataTextField="Title" DataValueField="Title" AutoPostBack="True">
</asp:DropDownList>
Mas depois quando actualizo a página para testar dá o erro:
"An error occurred during the processing of . The event handler 'OnSelectedIndexChanged' is not allowed in this page."
Porque?
Estou a usar Windows SharePoint Server 2007 e Windows SharePoint Designer 2007.
Obrigado!

