Hi guys, I now have the textboxes with data in, what I would like to do now is if I change the data thats in the textboxes now and click save, it must update the database...
Im not sure how to code the save button.. So far I got :
CODE
protected void btnSave_Click(object sender, EventArgs e)
{
SqlConnection myCon = new SqlConnection(& #34;server=SECDWEB03;database=ServiceProviderAudits;uid=saprogs;pwd=sasol;connec
tion timeout=120;pooling=false");
SqlDataAdapter da = new SqlDataAdapter("SELECT int_ServiceProvider, nv_Name, nv_CEOName, nv_CEOEmail FROM tblServiceProviders", myCon);
SqlCommandBuilder cmd = new SqlCommandBuilder(da);
DataSet ds = new DataSet();
da.Fill(ds, "tblServiceProviders");
}
PLEASE help me:)
I will appriciate
Mod Edit: Please use code tags when posting code ==>
This post has been edited by PsychoCoder: 21 Nov, 2007 - 04:53 AM