protected void search_Click(object sender, EventArgs e)
    {
        ConnectionClass mycon = new ConnectionClass();

        DataMember.DataSource = mycon.select("SELECT u_id, fname, mname, lname, u_name, u_password, gender, phone, nationality, time, email, dob, profilepic, status, dp2, discp, personal FROM user_regis WHERE (fname LIKE '" + textsearch.Text + "%')");
        DataMember.DataBind();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ConnectionClass mycon = new ConnectionClass();

            string u_id     = Session["u_id"].ToString();
            string g_id     = Request.QueryString["g_id"];
            string owner_id = mycon.GetValue("select u_id from g_create where g_id=" + g_id);
            if (owner_id == u_id)
            {
                DataMember.DataSource = mycon.select("select * from user_regis where status='ACTIVE'");
                DataMember.DataBind();
            }
            DataTable dt = mycon.select("select  * from g_create where g_id=" + g_id);
            gname.Text    = dt.Rows[0][2].ToString();
            datetime.Text = dt.Rows[0][3].ToString();
            ppic.ImageUrl = dt.Rows[0][4].ToString();
            datadisp();
            msgdisp();
        }
    }