Backup1/guanli1.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
namespace free.bbs
{
/// <summary>
/// Summary description for guanli1.
/// </summary>
public class guanli1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Label Label1;
protected System.Web.UI.WebControls.DropDownList d_2;
protected System.Web.UI.WebControls.TextBox t_1;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.DataGrid DataGrid1;
protected System.Data.SqlClient.SqlConnection myconn;
protected System.Data.SqlClient.SqlCommand mycomm;
protected System.Web.UI.WebControls.Literal l_1;
string sqlstr;
SqlDataReader myread;
string ans;
private void Page_Load(object sender, System.EventArgs e)
{
myconn=new SqlConnection(Session["str_connection"].ToString());
myconn.Open();
try
{
ans=Request.Params["ancestor_id"];
mycomm=new SqlCommand("select neirong from ancestor where (ancestor_id="+Request.Params["ancestor_id"]+" and banzhu='"+Request.Cookies["free_huiyuan"].Value.ToString()+"')",myconn);
myread=mycomm.ExecuteReader();
try
{
myread.Read();
Session["leibie"]=myread["neirong"].ToString().Trim();
l_1.Text=myread["neirong"].ToString().Trim();
myread.Close();
}
catch
{
myread.Close();
}
}
catch
{
try
{
mycomm=new SqlCommand("select zhuti from posts where postid="+Request.Params["post_id"]+" ",myconn);
后面还有 126 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
