Backup1/denglu.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 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 denglu.
/// </summary>
public class denglu : System.Web.UI.Page
{
protected System.Web.UI.HtmlControls.HtmlInputText Text1;
protected System.Web.UI.HtmlControls.HtmlInputText password;
protected System.Web.UI.HtmlControls.HtmlInputButton b1;
protected System.Data.SqlClient.SqlConnection myconn;
protected System.Data.SqlClient.SqlCommand mycomm;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.b1.ServerClick += new System.EventHandler(this.b1_ServerClick);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void b1_ServerClick(object sender, System.EventArgs e)
{
string sql="select* from huiyuan where yonghuming=@name and mima=@mima";
myconn=new SqlConnection(Session["str_connection"].ToString());
mycomm= new SqlCommand(sql,myconn);
mycomm.Parameters.Add(new SqlParameter("@name", SqlDbType.Char, 20));
mycomm.Parameters["@name"].Value =Text1.Value.Trim();
后面还有 27 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
