hi im trying to configure an odbcdatasource in visual studio, I have the connection string in my web.config file and I can see it but im trying to configure the datasource for a custom sql query string so I can query to mysql
SELECT FirstName, SecondName FROM User WHERE FirstName LIKE '%' + ? + '%'
and then set the params for the odbcdatasource to
<SelectParameters>
<asp:QueryStringParameter Name="FirstName" QueryStringField="TextBox1.Text"
Type="String" />
Is this correct?
I dont think this is correct, I have never used it like this atleast.
a Querystring is a part of a url, meaning if your url would be:
home.aspx?firstname=Garrith
you would have the following:
If you are looking to use it from a textbox id, I would suggest doing it on codebehind,
and make something like:
Lauw