0

hi
i want to place all the values of a paticular login member and i want to update his informatin,
for example i want to update his phone no. and address etc..how can i do that ,right now iam developin web application by C#
,please sught out my problem.

thank you in advance
raghu

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by raghu.8
0

i got through this, but i want to update the values of a paticular person who loged in..
just look a this codding

protected void Button1_Click(object sender, EventArgs e)
    {
        SqlConnection con = new SqlConnection("user id=sa;password=vubrain;database=raghu;data source=vubrain4");
        SqlCommand cmd = new SqlCommand();
        cmd.Connection = con;
        cmd.CommandText = "update userlogin set loginname='"+t5.Text+"',loginaddress='"+tb1.Text+"' where loginuser=loginuser";
        con.Open();
        cmd.ExecuteNonQuery();
        con.Close();
       }

for the above codeding i am able to update all the member in the table, but i want only to update the paticular member who loged in
thank you

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.