Esempio n. 1
0
    public string GetCustomersByCountry(object context, string path)
    {
        IDictionary <string, object> contextDictionary = (IDictionary <string, object>)context;
        string country = ((string)contextDictionary["Value"]);

        DataTable customers = ToolTipWebService.DB_GetCustomersByCountry(country);

        if (customers.Rows.Count > 0)
        {
            return(ViewManager.RenderView(path + "Customers.ascx", customers));
        }
        else
        {
            return(ViewManager.RenderView(path + "NoCustomers.ascx", null));
        }
    }
Esempio n. 2
0
 public static DataTable DB_GetOrdersByCustomer(string customerID)
 {
     return(ToolTipWebService.DB_GetDataTable("SELECT * FROM [Orders] WHERE CustomerID=@id", customerID));
 }
Esempio n. 3
0
 public static DataTable DB_GetCustomersByCountry(string Country)
 {
     return(ToolTipWebService.DB_GetDataTable("SELECT * FROM [Customers] WHERE Country=@id", Country));
 }