in particolare

<aspropDownList ID="ddlComando" runat="server"
EnableViewState="false"
AppendDataBoundItems="True"
DataSourceID="sqlDipartimenti"
DataTextField="descr" DataValueField="id"
SelectedValue='<%# Bind("idComando") %>' Width="155px">
<asp:ListItem Selected="True" Value="-1">Scegli il dipartimento</asp:ListItem>
</aspropDownList>

idComando ha valore null ogni tanto. per cui mi lancia un alert