コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!UpdatePaymentTypeController.checkIsUserPermittedToAccess())
     {
         userWarnLbl.Text  = "You cannot access this page!";
         logoutBtn.Visible = false;
         nameBox.Enabled   = false;
         updateBtn.Enabled = false;
     }
     else if (!IsPostBack)
     {
         int         id      = Convert.ToInt32(Request.QueryString["Id"]);
         PaymentType current = UpdatePaymentTypeController.requestPaymentTypeObject(id);
         nameBox.Text = current.PaymentTypeName;
     }
 }