How can i set sql parameters for an sqlDatasource in the code behind? I am trying like this:
int id=1; SqlDataSource1.SelectCommand = \"SELECT * FROM categ W
You can update the value by:
SqlDataSourceArticole.SelectParameters["id"].DefaultValue = id.ToString();
Using the default value can work in this case.
HTH.