. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 87.98.249.37 / Your IP : 216.73.216.208 [ Web Server : Microsoft-IIS/10.0 System : Windows NT NS3076740 10.0 build 17763 (Windows Server 2019) AMD64 User : IWPD_292(growel19p) ( 0) PHP Version : 8.3.12 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/growel.com/httpdocs/ |
Upload File : |
using GrowelBLL.Services;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
namespace GrowelWeb
{
public partial class GetLandingPage : System.Web.UI.Page
{
public string page = "";
public string section = "";
public string control = "";
public string cover = "";
public string schemajs = "";
public string pagenm = "";
public string pgurl = "";
public string pg_title = "";
public string pg_body = "";
public string siteurl = "";
protected void Page_Load(object sender, EventArgs e)
{
siteurl = clsComman.value("SiteUrl");
page = Request.QueryString["landingpage"].ToString();
if (page.ToLower().Contains("jpg") || page.ToLower().Contains("png"))
{
return;
}
BindPage();
//HtmlAnchor c = (HtmlAnchor)this.Master.FindControl("lnk" + section);
}
public void BindPage()
{
try
{
AdminService adminService = new AdminService();
DataSet ds = new DataSet();
ds = adminService.GetPageDetails(page);
if (ds.Tables[0].Rows.Count == 0)
return;
section = ds.Tables[0].Rows[0]["section"].ToString();
this.pg_title = ds.Tables[0].Rows[0]["Page_Title"].ToString();
this.pg_body = ds.Tables[0].Rows[0]["Page_Content"].ToString();
this.Title = ds.Tables[0].Rows[0]["meta_title"].ToString();
HtmlMeta keymeta = new HtmlMeta();
keymeta.Name = "keywords";
keymeta.Content = ds.Tables[0].Rows[0]["meta_keywords"].ToString();
HtmlMeta descmeta = new HtmlMeta();
descmeta.Name = "description";
descmeta.Content = ds.Tables[0].Rows[0]["meta_description"].ToString();
this.Master.FindControl("head").Controls.Add(keymeta);
this.Master.FindControl("head").Controls.Add(descmeta);
cover = ds.Tables[0].Rows[0]["cover"].ToString();
pagenm = Request.QueryString["landingpage"].ToString();
if (pagenm == "Corporate Office")
{
schemajs = "<script type=\"application/ld+json\"> {\"@context\" : \"http://schema.org\",\"@type\" : \"Step 1: Choose a Business Type\", \"address\" : { \"@type\": \"PostalAddress\", \"addressLocality\": \"Mumbai\", \"addressRegion\": \"Maharashtra\", \"postalCode\": \"400033\", \"streetAddress\": \"1310/2b new hind mill compound, Godapdev Road, Near Cotton Green station, Byculla \" }, \"name\":\"Spinthiras Media\", \"url\":\"http://www.spinthirasmedia.com/\", \"email\":\"sos@spinthirasmedia.com\",\"telephone\":\"07738766285\" } </script>";
}
//try
//{
// DataSet ds1 = adminService.GetPageControls(page);
// if (ds1.Tables[0].Rows.Count == 0)
// return;
// control = ds1.Tables[0].Rows[0]["path"].ToString();
// if (control != "")
// {
// UserControl uc = (UserControl)Page.LoadControl(control);
// controlholder.Controls.Add(uc);
// }
//}
//catch (Exception ex)
//{
// throw ex;
//}
}
catch (Exception ex)
{
throw ex;
}
}
}
}