944,111 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 705
  • C# RSS
Dec 3rd, 2007
0

update exsisting login registration

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Light Poster
raghu.8 is offline Offline
40 posts
since Nov 2007
Dec 3rd, 2007
0

Re: update exsisting login registration

i got through this, but i want to update the values of a paticular person who loged in..
just look a this codding
C# Syntax (Toggle Plain Text)
  1. protected void Button1_Click(object sender, EventArgs e)
  2. {
  3. SqlConnection con = new SqlConnection("user id=sa;password=vubrain;database=raghu;data source=vubrain4");
  4. SqlCommand cmd = new SqlCommand();
  5. cmd.Connection = con;
  6. cmd.CommandText = "update userlogin set loginname='"+t5.Text+"',loginaddress='"+tb1.Text+"' where loginuser=loginuser";
  7. con.Open();
  8. cmd.ExecuteNonQuery();
  9. con.Close();
  10. }
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
Last edited by cscgal; Dec 6th, 2007 at 2:21 am. Reason: Added code tags
Reputation Points: 10
Solved Threads: 0
Light Poster
raghu.8 is offline Offline
40 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: ComboBox
Next Thread in C# Forum Timeline: Thread's colliding?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC