LinqDataSource question
- by Abe Miessler
Is it legal to define a default value for a parameter the way I am in the code below? It keeps throwing an "Input string was not in a correct format." error for me.
Is there a different way I should be doing this?
<asp:LinqDataSource ID="lds_numbers" runat="server" ContextTypeName="nrm.prop.myDataContext"
TableName="Sources" Where="myNumber== @myNumber" EnableDelete="True"
EnableInsert="True" EnableUpdate="True">
<WhereParameters>
<asp:Parameter DefaultValue='<%= this.StateItems["myNumber"] %>' Name="myNumber" Type="Int32" />
</WhereParameters>
.
.
.