Example #1
0
        protected void CommandBtn_Click(Object sender, CommandEventArgs e)
        {
            switch (e.CommandName)
            {
            case "Update":
                DateClaimBox.Text = DateClaimBox.Text + " " + DateTime.Now.ToLongTimeString();;
                ClaimObjectDataSource.Update();
                InsertButton.Visible = true;
                DateClaimBox.Text    = DateTime.Now.Date.ToString("dd.MM.yyyy");
                break;

            case "Insert":
                DateClaimBox.Text = DateClaimBox.Text + " " + DateTime.Now.ToLongTimeString();;
                ClaimObjectDataSource.Insert();
                DateClaimBox.Text = DateTime.Now.Date.ToString("dd.MM.yyyy");
                break;

            case "Delete":
                ClaimObjectDataSource.Delete();
                break;

            case "VisibleButoonAdd":
                Msg.Text = "Command name not recogized.";
                break;

            default:
                Msg.Text = "Command name not recogized.";
                break;
            }
        }
Example #2
0
        protected void CommandBtn_Click(Object sender, CommandEventArgs e)
        {
            switch (e.CommandName)
            {
            case "Update":
                ClaimObjectDataSource.Update();
                break;

            case "Insert":
                ClaimObjectDataSource.Insert();
                break;

            case "Delete":
                ClaimObjectDataSource.Delete();
                break;

            case "VisibleButoonAdd":
                Msg.Text = "Command name not recogized.";
                break;

            default:
                Msg.Text = "Command name not recogized.";
                break;
            }
        }
Example #3
0
 protected void CommandBtn_Click1(Object sender, EventArgs e)
 {
     ClaimObjectDataSource.Update();
 }