exam/kaoresult.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

public partial class exam_kaoresult : System.Web.UI.Page
{
    DataCode dataconn = new DataCode();
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (Session["StuName"] == null || Session["StuName"] == " ")
        //{
        //    Response.Write(" <script language=javascript> alert( '对不起,你还没登录! '); </script> ");
        //}
       // string xingming = Session["StuName"].ToString();
        if (!IsPostBack)
        {
            SqlDataReader read = dataconn.encu("select * from chengji_chaxun_view where ID='" + Session["StuName"] + "'");
            read.Read();
            if (read.HasRows)
            {
                //if (Session["StuName"] == read["ID"].ToString())
                //{
                   dataconn.formbind(gvExamResu, "select * from chengji_chaxun_view where ID='" + Session["StuName"] + "'");
                //}
                Label1.Visible = false;
            }
            else
            {
                Label1.Visible = true;
                Label1.Text = "数据记录为空!";
            }
            read.Close();
            //try
            //{
            //    dataconn.formbind(gvExamResu, "select * from chengji_chaxun_view where ID='" + Session["StuName"] + "'");
            //}
            //catch (Exception)
            //{

            //    Response.Write(" <script language=javascript> alert( '对不起,你还没登录! '); </script> ");
            //}
            //finally
            //{
            //    Response.Write(" <script language=javascript> alert( '对不起,你还没登录! '); </script> ");
            //}
            //if (Convert.ToString(Session["StuName"]) == null)
            //if ("select * from chengji_chaxun_view where ID =='" + Session["StuName"] + "'")
            //{
            //    Response.Write(" <script language=javascript> alert( '对不起,你还没登录! '); </script> ");
            //}
后面还有 51 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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