public void discountCodeDetail()
 {
     try
     {
         string discountID = Request.QueryString["discountID"];
         if ((!string.IsNullOrEmpty(discountID.Trim())) && (!discountID.Trim().Equals("0")))
         {
             var data = OtherRepos.getDiscountCode(int.Parse(discountID));
             txt_availableNumber.Value = data.availableNumber;
             txt_discountCode.Value    = data.discountCode;
             txt_discountFee.Value     = data.discountFee;
             txt_expireDate.Value      = String.Format("{0:MM/dd/yyyy}", data.expireDate.Date);
         }
         else
         {
             Response.Redirect("DiscountCode.aspx");
         }
     }
     catch (Exception)
     {
         Response.Redirect("DiscountCode.aspx");
     }
 }