コード例 #1
0
 private void MasterDelFunc(string strKey, string strKeyOther, ref PccErrMsg myLabel)
 {
     //設定抬頭 20040607
     /*for(int i = 0 ; i < Header1.Controls.Count ; i++)
     {
         if (Header1.Controls[i].ID == "PccTitle")
         {
             Label mylblTitle = (Label)(Header1.Controls[i]);
             mylblTitle.Text = "刪除應用程式";
         }
     }*/
     PccErrMsg myErrMsg = new PccErrMsg(Server.MapPath(Session["PageLayer"] + "XmlDoc"), Session["CodePage"].ToString(), "Error");
     plDelete.Visible = true;
     plMain.Visible = false;
     string[] strParameters = { "<b>" + strKeyOther + "</b>" };
     lblDelMsg.Text = myErrMsg.GetErrMsgWithParam("msg0044", strParameters);
     btnDelOK.Text = myLabel.GetErrMsg("btnOK");
     btnDelCancel.Text = myLabel.GetErrMsg("btnCancel");
     ViewState["Flag"] = "MasterDelFunc";
 }
コード例 #2
0
    private void MasterDelFunc(string strKey, string strKeyOther)
    {
        plDelete.Visible = true;
        plMain.Visible = false;
        PccErrMsg myLabel = new PccErrMsg(Server.MapPath(Session["PageLayer"] + "XmlDoc"), Session["CodePage"].ToString(), "Label");
        PccErrMsg myErrMsg = new PccErrMsg(Server.MapPath(Session["PageLayer"] + "XmlDoc"), Session["CodePage"].ToString(), "Error");

        string[] strParameters = { "<b>" + strKeyOther + "</b>" };
        lblDelMsg.Text = myErrMsg.GetErrMsgWithParam("msg0039", strParameters);
        btnDelOK.Text = myLabel.GetErrMsg("btnOK");
        btnDelCancel.Text = myLabel.GetErrMsg("btnCancel");
        ViewState["Flag"] = "MasterDelFunc";
    }