//Browsing the last protected void LB_Previous_Click(object sender, EventArgs e) { HttpCookieCollection objHttpCookieCollection = Request.Cookies; HttpCookie objHttpCookie = objHttpCookieCollection.Get("MatCookie5639sb"); string strMatrimonialID = Crypto.DeCrypto(objHttpCookie.Values["MatrimonialID"]); LB_Next_1.Enabled = true; LB_Next_2.Enabled = true; //Getting values int intStart = int.Parse(HF_Start.Value); int intCount = int.Parse(HF_Count.Value); intStart -= 10; // End of record? if (intStart < 10) { LB_Previous_1.Enabled = false; LB_Previous_2.Enabled = false; } //Update Start Pointer HF_Start.Value = (intStart).ToString(); //Getting SSList LoadList(MatrimonialProfileManager.GetBookMarkList(intStart, strMatrimonialID)); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // Adding meta Discription HtmlMeta objMeta = new HtmlMeta(); objMeta.Name = "Description"; objMeta.Content = WebConfig.GetValues("MetaDiscription"); this.Header.Controls.Add(objMeta); // Adding meta KeyWords objMeta = new HtmlMeta(); objMeta.Name = "keywords"; objMeta.Content = WebConfig.GetValues("MetaKeword"); this.Header.Controls.Add(objMeta); HttpCookieCollection objHttpCookieCollection = Request.Cookies; HttpCookie objHttpCookie = objHttpCookieCollection.Get("MatCookie5639sb"); string strMatrimonialID = Crypto.DeCrypto(objHttpCookie.Values["MatrimonialID"]); int intCount = MatrimonialProfileManager.GetBookMarkCount(strMatrimonialID); if (intCount > 0) { if (intCount < 10) { LB_Next_1.Enabled = false; LB_Next_2.Enabled = false; } HF_Start.Value = "0"; HF_Count.Value = (intCount).ToString(); LoadList(MatrimonialProfileManager.GetBookMarkList(0, strMatrimonialID)); } } }