anli_view.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EnterpriseNET.BusinessLogicLayer;
using EnterpriseNET.DataAccessHelper;
using EnterpriseNET.CommonComponent;
public partial class anli_view : System.Web.UI.Page
{
public string ProjectName, PicPathBig, ProjectContent;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
try
{
int projectID = -1;
string strSql = "";
if (Request.QueryString["ProjectID"] != "")
projectID = Convert.ToInt32(Request.QueryString["ProjectID"]);
ProjectCase projectCase = new ProjectCase();
projectCase.LoadData(projectID);
if (projectCase.Exist)
{
//显示工程案例详细内容
ProjectName = projectCase.ProjectName;
PicPathBig = projectCase.PicPathBig;
ProjectContent = projectCase.ProjectContent;
Page.DataBind();
Random random = new Random(System.Guid.NewGuid().GetHashCode());
int r = random.Next();
strSql = "select top 3 ProjectID,ProjectName,PicPathSmall from cai_ProjectCase order by rnd(" + (-r) + "*ProjectID)";
DataView dvlist = Product2.QueryProducts(strSql);
ProductListNew.DataSource = dvlist;
ProductListNew.DataBind();
}
else
{
Response.Write("数据不存在.");
Response.End();
}
}
catch
{
Response.Write("发生错误.");
Response.End();
}
后面还有 17 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。