#region EventHandler : productsListGridView_DataBind
protected void productsListGridView_DataBind(object sender, EventArgs e)
{
int intClientID = -1;
//if (Request.Cookies["ClientID"] != null && Request.Cookies["ClientID"].Value != "")
//{
// intClientID = Int32.Parse(Request.Cookies["ClientID"].Value);
//}
Response.Write(intClientID);
DataTable dtProducts = new DataTable();
//dtProducts = ebayService.Import_GetClientProducts(intClientID);
try
{
if (dtProducts.Rows.Count > 0)
{
//DataView dvProducts = new DataView(dtProducts);
//productsListGridView.DataSource = dvProducts;
//productsListGridView.DataBind();
}
else
{
productsListGridView.DataSource = null;
productsListGridView.DataBind();
}
}
catch (Exception ex)
{
Response.Write(ex.Message + ex.StackTrace);
}
}
#endregion EventHandler : searchCarrierDropDownList_DataBinding
|