web/WebUserControl3.ascx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
public partial class web_WebUserControl3 : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
float price=0;
int i=0;
int tianshu = 1;
try
{
Label1.Text = Request.QueryString["Name"];
Label6.Text = DateTime.Now.ToLongDateString();
string ConnStr1 = System.Configuration.ConfigurationManager.ConnectionStrings["ConnStr"].ToString();
SqlConnection cn = new SqlConnection(ConnStr1);
cn.ConnectionString = ConnStr1;
String sql1 = "select cidentityid,BeginTime from history where Roomid='" + Label1.Text.Trim() + "' and Endtime is null";
cn.Open();
SqlCommand cmd = new SqlCommand(sql1, cn);
SqlDataAdapter da = new SqlDataAdapter();
DataSet ds = new DataSet();
da.SelectCommand = cmd;
da.Fill(ds);
DataRow dr = ds.Tables[0].Rows[0];
Label3.Text = dr[0].ToString();
Label5.Text = dr[1].ToString();
cn.Close();
}
catch (Exception ex)
{ }
//求房间类型
try
{
string ConnStr1 = System.Configuration.ConfigurationManager.ConnectionStrings["ConnStr"].ToString();
SqlConnection cn = new SqlConnection(ConnStr1);
cn.ConnectionString = ConnStr1;
String sql1 = "select RcategoryId from RoomsInfo where Roomid='" + Label1.Text.Trim() + "'";
cn.Open();
SqlCommand cmd = new SqlCommand(sql1, cn);
SqlDataAdapter da = new SqlDataAdapter();
DataSet ds = new DataSet();
da.SelectCommand = cmd;
da.Fill(ds);
DataRow dr = ds.Tables[0].Rows[0];
String s = dr[0].ToString();
i = int.Parse(s);
cn.Close();
后面还有 80 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。