protected void Page_Load(object sender, EventArgs e)
    {
        /* SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["dbString"].ConnectionString);
        conn.Open();
        string emailid = "*****@*****.**";
        SqlCommand cmd = new SqlCommand("select * from user_details where email='"+emailid+"'", conn);
        SqlDataReader reader = cmd.ExecuteReader();

        while (reader.Read())
        {
            name.Text = reader["name"].ToString();
            contact.Text = reader["contact_no"].ToString();
            zipcode.Text = reader["zipcode"].ToString();
            email.Text = reader["email"].ToString();

        }
        reader.Close();*/

        loginwebservice.login s1 = new loginwebservice.login();
        string[] b = new string[10];
        string main_user = Session["main_user"].ToString();
        b = s1.user_profile_retrieve(main_user);

        name.Text = b[0];
        contact.Text = b[2];
        zipcode.Text = b[1];
        email.Text = b[3];
    }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        /* SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["dbString"].ConnectionString);
         * conn.Open();
         * string emailid = "*****@*****.**";
         * SqlCommand cmd = new SqlCommand("select * from user_details where email='"+emailid+"'", conn);
         * SqlDataReader reader = cmd.ExecuteReader();
         *
         * while (reader.Read())
         * {
         *   name.Text = reader["name"].ToString();
         *   contact.Text = reader["contact_no"].ToString();
         *   zipcode.Text = reader["zipcode"].ToString();
         *   email.Text = reader["email"].ToString();
         *
         * }
         * reader.Close();*/

        loginwebservice.login s1 = new loginwebservice.login();
        string[] b         = new string[10];
        string   main_user = Session["main_user"].ToString();

        b = s1.user_profile_retrieve(main_user);

        name.Text    = b[0];
        contact.Text = b[2];
        zipcode.Text = b[1];
        email.Text   = b[3];
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string main_user = "";

        if (Session["main_user"] != null)
        {

            main_user = Session["main_user"].ToString();
        }

        loginwebservice.login s1 = new loginwebservice.login();
        string[] b = new string[10];
        b = s1.user_profile_retrieve(main_user);

        string res_name = b[0];
        main_name.Text = res_name;
    }
Beispiel #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string main_user = "";

        if (Session["main_user"] != null)
        {
            main_user = Session["main_user"].ToString();
        }


        loginwebservice.login s1 = new loginwebservice.login();
        string[] b = new string[10];
        b = s1.user_profile_retrieve(main_user);

        string res_name = b[0];

        main_name.Text = res_name;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        loginwebservice.login s1 = new loginwebservice.login();
            string[] b = new string[10];
            string main_user = "";
            if (Session["main_user"] != null)
            {
                main_user = Session["main_user"].ToString();
            }

            b = s1.user_profile_retrieve(main_user);

          if (!IsPostBack)
        {
            name.Text = b[0];
            contactno.Text = b[2];
            zipcode.Text = b[1];
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        loginwebservice.login s1 = new loginwebservice.login();
        string[] b         = new string[10];
        string   main_user = "";

        if (Session["main_user"] != null)
        {
            main_user = Session["main_user"].ToString();
        }

        b = s1.user_profile_retrieve(main_user);

        if (!IsPostBack)
        {
            name.Text      = b[0];
            contactno.Text = b[2];
            zipcode.Text   = b[1];
        }
    }