protected void LinkButton1_Click(object sender, EventArgs e)
        {
            DataTable dt = MyCode.getLikes(Request.QueryString["id"]);

            GridView1.DataSource = dt;
            GridView1.DataBind();
            Panel1.Visible = !Panel1.Visible;
        }
示例#2
0
        protected void joinlink_Click(object sender, EventArgs e)
        {
            if (Session["userid"] == null || Session["userid"].ToString().Equals(""))
            {
                Response.Redirect("~/login.aspx");
                return;
            }
            MyCode.JoinEvent(Request.QueryString["eid"], Session["userid"].ToString());

            Response.Write("<script>alert('Congratulations, we'll be waiting for you ')</script>");
        }