protected void Page_Load(object sender, EventArgs e) { if (bll.getimagesinfo() == null) { noresults.Text = "No Books Found"; noresults.Visible = true; } else { noresults.Visible = false; datlis1.DataSource = bll.getimagesinfo(); datlis1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (bll.getimagesinfo() == null) { Response.Write("Error Loading Images"); } else { listview1.DataSource = bll.sortbyasc(); listview1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (Session["User"] == null) { Response.Redirect("../Login.aspx"); } else { if (bll.getimagesinfo() != null) { noresults.Visible = false; datlis1.DataSource = bll.getimagesinfo(); datlis1.DataBind(); } else { noresults.Text = "No Books Found"; noresults.Visible = true; } } }
protected void Page_Load(object sender, EventArgs e) { if (Session["Admin"] == null) { Response.Redirect("../Adminlogin.aspx"); } else { if (bll.getimagesinfo() == null) { Response.Write("Error Loading Images"); noresults.Visible = false; } else { noresults.Visible = false; datlis1.DataSource = bll.getimagesinfo(); datlis1.DataBind(); } } }