OATest/UserWork/Bottom.aspx.cs

(开头部分) 5KB

这里只显示每个文件的开头 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;
using System.IO;
public partial class UserWork_Bottom : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string status="未读";
        string Name = SelectName();
        SqlConnection con=new SqlConnection(ConfigurationManager.AppSettings["Connection"]);
        con.Open();
        string sql = "select * from Email,Employee where Email.Meetname='" + Name + "'  and status='" + status + "' ";
         SqlCommand com = new SqlCommand(sql,con);
        SqlDataReader dr = com.ExecuteReader();
        if (dr.Read())
        {
            Response.Write("<bgsound   src='D:\\OA_Test\\你有新的消息,请注意查收!hun(NEW59).mp3' autostart='true'>"); 
        }
        con.Close();
        if (!IsPostBack)
        {
            Bind();
        }
    }
    protected void bnQuery_ServerClick(object sender, EventArgs e)
    {

    }
    public void Bind()
    {


        SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["Connection"]);
        con.Open();
        string Name=SelectName();
        string sql = "select * from Email,Employee where Email.Meetname='" + Name + "' and Email.sendname=Employee.username order by sid desc ";

        SqlDataAdapter da = new SqlDataAdapter(sql,con);
        DataSet ds = new DataSet();
        da.Fill(ds);
        GridView1.DataSource = ds;
        GridView1.DataBind();
        //while (dr.Read())
        //{
        //    string Meetname = dr["Meetname"].ToString();
        //    string[] a;
        //    a = Meetname.Split(';');
        //    for (int i = 0; i < a.Length; i++)
        //    {
        //        string c = a[i].ToString();
        //        string b = ChaXun();
后面还有 104 行代码,解锁后查看完整代码

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

AI 解读

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

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