Exemplo n.º 1
0
        // 显示社团信息
        protected void ShowPersonSocial()
        {
            userinfo  user  = new userinfo();
            DataTable table = user.showPersonSocial(social);

            if (table.Rows.Count > 0)
            {
                LabelSocial.Text = table.Rows[0]["socname"].ToString();
            }
            else
            {
                LabelSocial.Text = "无";
                if (!(header.Equals("0")))
                {
                    DataTable table2 = user.showPersonSocial(header);
                    IsYN.Text = table2.Rows[0]["socname"].ToString() + "已拒绝您的申请";
                    user.InSocialYesNo("0", Session["username"].ToString(), 0);
                }
            }
        }
        // 显示社团信息
        protected void ShowPersonSocial()
        {
            string    socialID = null;
            userinfo  user     = new userinfo();
            DataTable table    = user.showPerson(Session["username"].ToString());

            if (table.Rows.Count > 0)
            {
                //Session["zxcvbnm"] = table.Rows[0]["social"].ToString();
                socialID = table.Rows[0]["social"].ToString();
            }
            DataTable table2 = user.showPersonSocial(socialID);

            if (table2.Rows.Count > 0)
            {
                LabelSocial.Text    = table2.Rows[0]["socname"].ToString();
                Session["hdfkiuyr"] = table2.Rows[0]["socname"].ToString();
            }
            else
            {
                LabelSocial.Text = "无";
            }
        }