K
Krij
Can anybody tell me about this:
conn.ConnectionString = "SELECT [Customernr], [Customername],
[OrderID], [Orderdate], [Itemname], [Ordersum], [Orderdiscount],
[Orderprice], [Orderamount] " + "\n" +
"WHERE Customernr = "' + <%txtCustnr.Text %> + '" FROM
[CustomerOrderHistory] ORDER BY [Orderdate]";
So what I try to obtain is getting a value from a textbox: txtCustnr.
The code is C# in an ASP 2.0 application
But this syntax drives me mad.
Any tip?
conn.ConnectionString = "SELECT [Customernr], [Customername],
[OrderID], [Orderdate], [Itemname], [Ordersum], [Orderdiscount],
[Orderprice], [Orderamount] " + "\n" +
"WHERE Customernr = "' + <%txtCustnr.Text %> + '" FROM
[CustomerOrderHistory] ORDER BY [Orderdate]";
So what I try to obtain is getting a value from a textbox: txtCustnr.
The code is C# in an ASP 2.0 application
But this syntax drives me mad.
Any tip?