Default.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Configuration;
using System.Data;
using System.Linq;
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;
using System.Xml.Linq;
using Meiqi.BusinessLogicLayer;
public partial class _Default : System.Web.UI.Page
{
public string CompanyName, SiteStatistics, SeoTitle, SeoKeywords, SeoDesc;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
try
{
int seoID = 1;
Seo seo = new Seo();
seo.LoadData(seoID);
if (seo.exist)
{
//显示首页SEO内容
SeoTitle = seo.seoTitle;
SeoKeywords = seo.seoKeywords;
SeoDesc = seo.seoDesc;
}
int siteConfigID = 1;
SiteConfig siteConfig = new SiteConfig();
siteConfig.LoadData(siteConfigID);
if (siteConfig.exist)
{
//显示站点配置详细内容
CompanyName = siteConfig.companyName;
if (siteConfig.statisticalLocation == 1)
{
SiteStatistics = siteConfig.siteStatistics;
}
}
else
{
Response.Write("数据不存在.");
Response.End();
}
string strSql = "";
strSql = "select top 8 ProductID,ProductName,Model,MajorID,SubID,PicPathSmall,PicPathBig,convert(decimal(18,2),RetailPrice) as RetailPrice,IsRecommended,IsSpecial,IsDeleted,AddTime From cai_Product2 where IsSpecial=1 and IsDeleted=0 order by IsRecommended desc,ProductID desc";
DataView dvlist1 = cai_Product2.QueryProduct2(strSql);
ProductList.DataSource = dvlist1;
后面还有 36 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。