tijiao.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using System.Collections;
public partial class tijiao : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["lname"] == null)
{
MessageBox.Show(this, "请先登录后再进行此操作!");
return;
}
ShowInfo();
bind();
}
}
protected void bind()
{
shoppingcart car = new shoppingcart();
if (Session["car"] != null)
{
car = (shoppingcart)Session["car"];
}
Repeater1.DataSource = car.orders;
Repeater1.DataBind();
this.Literal1.Text = car.totalcost.ToString();
}
protected void ShowInfo()
{
string sql = "select * from members where lname='" + Session["lname"].ToString() + "'";
DataSet ds = DbHelperSQL.Query(sql);
if (ds.Tables[0].Rows.Count > 0)
{
this.TextBox3.Text = ds.Tables[0].Rows[0]["mname"].ToString();
this.TextBox4.Text = ds.Tables[0].Rows[0]["tel"].ToString();
this.TextBox2.Text = ds.Tables[0].Rows[0]["address"].ToString();
}
}
protected void Button1_Click1(object sender, EventArgs e)
{
if (Session["lname"] == null)
{
MessageBox.Show(this, "请先登录后再进行此操作!");
return;
}
后面还有 71 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
