order.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 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 System.Data.OleDb;
using System.Text.RegularExpressions;
using System.Web.Mail;
public partial class order : System.Web.UI.Page
{
public string nclassids;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["gameuserid"] == null)
{
Response.Write("<script language=javascript>alert('对不起,您还没有登陆或者登陆超时!');window.top.self.location='default.aspx';</script>"); return;
}
// 在此处放置用户代码以初始化页面
string sortid = this.Request.QueryString["sortid"];
//判断参数是否为空(注意:空有两种形式,一种为null,一种为空)
if(sortid + "a" != "a")
{
//如果有传递上述参数,则表示联动操作开始
this.xmlBind(sortid);
}
//在页面初次加载的时候,绑定第一/二个下拉框,第二个下拉框为所有值
//但实际上,第二个下拉框应显示空值,因为所有值可能也不少,最好只显示一个"请选择"字样
if(!this.IsPostBack)
{
OleDbConnection conn = dbcon.createconnection();
conn.Open();
OleDbCommand mycom = new OleDbCommand("select nclassid from gameuser where id=" + Session["gameuserid"].ToString(), conn);
OleDbDataReader dr = mycom.ExecuteReader();
if (dr.Read())
{
nclassids = dr["nclassid"].ToString().TrimEnd(',').TrimStart(',');
}
conn.Close();
this.DownBind1();
this.DownBind2();
this.BindData();
}
}
private DataTable Get_Dt(string sql)
{
//数据库连接串,本数据库为ACCESS数据库,当前在本目录的根目录下
OleDbConnection conn = dbcon.createconnection();
//打开数据库
后面还有 204 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
