|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/c87b3efd/cc6243dc/ |
?#pragma checksum "D:\wwwroot\zgyzd233com\wwwroot\PictureDetails.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "4BAE4D0CD1A6D78307F069002CDA1B69"
#line 1 "D:\wwwroot\zgyzd233com\wwwroot\PictureDetails.aspx.cs"
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
public partial class PictureDetails : System.Web.UI.Page
{
UI ui = new UI();
public int ProductID, CategoryID, BoardID, ClickNum, OrderID;
public string CategoryName, PName, PType, PNum, PeiJian, Color, Details, PUrl, PubDate, LinkUrl;
public double Price, Price2;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ProductID = PageBase.getRequestID(Page, "ProductID");
try
{
bool result = Comm.returnExecuteSql("update ProductInfo set ClickNum=ClickNum+1 where ProductID=" + ProductID);
}
catch { }
finally
{
DataTable dt = SqlHelper.Query("select c.CategoryName,p.* from ProductInfo as p,PCategory as c where c.CategoryID=p.CategoryID and ProductID=" + ProductID).Tables[0];
if (dt.Rows.Count > 0)
{
ProductID = (int)dt.Rows[0]["ProductID"];
CategoryID = (int)dt.Rows[0]["CategoryID"];
BoardID = (int)dt.Rows[0]["BoardID"];
CategoryName = dt.Rows[0]["CategoryName"].ToString();
PName = dt.Rows[0]["PName"].ToString();
PType = dt.Rows[0]["PType"].ToString();
PNum = dt.Rows[0]["PNum"].ToString();
PeiJian = dt.Rows[0]["PeiJian"].ToString();
Color = dt.Rows[0]["Color"].ToString();
Price = Convert.ToDouble(dt.Rows[0]["Price"]);
Price2 = Convert.ToDouble(dt.Rows[0]["Price2"]);
Details = dt.Rows[0]["Details"].ToString();
PUrl = dt.Rows[0]["PUrl"].ToString();
PubDate = dt.Rows[0]["PubDate"].ToString();
ClickNum = (int)dt.Rows[0]["ClickNum"];
OrderID = (int)dt.Rows[0]["OrderID"];
Master.Title = PName;
litimg.Text = "<a href=\"picture/" + PUrl + "\" title=\"" + PName + "\" class=\"jqzoom\"><img src=\"picture/" + PUrl + "\" alt='" + PName + "'/></a>";
litsubject2.Text = "<a href=\"PictureList.aspx?CategoryID=" + BoardID + "\">" + CategoryName + "</a>" + PName;
litsubject.Text = CategoryName;
}
}
}
}
}
#line default
#line hidden