LinqDataSource question
Posted
by Abe Miessler
on Stack Overflow
See other posts from Stack Overflow
or by Abe Miessler
Published on 2010-04-08T21:47:16Z
Indexed on
2010/04/08
21:53 UTC
Read the original article
Hit count: 423
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>
.
.
.
© Stack Overflow or respective owner