示例#1
0
    public void FetchingSentRequestDetails()
    {
        SqlParameter[] param = new SqlParameter[1];

        param[0]             = new SqlParameter("@userid", SqlDbType.Int);
        param[0].Value       = Session["id"];
        ds                   = objdf.FillDsParam("usp_FetchRequestDetails", param);
        Repeater1.DataSource = ds;
        Repeater1.DataBind();
        Count_1();
        //if (ds.Tables[0].Rows.Count > 0)
        //{
        //    a = new int[ds.Tables[0].Rows.Count];
        //    for (int loopcounter = 0; loopcounter < ds.Tables[0].Rows.Count; loopcounter++)
        //    {

        //        a[loopcounter] = Convert.ToInt32(ds.Tables[0].Rows[loopcounter]["Recevier_Id"]);
        //    }
        //    for (int loopcounter = 0; loopcounter < a.Length; loopcounter++)
        //    {

        //        Response.Write("<script>alert(" + a[loopcounter] + ")</script>");
        //    }

        //}
    }
    public void matchinguserdetails()
    {
        SqlParameter[] param = new SqlParameter[1];

        param[0]       = new SqlParameter("@userid", SqlDbType.Int);
        param[0].Value = Session["id"];

        ds = objdf.FillDsParam("usp_macthuserdetails", param);


        Repeater1.DataSource = ds;
        Repeater1.DataBind();
    }
    public void Userprofiledetails()
    {
        SqlParameter[] param = new SqlParameter[1];

        param[0]       = new SqlParameter("@userid", SqlDbType.Int);
        param[0].Value = Session["id"];
        ds             = objdf.FillDsParam("usp_filluserdetails", param);
        if (ds.Tables[0].Rows.Count > 0)
        {
            lblprofilename.Text = ds.Tables[0].Rows[0]["username"].ToString();
            lblstate.Text       = ds.Tables[0].Rows[0]["state"].ToString();

            Image1.ImageUrl = ds.Tables[0].Rows[0]["profileimage"].ToString();
            lblname.Text    = ds.Tables[0].Rows[0]["username"].ToString();
            lblemail.Text   = ds.Tables[0].Rows[0]["useremail"].ToString();
            lblcontact.Text = ds.Tables[0].Rows[0]["usermobilenumber"].ToString();
            lblMS.Text      = ds.Tables[0].Rows[0]["maritalstatus"].ToString();


            lblmothertounge.Text = ds.Tables[0].Rows[0]["mothertongue"].ToString();
            lblage.Text          = ds.Tables[0].Rows[0]["age"].ToString();
            lblheight.Text       = ds.Tables[0].Rows[0]["height"].ToString();
            lblcaste.Text        = ds.Tables[0].Rows[0]["caste"].ToString();
            lbldiet.Text         = ds.Tables[0].Rows[0]["deit"].ToString();
            lblsmoke.Text        = ds.Tables[0].Rows[0]["hobbies"].ToString();


            txtname.Text = ds.Tables[0].Rows[0]["username"].ToString();

            txtemail.Text   = ds.Tables[0].Rows[0]["useremail"].ToString();
            txtcontact.Text = ds.Tables[0].Rows[0]["usermobilenumber"].ToString();
            txtMS.Text      = ds.Tables[0].Rows[0]["maritalstatus"].ToString();


            txtmothertounge.Text = ds.Tables[0].Rows[0]["mothertongue"].ToString();
            txtage.Text          = ds.Tables[0].Rows[0]["age"].ToString();
            txtheight.Text       = ds.Tables[0].Rows[0]["height"].ToString();
            txtcaste.Text        = ds.Tables[0].Rows[0]["caste"].ToString();
            txtdiet.Text         = ds.Tables[0].Rows[0]["deit"].ToString();
            txtdrinksmoke.Text   = ds.Tables[0].Rows[0]["hobbies"].ToString();

            txtpass.Text = ds.Tables[0].Rows[0]["userpassword"].ToString();
        }
        else
        {
            Response.Write("<script>alert('data not fill')</script>");
        }
    }
示例#4
0
    public void selectuserdetails()
    {
        SqlParameter[] param = new SqlParameter[1];

        param[0]       = new SqlParameter("@userid", SqlDbType.Int);
        param[0].Value = Int32.Parse(lblid.Text);

        ds = objdf.FillDsParam("usp_filluserdetails", param);


        if (ds.Tables[0].Rows.Count > 0)
        {
            lblusername.Text = ds.Tables[0].Rows[0]["username"].ToString();
            lblemail.Text    = ds.Tables[0].Rows[0]["useremail"].ToString();
            //Image1.ImageUrl = ds.Tables[0].Rows[0]["profileimage"].ToString();
            //Image2.ImageUrl = Image1.ImageUrl;
            lblContact.Text = ds.Tables[0].Rows[0]["usermobilenumber"].ToString();
            lblliving.Text  = ds.Tables[0].Rows[0]["livingstatus"].ToString();
            lblmarital.Text = ds.Tables[0].Rows[0]["maritalstatus"].ToString();
            lblfamily.Text  = ds.Tables[0].Rows[0]["familystatus"].ToString();
            lblheight.Text  = ds.Tables[0].Rows[0]["height"].ToString();
            lblmt.Text      = ds.Tables[0].Rows[0]["mothertongue"].ToString();
            lblr.Text       = ds.Tables[0].Rows[0]["religion"].ToString();
            lblc.Text       = ds.Tables[0].Rows[0]["caste"].ToString();


            lblage.Text  = ds.Tables[0].Rows[0]["age"].ToString();
            lbldeit.Text = ds.Tables[0].Rows[0]["deit"].ToString();
            lblds.Text   = ds.Tables[0].Rows[0]["hobbies"].ToString();
            lblps.Text   = ds.Tables[0].Rows[0]["physicalstatus"].ToString();

            lblhe.Text  = ds.Tables[0].Rows[0]["heighesteducation"].ToString();
            lblei.Text  = ds.Tables[0].Rows[0]["employeein"].ToString();
            lblocc.Text = ds.Tables[0].Rows[0]["occupation"].ToString();
            lblai.Text  = ds.Tables[0].Rows[0]["annualincome"].ToString();
            //lblabout.Text = ds.Tables[0].Rows[0]["aboutyourself"].ToString();

            lblcity.Text  = ds.Tables[0].Rows[0]["city"].ToString();
            lblstate.Text = ds.Tables[0].Rows[0]["state"].ToString();
            lblcon.Text   = ds.Tables[0].Rows[0]["country"].ToString();
            //lblabout.Text = ds.Tables[0].Rows[0]["aboutyourself"].ToString();
        }
        else
        {
            Response.Write("<script>alert('data not fill')</script>");
        }
    }