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);
                }
            }
        }
Exemplo n.º 2
0
 protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     user.InSocialYesNo(Session["socialNumber"].ToString(), GridView1.DataKeys[e.RowIndex].Value.ToString(), 1);
     showGridview();
 }