I would like expert advice about what actually occurs when a sql or object select parameter is given BOTH a DefaultValue AND ControlParameter reference in the aspx code.
In example below, the ControlParameter is a hidden-control that gets set in the form-load (say to a value of 50). QUESTION1: Which value (control-value 50 or default-value 99) has precedence when the select operation is executed?
Q2: Is it poor coding to supply a DefaultValue for a ControlParameter?
Sample from the aspx code:
<SelectParameters>
<asp:ControlParameter ControlID="hidUID_DIVISION" Name="UID_DIVISION"
PropertyName="Value" Type="Int32" DefaultValue="99" />
Thanks.