I'm trying to set the value of the sqldatasource
's selectcommand
parameter @ClientID
as in the code below, but it's not working out.
My code:
Dim strCommand = "SELECT caller_id, phone, name, email FROM callers WHERE client_id=@ClientID"
SqlDataSource2.SelectCommand = strCommand
SqlDataSource2.SelectParameters.Add("@ClientID", iClientID)
What am I doing wrong?