using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using ButterfieldGardens.Web; public partial class inventory_index : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Navigation objNav = new Navigation(); header.InnerHtml = objNav.GetHeader(); nav.InnerHtml = objNav.GetMainNavSideMenu(); slideshow2.InnerHtml = objNav.GetRandomSlideShowImage(); subnav.InnerHtml = objNav.GetSubNavUnderMainImage(); footer.InnerHtml = objNav.GetFooter(true, false); Load_Inventory(); Page.MaintainScrollPositionOnPostBack = true; } public void Load_Inventory() { cInventoryDAO objInvDAO = new cInventoryDAO(); cInventoryList objInvList = objInvDAO.GetInventoryList(); int nInvCount = objInvList.count; //if there are no inventory items, tell the user and stop processing code if (nInvCount.Equals(0)) { Literal lit = new Literal(); lit.Text = "
" + invDescrip; litInv.Text += "... more
"; litInv.Text += "