protected void btnmore_Click(object sender, EventArgs e) { try { Getimagedata _objdata = new Getimagedata(); //ScriptManager.RegisterStartupScript(this, this.GetType(), "print", "alert(" + _intstartval + ");", true); _intstartval = _intstartval + 75; prev.Visible = true; _objdata._intstartcnt = _intstartval; _objdata._strorientation = "horizontal"; var _data = _objdata.GeteventimageDatalist(); if (_data.Count > 0) { gettydata.DataSource = _data; gettydata.DataBind(); commonfn _objfn = new commonfn(); commonfn.setSession("token", _objdata._strtoken); commonfn.setSession("securetoken", _objdata._strsecuretoken); ltscript.Text = ""; } else { gettydata.DataSource = null; ltscript.Text = "Sorry no records found."; } UpdatePanel1.Update(); } catch (Exception ex) { CommonLib.ExceptionHandler.WriteLog(CommonLib.Sections.Client, "btnsearch_Click :", ex); ErrorLog.SaveErrorLog(_strSiteID, "Indexpage", "btnmore_Click", "btnmore_Click", ex.Message, _networkid.ToString()); } }
protected void btnsearch_Click(object sender, EventArgs e) { try { newsingleimagemgmt _objdata = new newsingleimagemgmt(); if (txtsearch.Text != "") { _objdata._strserachterm = txtsearch.Text.Trim(); } _intstartval = 1; prev.Visible = false; loadmore.Visible = true; //ScriptManager.RegisterStartupScript(this, this.GetType(), "print", "alert(" + _intstartval + ");", true); //Response.Write("_intstartval " + _intstartval+"</br>"); _objdata._intstartcnt = _intstartval; _objdata._strorientation = RDchkbox.SelectedValue; //new changes //var _data = _objdata.GetimageDatalist(); var _data = _objdata.GetimageDatalist_withdaterange(); if (_data.Count > 0) { gettydata.DataSource = _data; gettydata.DataBind(); commonfn _objfn = new commonfn(); commonfn.setSession("token", _objdata._strtoken); commonfn.setSession("securetoken", _objdata._strsecuretoken); ltscript.Text = ""; } else { gettydata.DataSource = null; ltscript.Text = "Sorry no records found."; } UpdatePanel1.Update(); } catch (Exception ex) { CommonLib.ExceptionHandler.WriteLog(CommonLib.Sections.Client, "btnsearch_Click :", ex); ErrorLog.SaveErrorLog(_strSiteID, "singleimage", "btnsearch_Click", "btnsearch_Click", ex.Message, _networkid.ToString()); } }