Ah, I thought you were using an EntityDataSource control. In that case, the correct link is:
http://msdn.microsoft.com/en-us/libr...selecting.aspx
The "Parameter" type maps to None in the drop down list. When you set up a new parameter and choose None, you get this in the Markup:
<asp:Parameter Name="ColumnName" Type="Int32" />
where ColumnName is the name of the column you associated with the Where clause.
You can then do something like this in the Code Behind (C#):
Code:
protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
{
e.Command.Parameters["@ColumnName"].Value = YourCalculatedValue;
}
Hope this helps.
Groeten,
Imar