protected void SetDemoLink(string productType) { Div1.Visible = true; OnlineOrderBo onlineOrderBo = new OnlineOrderBo(); string assetCategory = String.Empty; string innerHtml = String.Empty; DataTable dt = new DataTable(); switch (productType) { case "MF": assetCategory = "MF"; break; case "NCD": assetCategory = "FI"; break; case "IPO": assetCategory = "IP"; break; } dt = onlineOrderBo.GetAdvertisementData(assetCategory, "Demo"); //Page.ClientScript.RegisterStartupScript(this.GetType(), "SetDemo", @"window.open('ReferenceFiles/HelpVideo.htm?Link=" + dt.Rows[0][0].ToString() + "', 'newwindow', 'width=655, height=520'); ", true); if (dt.Rows.Count > 0) { Repeater1.DataSource = dt; Repeater1.DataBind(); } //lnkDemo.OnClientClick = @"window.open('ReferenceFiles/HelpVideo.htm?Link=" + dt.Rows[0][0].ToString() + "', 'newwindow', 'width=655, height=520'); "; }
protected void SetScroller(string productType) { OnlineOrderBo onlineOrderBo = new OnlineOrderBo(); string assetCategory = String.Empty; switch (productType) { case "MF": assetCategory = "MF"; break; case "NCD": assetCategory = "FI"; break; case "IPO": assetCategory = "IP"; break; } string innerHtml = String.Empty; DataTable dt = new DataTable(); dt = onlineOrderBo.GetAdvertisementData(assetCategory, "Scroll"); dlScroller.RepeatColumns = dt.Rows.Count; dlScroller.DataSource = dt; dlScroller.DataBind(); //innerHtml = @"<marquee style=""font-family: Arial;font-size: 14px;"">"; //foreach (DataRow dr in dt.Rows) //{ // innerHtml += string.Format(@"{0} <b>|</b> ", dr["PUHD_HelpDetails"].ToString()); //} //innerHtml += "</marquee>"; //Label1.Text = innerHtml; }
protected void SetFAQLink(string productType) { Div3.Visible = true; OnlineOrderBo onlineOrderBo = new OnlineOrderBo(); string assetCategory = String.Empty; DataTable dt = new DataTable(); switch (productType) { case "MF": assetCategory = "MF"; break; case "NCD": assetCategory = "FI"; break; case "IPO": assetCategory = "IP"; break; } dt = onlineOrderBo.GetAdvertisementData(assetCategory, "FAQ"); string path = ConfigurationManager.AppSettings["BANNER_IMAGE_PATH"].ToString(); //Response.Redirect(path + dt.Rows[0][0].ToString()); if (dt.Rows.Count > 0) { Repeater2.DataSource = dt; Repeater2.DataBind(); } //lnkFAQ.OnClientClick = @"window.open('" + path.Replace("~", "..") + dt.Rows[0][0].ToString() + "','_blank'); "; }