Jeff7181
Lifer
What's wrong with my LIKE operator?
@customer_name is input from a text box
If I enter "Jeff" in the text box, and there's a record with the tblCutomer.customer_name of Jeff7181, it won't return that as a match.
(sorry if it's difficult to read... apparently code doesn't preserve formatting... I edited it to remove aliases so it's easier to read)
Updated the topic now since the problem with LIKE isn't a problem anymore.
Here's my current issue...
It may just be a syntax problem, but I can't make the data grid use my built SQL query in the data source configuration to populate the data grid with the results of the query. Right now I'm dealing with this code for the data source...
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:copilot_joblogConnectionString2 %>"
SelectCommand="SELECT * FROM [tblCustomer]"></asp:SqlDataSource>
What I'm struggling with is the SelectCommand portion... instead of "SELECT * FROM [tblCustomer]" I want to use the built SQL string I posted above, but it needs to pull that either from a variable or the invisible label I've put the SQL string in and I don't know how to make it do that, everything I've tried has resulted in an exception or error of some sort. I can't count how many exceptions I've seen while working on this, lol.
@customer_name is input from a text box
If I enter "Jeff" in the text box, and there's a record with the tblCutomer.customer_name of Jeff7181, it won't return that as a match.
(sorry if it's difficult to read... apparently code doesn't preserve formatting... I edited it to remove aliases so it's easier to read)
Updated the topic now since the problem with LIKE isn't a problem anymore.
Here's my current issue...
It may just be a syntax problem, but I can't make the data grid use my built SQL query in the data source configuration to populate the data grid with the results of the query. Right now I'm dealing with this code for the data source...
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:copilot_joblogConnectionString2 %>"
SelectCommand="SELECT * FROM [tblCustomer]"></asp:SqlDataSource>
What I'm struggling with is the SelectCommand portion... instead of "SELECT * FROM [tblCustomer]" I want to use the built SQL string I posted above, but it needs to pull that either from a variable or the invisible label I've put the SQL string in and I don't know how to make it do that, everything I've tried has resulted in an exception or error of some sort. I can't count how many exceptions I've seen while working on this, lol.