private void Save() { try { string Action = Globals.GetStringFromQueryString("Action"); AboutUs obj = new AboutUs(); int CateID = -1; string Title = txtTitle.Value.Trim(); string Content = fckContent.Value.Trim(); string ImageURL = Convert.ToString(Session["FileImageName"]); string ImageDesc = txtImageDesc.Value.Trim(); string Authors = txtAuthor.Value.Trim(); string Keyword = txtKeyword.Value; if (Action == "Edit") { int ArticleID = Globals.GetIntFromQueryString("ArticleID"); CateID = Globals.GetIntFromQueryString("CateID"); obj.UpdateArticleAboutUs(ArticleID, ddlLanguage.SelectedValue, Title, Content, ImageURL, ImageDesc, Authors, Keyword); } else { obj.InsertArticleAboutUs(Globals.AgentCatID, ddlLanguage.SelectedValue, Title, Content, ImageURL, ImageDesc, Authors, Keyword); } Session.Remove("FileImageName"); } catch { } }