protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.IsSecureConnection)
     {
         // Page only accessible by admin
         if (Session["LoginStatus"].Equals("Admin"))
         {
             if (!IsPostBack)
             {
                 lsvPostage.DataSource = BLShipping.getShippingTable();
                 lsvPostage.DataBind();
             }
         }
         else
         {
             Response.Redirect("~/UL/ErrorPage/5");
         }
     }
     else
     {
         // Make connection secure if it isn't already
         string url = ConfigurationManager.AppSettings["SecurePath"] + "AdminPostageOptions";
         Response.Redirect(url);
     }
 }
        protected void cbxActive_CheckedChanged(object sender, EventArgs e)
        {
            ListViewItem item  = (sender as CheckBox).NamingContainer as ListViewItem;
            int          index = Convert.ToInt32((item.FindControl("lblShipID") as Label).Text);

            BLShipping.toggleActive(index);
            lsvPostage.DataSource = BLShipping.getShippingTable();
            lsvPostage.DataBind();
        }