yjfc_xinxi/use_list_view.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 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.SqlClient;
namespace yjfc_xinxi
{
public partial class use_list_view : System.Web.UI.Page
{
private int id = -1;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
try
{
if (Session["usertruename"].ToString().Trim() == "")
{
Response.Redirect("/login.aspx");
}
else
{
lb_username.Text = Session["usertruename"].ToString().Trim();
string sql = "select * from xinxi_organize where organizeid=" + Session["organizeid"].ToString() + "";
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);
conn.Open();
SqlCommand cmd = new SqlCommand(sql, conn);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
lb_organization.Text = dr["organizename"].ToString();
}
dr.Close();
dr.Dispose();
conn.Close();
if (Int32.TryParse(Request.Params["id"].ToString(), out id) == false)
{
{
return;
}
}
id = int.Parse(Request.Params["id"].ToString());
string sql2 = "select xb.*,xu.usertruename from xinxi_board xb,xinxi_users xu where xb.boardauthor=xu.userid and boardid=" + id;
SqlCommand cmd2 = new SqlCommand(sql2, conn);
conn.Open();
SqlDataReader mydr = cmd2.ExecuteReader();
后面还有 119 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。