protected void uiGridViewNews_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Editmails")
     {
         int id = Convert.ToInt32(e.CommandArgument.ToString());
         CurrentMail = id;
         DBLayer db = new DBLayer();
         DataSet ds = new DataSet();
         ds = db.GetNewsContent(id);
         if (ds.Tables[0].Rows.Count > 0)
         {
             uiTextBoxTitle.Text = ds.Tables[0].Rows[0]["Email"].ToString();
             uiTextBoxPosition.Text = ds.Tables[0].Rows[0]["Position"].ToString();
         }
         uiPanelCurrentNews.Visible = false;
         uiPanelCurrent.Visible = true;
     }
     else if (e.CommandName == "Deletemails")
     {
         DBLayer db = new DBLayer();
         db.DeleteBookingMails(Convert.ToInt32(e.CommandArgument.ToString()));
         BindData();
         uiPanelCurrentNews.Visible = true;
         uiPanelCurrent.Visible = false;
     }
 }