コード例 #1
0
 public void SetView()
 {
     if (Request.QueryString["a"] != null)
     {
         if (Request.QueryString["a"] == "a")
         {
             pageName.InnerHtml       = "Add Broker";
             LblBrokerID.Text         = "0";
             PnlBrokerDetails.Visible = false;
             PnlAddBroker.Visible     = true;
             btnSave.Visible          = true;
             filter.Visible           = false;
             TxtBrokerCode.Focus();
             DDLCity.Enabled = false;
         }
         else
         if (Request.QueryString["a"] == "v")
         {
             pageName.InnerHtml       = "View / Edit Broker";
             PnlBrokerDetails.Visible = true;
             PnlAddBroker.Visible     = false;
             btnSave.Visible          = false;
             filter.Visible           = true;
         }
     }
 }
コード例 #2
0
 protected void TxtBrokerCode_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string BrokerCode = TxtBrokerCode.Text.Trim().Split(Constants.splitseperator)[0].ToString().Trim();
         bool   Auth       = Masters.GetCodeValidation("Broker", BrokerCode);
         if (Auth)
         {
             MessageBox("Broker Code Already Exist");
             TxtBrokerCode.Text = "";
             TxtBrokerCode.Focus();
         }
         else
         {
             TxtBrkRate.Focus();
         }
     }
     catch
     {
     }
 }