private void ViewNews(int Id)
        {
            AnnounceBSO announceBSO = new AnnounceBSO();
            Announce announce = announceBSO.GetAnnounceById(Id);
            ltlTitle.Text = announce.Title;
            LabelDate.Text = announce.PostDate.ToString("dd/MM/yyyy");// Convert.ToString(news.PostDate);
            ltlDescribe.Text = announce.ShortDescribe;
            FullDescirbe.Text = announce.FullDescribe;
            LabelAuthor.Text = announce.Author;

            if (announce.ImageThumb != "")
                ltlImageThumb.Text = @"<img src='" + ResolveUrl("~/") + "Upload/Announce/AnnounceThumb/" + announce.ImageThumb + "' align='left' class='border_image' width='250'  >";


        }
        private void initControl(int Id)
        {
            AdminBSO adminBSO = new AdminBSO();
            ETO.Admin admin = new ETO.Admin();
            if (Id > 0)
            {
                btn_add.Visible = false;
                btn_edit.Visible = true;
                try
                {
                    Announce announce = new Announce();
                    AnnounceBSO announceBSO = new AnnounceBSO();
                    announce = announceBSO.GetAnnounceById(Id);
                    hddAnnounceID.Value = Convert.ToString(announce.AnnounceID);

                    ddlCateAnnounce.SelectedValue = Convert.ToString(announce.CateAnnounceID);
                    txtTitle.Text = announce.Title;
                    txtRadShort.Html = announce.ShortDescribe;
                    txtRadFull.Html = announce.FullDescribe;
                    hddImageThumb.Value = announce.ImageThumb;
                    hddFileName.Value = announce.FileName;
                    txtAuthor.Text = announce.Author;
                    txtRadDate.SelectedDate = announce.PostDate;
                    hddRelationTotal.Value = Convert.ToString(announce.RelationTotal);
                    rdbStatus.SelectedValue = Convert.ToString(announce.Status);
                    rdbIshot.SelectedValue = Convert.ToString(announce.Ishot);
                    rdbIshome.SelectedValue = Convert.ToString(announce.Ishome);

                    hddCommentTotal.Value = Convert.ToString(announce.CommentTotal);
                    hddIsView.Value = Convert.ToString(announce.Isview);
                    hddCreateUserName.Value = announce.CreatedUserName;
                    hddApprovalUserName.Value = announce.ApprovalUserName;
                    hddApprovalDate.Value = Convert.ToString(announce.ApprovalDate);

                    rdbComment.SelectedValue = Convert.ToString(announce.IsComment);

                    admin = adminBSO.GetAdminById(Session["Admin_UserName"].ToString());

                    if (Session["Admin_UserName"].ToString().Equals("administrator") || adminBSO.CheckPermission(Session["Admin_UserName"].ToString(), "Approval"))
                    {
                        rdbApproval.SelectedValue = Convert.ToString(announce.IsApproval);
                        rdbApproval.Enabled = true;
                    }
                    else
                    {
                        rdbApproval.SelectedValue = Convert.ToString(announce.IsApproval);
                        rdbApproval.Enabled = false;
                    }




                }
                catch (Exception ex)
                {
                    clientview.Text = ex.Message.ToString();
                }
            }
            else
            {
                txtRadDate.SelectedDate = DateTime.Now;
                btn_add.Visible = true;
                btn_edit.Visible = false;

                if (Session["Admin_UserName"].ToString().Equals("administrator") || adminBSO.CheckPermission(Session["Admin_UserName"].ToString(), "Approval"))
                {

                    rdbApproval.Enabled = true;
                }
                else
                {

                    rdbApproval.Enabled = false;
                }
            }
        }