change SelectCommand of an SQLDataSource
To cut a long story short:
this: "SELECT * FROM Products" is my defalt select command of SqlDataSource1.
I write code like this: SqlDataSource1.SelectCommand = "SELECT ItemID FROM Products";
It really works, but only until page's refreshed.
So, what can I do to make the change of a select command constant?
, thanks.
|