protected void GetBanerImage(int BanerID) { StoreFront ObjStoreFront = new StoreFront(); DataSet ds = new DataSet(); ds = ObjStoreFront.GetBanerImage(BanerID); if (ds.Tables[0].Rows.Count > 0) { if (ds.Tables[0].Rows[0]["ImageName"].ToString() != "") { ImgService.ImageUrl = Session["HomePath"] + "StoreData/Baner/" + ds.Tables[0].Rows[0]["ImageName"].ToString(); ViewState["ImageName"] = ds.Tables[0].Rows[0]["ImageName"].ToString(); } else { ImgService.ImageUrl = Session["HomePath"] + "StoreData/Baner/Not.jpg"; } } else { } }