I am using the SqlDataSource with sql query to provide the datasource for DataGrid. Using general query or stored procedure is fine. However, can I used the client-side variable, for example sessionStorage or javascript variable, in the query "where statement". When I using the SqlDataSource UI wizard, I found the "where statement" can use the data from control, cookie, form, profile and so on. However, most of them are in the server side / code behind. ( I try the client side cookie, in vain. )