public HttpResponseBase ProductDetailsQuery() { string json = string.Empty; try { if (!string.IsNullOrEmpty(Request.Form["ProductId"])) { string product_id = Request.Form["ProductId"]; uint productid = 0; _productMgr = new ProductMgr(connectionString); ProductDetailsCustom product = new ProductDetailsCustom(); if (uint.TryParse(product_id, out productid)) { product = _productMgr.ProductDetail(new Product { Product_Id = productid }); } else { product = _productMgr.VendorProductDetail(new ProductTemp { Product_Id = product_id }); } //IE product.page_content_1 = product.page_content_1.Replace("\r\n", "<br/>"); product.page_content_2 = product.page_content_2.Replace("\r\n", "<br/>"); product.page_content_3 = product.page_content_3.Replace("\r\n", "<br/>"); //FireFox product.page_content_1 = product.page_content_1.Replace("\n", "<br/>"); product.page_content_2 = product.page_content_2.Replace("\n", "<br/>"); product.page_content_3 = product.page_content_3.Replace("\n", "<br/>"); json = "{success:true,data:" + JsonConvert.SerializeObject(product) + "}"; } } catch (Exception ex) { Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage(); logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message); logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name; log.Error(logMessage); json = "{success:false}"; } this.Response.Clear(); this.Response.Write(json); this.Response.End(); return this.Response; }