SeachDetial.aspx.cs

(完整代码) 2KB

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;

public partial class SeachDetial : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["MemberName"] == null)
            {
                Response.Write("<script language='javascript'>alert('没有登录,不能操作!');location='javascript:history.go(-1)';</script>");
            }
            else
            {
                GetUserInfo();
            }
           
        }
    }
    private void GetUserInfo()
    {
        string ID = Request.QueryString["ID"].ToString();
        string SQL  = "select  * from TB_Member where MemberID=" + ID;
        DataSet DS = new DataSet();
        DS=DBHelper.GetDataSet(SQL);
        this.Image1.ImageUrl = DS.Tables[0].Rows[0]["TouXiang"].ToString();
        this.Label1.Text = DS.Tables[0].Rows[0]["MemberName"].ToString();
        this.Label2.Text = DS.Tables[0].Rows[0]["age"].ToString();
        this.Label3.Text = DS.Tables[0].Rows[0]["City"].ToString();
        this.Label4.Text = DS.Tables[0].Rows[0]["Sex"].ToString();
        this.Label5.Text = DS.Tables[0].Rows[0]["QQ"].ToString();
        this.Label6.Text = DS.Tables[0].Rows[0]["MobileTel"].ToString();
        this.Label7.Text = DS.Tables[0].Rows[0]["Email"].ToString();
        this.Label8.Text = DS.Tables[0].Rows[0]["ShenGao"].ToString();
        this.Label9.Text = DS.Tables[0].Rows[0]["XueLi"].ToString();

        this.Label10.Text = DS.Tables[0].Rows[0]["HunYing"].ToString();


        this.Label11.Text = DS.Tables[0].Rows[0]["AiHao"].ToString();
        this.Label12.Text = DS.Tables[0].Rows[0]["XuanYan"].ToString();

        this.Label13.Text = DS.Tables[0].Rows[0]["JiaTing"].ToString();
        this.Label14.Text = DS.Tables[0].Rows[0]["Other"].ToString();

    }




}

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

AI 解读 AI

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

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