Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SqlConnection con = new SqlConnection(@"Data Source=jolla;Initial Catalog=Logdb;user id=sa;password=jolla;Integrated Security=True");
- if (txt1.Text != "")
- {
- con.Open();
- SqlCommand cmd = new SqlCommand("update dbo.Imgtable1 Set Username='" + Nuser.Text + "', Email='" + Nemail1.Text + "', Mobile='" + Nmobile1.Text + "', Image='" + name+ "' where Username='" + txt1.Text + "' or Email='" + txt1.Text + "'", con);
- cmd.ExecuteNonQuery();
- cmd.Dispose();
- Clear();
- }
- else
- {
- Response.Write("Text Field Empty");
- txt1.Focus();
- }
- }
Add Comment
Please, Sign In to add comment