update exsisting login registration

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2007
Posts: 40
Reputation: raghu.8 is an unknown quantity at this point 
Solved Threads: 0
raghu.8 raghu.8 is offline Offline
Light Poster

update exsisting login registration

 
0
  #1
Dec 3rd, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 40
Reputation: raghu.8 is an unknown quantity at this point 
Solved Threads: 0
raghu.8 raghu.8 is offline Offline
Light Poster

Re: update exsisting login registration

 
0
  #2
Dec 3rd, 2007
i got through this, but i want to update the values of a paticular person who loged in..
just look a this codding
  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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C# Forum
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC