I am filtering the data of an SQL data source by setting a WHERE clause parameter in this formatting [@a] and in the event of a combo box, I would to set the value to this parameter, the previous sql data source for a gridview
SqlDataSource2.SelectParameters.Clear();
SqlDataSource2.SelectParameters["@a"].DefaultValue = cid.ToString();
SqlDataSource2.DataBind();
I need to pass value to the WHERE parameter.
I choose the filtering parsed on non choice ( not form or control or profile or session ...)
This way gives me an error.
Is there any way to give a value for this parameter [@a]?