1.master.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.OleDb;
namespace web
{
public partial class _ : System.Web.UI.MasterPage
{
//到时候前台直接调用 比如 <%= type_one_name %>
public int type_one_id = 0;
public string type_one_name = "";
public int type_two_id = 0;
public string type_two_name = "";
public string img;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string url = Request.FilePath.ToLower();//地址网页
if (url.EndsWith("html.aspx"))
{
if (Request.QueryString["id"] != null)
{
int id = Convert.ToInt32(Request.QueryString["id"]);
type_two_id = id;
type_two_name = get.meb_two_name(type_two_id);
type_one_id = Convert.ToInt32(new access().ExecuteScalar("select type_one_id from type_two where id = " + type_two_id));
type_one_name = get.meb_name(type_one_id);
img = new access().ExecuteScalar("select img from type_one where id = " + type_one_id + "");
using (DataTable d = new access().ExecuteDataTable("select * from type_two where type_one_id = " + type_one_id + " order by px "))
{
this.Repeater1.DataSource = d;
this.Repeater1.DataBind();
}
}
}
else if (url.EndsWith("_l.aspx"))
{
if (Request.QueryString["id"] != null)
{
int id = Convert.ToInt32(Request.QueryString["id"]);
type_two_id = Convert.ToInt32(new access().ExecuteScalar("select type_two_id from merchandise where id = " + id));
type_two_name = get.meb_two_name(type_two_id);
type_one_id = Convert.ToInt32(new access().ExecuteScalar("select type_one_id from type_two where id = " + type_two_id));
type_one_name = get.meb_name(type_one_id);
img = new access().ExecuteScalar("select img from type_one where id = " + type_one_id + "");
using (DataTable d = new access().ExecuteDataTable("select * from type_two where type_one_id = " + type_one_id + " order by px "))
{
this.Repeater1.DataSource = d;
this.Repeater1.DataBind();
}
}
}
后面还有 17 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。