. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| 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/GrowelAdmin/ |
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.WebControls;
namespace GrowelWeb.GrowelAdmin
{
public partial class SubproductItems : System.Web.UI.Page
{
public string subproduct = "";
public string type = "";
public string product = "";
DataSet pds = new DataSet();
public string title = "";
protected void Page_Load(object sender, EventArgs e)
{
try
{
AdminService adminService = new AdminService();
subproduct = Request.QueryString["subproduct"].ToString();
type = Request.QueryString["type"].ToString();
pds = adminService.GetSubProductDetails(subproduct);
product = pds.Tables[0].Rows[0]["product"].ToString();
title = pds.Tables[0].Rows[0]["subproduct_displayname"].ToString();
if (!IsPostBack)
{
BindItems();
}
}
catch (Exception ex)
{
}
}
public void BindItems()
{
AdminService adminService = new AdminService();
this.dtlstproducts.DataSource = adminService.GetSubProductItems(subproduct).Tables[0].DefaultView;
this.dtlstproducts.DataBind();
}
protected void lnkdelete_Command(object sender, CommandEventArgs e)
{
AdminService adminService = new AdminService();
LinkButton lnk = (LinkButton)sender;
string item = lnk.CommandArgument.ToString();
adminService.DeleteSubProductItem(item);
//Response.Write(item);
this.status.Visible = true;
this.status.InnerHtml = "Subproduct Item Deleted";
BindItems();
//Response.Write("Deleted");
}
}
}