. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| 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.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace GrowelWeb
{
public partial class SubPages : System.Web.UI.UserControl
{
public string pagename = "";
public string siteurl = "";
protected void Page_Load(object sender, EventArgs e)
{
siteurl = clsComman.value("SiteUrl");
BindSubPages();
}
public void BindSubPages()
{
try
{
pagename = Request.QueryString["page"].ToString();
}
catch (Exception ex)
{
throw ex;
}
AdminService adminService = new AdminService();
DataSet ds = adminService.GetSubpages(pagename);
//this.dtlstsubpages.DataSource = ds.Tables[0].DefaultView;
//this.dtlstsubpages.DataBind();
StringBuilder sb = new StringBuilder();
// sb.Append("<section class='section section-md bg-white'>");
//sb.Append(" <div class='shell'>");
//sb.Append(" <div class='section__header'>");
//sb.Append(" <h4>Latest News</h4>");
//sb.Append(" <div class='section__header-element'><a class='link link-md' href='news.html'>See All News </a></div>");
//sb.Append(" </div>");
sb.Append(" <div class='range '>"); //range - 50
//sb.Append(" <div class='cell-sm-6 cell-md-4 wow fadeInRightSmall'>");
//sb.Append(" <article class='post-minimal'>");
//sb.Append(" <time class='post-minimal__time' datetime='2017'>April 13, 2017</time>");
//sb.Append(" <div class='post-minimal__divider'></div>");
//sb.Append(" <h6 class='post-minimal__title'><a href='single-post.html'>The Fourth Industrial Revolution: What's in Store for Manufacturers?</a></h6>");
//sb.Append(" <p>The mankind now finds itself standing on a verge of such a scale of a technological...</p><a class='button button-xs button-lighter' href='single-post.html'>read more</a>");
//sb.Append(" </article>");
//sb.Append(" </div>");
//sb.Append(" <div class='cell-sm-6 cell-md-4 wow fadeInRightSmall' data-wow-delay='.1s'>");
//sb.Append(" <article class='post-minimal'>");
//sb.Append(" <time class='post-minimal__time' datetime='2017'>March 25, 2017</time>");
//sb.Append(" <div class='post-minimal__divider'></div>");
//sb.Append(" <h6 class='post-minimal__title'><a href='single-post.html'>Design and Advanced Materials As a Driver of Innovation</a></h6>");
//sb.Append(" <p>In recent years advanced materials have emerged and are having a major impact on...</p><a class='button button-xs button-lighter' href='single-post.html'>read more</a>");
//sb.Append(" </article>");
//sb.Append(" </div>");
//sb.Append(" <div class='cell-sm-6 cell-md-4 wow fadeInRightSmall' data-wow-delay='.2s'>");
//sb.Append(" <article class='post-minimal'>");
//sb.Append(" <time class='post-minimal__time' datetime='2017'>February 1, 2017</time>");
//sb.Append(" <div class='post-minimal__divider'></div>");
//sb.Append(" <h6 class='post-minimal__title'><a href='single-post.html'>Multitasking Materials in Future Construction and Architecture</a></h6>");
//sb.Append(" <p>Installations are often a practically invisible part of a building. Miles of...</p><a class='button button-xs button-lighter' href='single-post.html'>read more</a>");
//sb.Append(" </article>");
//sb.Append(" </div>");
string img="";
foreach (DataRow dr in ds.Tables[0].Rows)
{
if (Convert.ToString(dr["ProductImage"]) != "")
img = siteurl + "images/products/" + Convert.ToString(dr["ProductImage"]);
else
img = siteurl + "Includes/images/noimg.jpg";
sb.Append(" <div class='cell-sm-6 cell-md-4 wow fadeInRightSmall'>");
sb.Append(" <article class='post-minimal'>");
sb.Append(" <time class='post-minimal__time'>" + dr["subpage_displaytitle"] + "</time>");
sb.Append(" <div class='post-minimal__divider'></div>");
sb.Append(" <div style='min-height: 150px;padding:10px'>");
sb.Append(" <img src='" + img + "' alt='" + dr["subpage_displaytitle"] + "' style='border-radius:20px;' width='250' height='150'/>");
sb.Append(" </div>");
//sb.Append(" <h6 class='post-minimal__title'><a href='single-post.html'>The Fourth Industrial Revolution: What's in Store for Manufacturers?</a></h6>");
sb.Append(" <a class='button button-xs button-lighter' href='../subpage/"+ dr["subpage"] + "'>read more</a>");
sb.Append(" </article>");
sb.Append(" </div>");
}
sb.Append(" </div>");
//sb.Append(" </div>");
//sb.Append(" </section>");
lit.Text = sb.ToString();
}
}
}