protected void Page_Load(object sender, EventArgs e) { string UserAgent = Request.UserAgent; if (!Page.IsPostBack) { //tnMostVisited.ShowLatestTextNews(100); try { BOLNews NewsBOL = new BOLNews(); Keyword = Request["Keyword"]; if (string.IsNullOrEmpty(Keyword)) { NewsList1.ShowPicNews(); } //else //NewsList1.SearchNews(Keyword); rptKhabardaanPicNews.Visible = true; rptKhabardaanPicNews.DataSource = NewsBOL.GetRandPicNews(4); rptKhabardaanPicNews.DataBind(); } catch (Exception err) { BOLErrorLogs ErrorLogsBOL = new BOLErrorLogs(); ErrorLogsBOL.Insert(err.Message, DateTime.Now, Request.Url.AbsolutePath, "News_Default::Load"); } } }