Ejemplo n.º 1
0
 public void campaign_delete(int ID)
 {
     campaign.Delete(ID);
     Insert_campaign_GridView.DataBind();
     Update_campaign_GridView.DataBind();
     Delete_campaign_GridView.DataBind();
 }
Ejemplo n.º 2
0
 public campaign campaign_insert()
 {
     campaign.campaign_name       = Insert_campaign_name_txt.Text;
     campaign.campaign_start_date = Convert.ToDateTime(Insert_campaign_start_date_txt.Text);
     campaign.campaign_end_date   = Convert.ToDateTime(Insert_campaign_end_date_txt.Text);
     campaign = campaign.Insert(campaign);
     Insert_campaign_GridView.DataBind();
     Update_campaign_GridView.DataBind();
     Delete_campaign_GridView.DataBind();
     return(campaign);
 }
Ejemplo n.º 3
0
 public campaign campaign_update(int ID)
 {
     campaign                     = campaign.Select(ID);
     campaign.campaign_id         = Convert.ToInt32(Update_campaign_id_txt.Text);
     campaign.campaign_name       = Update_campaign_name_txt.Text;
     campaign.campaign_start_date = Convert.ToDateTime(Update_campaign_start_date_txt.Text);
     campaign.campaign_end_date   = Convert.ToDateTime(Update_campaign_end_date_txt.Text);
     campaign.Update(campaign);
     Insert_campaign_GridView.DataBind();
     Update_campaign_GridView.DataBind();
     Delete_campaign_GridView.DataBind();
     return(campaign);
 }