Reputation: 2427
I realised a Parameter object does not have a Value property, so how do you assign a value to a parameter?
Upvotes: 0
Views: 1073
Reputation: 14418
You use the DefaultValue property, like so:
edsGrantsList.WhereParameters["FileToken"].DefaultValue = txtToken.Text
In this example, my EntityDataSource is called edsGrantsList and it has a where parameter that is defined like this:
<WhereParameters>
<asp:Parameter Name="FileToken" Type="String" DefaultValue="" ConvertEmptyStringToNull="true" />
</WhereParameters>
Upvotes: 2