protected void btnupload_Click(object sender, EventArgs e)
        {
            try
            {

                string content = Editor1.Content;
                string actcontent1 = content.Replace("'", "");

                news_GetallDataTableAdapter news_insert = new news_GetallDataTableAdapter();
                news_insert.Insert(txtdocname.Text, actcontent1, txtyear.Text, DateTime.Now, txtdesc.Text);

                news_GetDescriptionTableAdapter desc = new news_GetDescriptionTableAdapter();
                DataTable dtDesc = desc.GetDescription();
                if (dtDesc.Rows.Count > 0)
                {
                    GridView gdvNews = (GridView)FindControlRecursive(Page, "gdvNews");
                    gdvNews.DataSource = dtDesc;
                    gdvNews.DataBind();
                    Response.Write("<script>alert('News Uploded Successfully')</script>");
                }
            }
            catch (Exception ex)
            {

                lblstatus.Text = ex.Message;
            }
        }
 protected void btnupload_Click(object sender, EventArgs e)
 {
     news_GetallDataTableAdapter updatenewsdesc = new news_GetallDataTableAdapter();
     updatenewsdesc.Update(ddldoc.SelectedValue, ddlyear.SelectedValue, Editor1.Content).ToString();
     news_GetDescriptionTableAdapter desc = new news_GetDescriptionTableAdapter();
     DataTable dtDesc = desc.GetDescription();
     GridView gdvNews = (GridView)FindControlRecursive(Page, "gdvNews");
     gdvNews.DataSource = dtDesc;
     gdvNews.DataBind();
 }