in orders.aspx.cs
Code:
private void GenerateReport()
{
string sql = "select OrderNumber, OrderDate, IsNew from orders with (NOLOCK) where " + WhereClause() + DateClause() + " order by " + OrderByFields;
can i replace it with
HTML Code:
string sql = "select OrderNumber, OrderDate, IsNew from Orders INNER JOIN" +
"Orders_ShoppingCart ON Orders.OrderNumber = Orders_ShoppingCart.OrderNumber INNER JOIN" +
"Product ON Orders_ShoppingCart.ProductID = Product.ProductID INNER JOIN" +
"ProductManufacturer ON Orders_ShoppingCart.ProductID = ProductManufacturer.ProductID INNER JOIN" +
"Manufacturer ON ProductManufacturer.ManufacturerID = Manufacturer.ManufacturerID"
+ WhereClause() + DateClause() + " order by " + OrderByFields;
will this work?