yjfc_xinxi/index.aspx.cs

(开头部分) 9KB

这里只显示每个文件的开头 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;

namespace yjfc_xinxi
{
    public partial class index : System.Web.UI.Page
    {
        public DateTime getdate;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    if (Session["usertruename"].ToString().Trim() == "")
                    {
                        Response.Redirect("/login.aspx");
                    }
                    else
                    {
                        lb_username.Text = Session["usertruename"].ToString().Trim();
                        string sql = "select * from xinxi_organize where organizeid="+Session["organizeid"].ToString()+"";
                        SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);
                        conn.Open();
                        SqlCommand cmd = new SqlCommand(sql, conn);
                        SqlDataReader dr = cmd.ExecuteReader();
                        if (dr.Read())
                        {
                            lb_organization.Text = dr["organizename"].ToString();
                        }
                        dr.Close();
                        dr.Dispose();
                        conn.Close();

                        bind_board();
                        bind_magazine();
                        bind_notice();
                        bind_xinxi_my();
                        bind_xinxi_all();
                        bind_peoplerank();
                    }
                }
                catch (Exception ex)
                {
                    //Response.Redirect("/login.aspx");
                    Response.Write(ex);
                }
            }
        }

        /// <summary>
后面还有 145 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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