yonghuliuyan.aspx.cs

(开头部分) 7KB

这里只显示每个文件的开头 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;
using System.Data.SqlClient;
using System.Configuration;

public partial class yonghuliuyan : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpCookie cookie = Request.Cookies["cookie"];
        if (cookie == null)
        {
            Response.Redirect("Ulogin.aspx");
        }

        Label4.Text = DateTime.Now.ToString();
        TextBox1.Text = Session["Fname"].ToString();
        Label2.Text = Session["Fpsd"].ToString();
        //TextBox1 .Text  = Session["Uname"].ToString();
        //Label2.Text = Session["Upsd"].ToString();
        /*if (!IsPostBack)
        {
            TextBox1.Text = Session["Fname"].ToString();
            Label2.Text = Session["Fpsd"].ToString();
        }
        else
        {
            Response.Redirect("跳转提示页面.aspx");
        }
        string str;
        if (!IsPostBack)
            Application["Msg"] = "聊天内容如下:<br>";
        else
        {
            str = TextBox1.Text + "说:" + TextBox2.Text + "   " + DateTime.Now.ToLongDateString() + "<br>";
            Application.Lock();
            Application["Msg"] += str;
            Application.UnLock();
            TextBox4.Text = Application["Msg"].ToString();

            TextBox2.Text = "";
            Label1.Text = " ";
        }
        string strCon = "Data Source=.;Initial Catalog =managetelephone;Integrated Security=True;";
        SqlConnection sqlconn = new SqlConnection(strCon);
        SqlCommand sqlcommand = new SqlCommand();
        sqlcommand.Connection = sqlconn;

        string str1 = "select * from Friendtelephone1 where Friendnum='" + Label2 .Text  + "'";
        //sqlcommand.CommandText = "select * from Friendtelephone1 where Friendname=@Friendname";
        //sqlcommand.Parameters.AddWithValue("@Friendname", TextBox1.Text);
        SqlDataAdapter da1 = new SqlDataAdapter(str1, sqlconn);
        DataSet ds1 = new DataSet();
        int count = da1.Fill(ds1, "Friendtelephone1");
        if (count > 0)
后面还有 136 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。