sql = "UPDATE Company SET Name ='" + txtName.text + "' , Address='" + txtAddress.text + "',Tel= ' " + txtTel.text + " ' , Contact= ' " + txtContact.text + " ' WHERE ID = " + dgvCom.DataKeys[e.Item.ItemIndex];
if (clsDB.QueryExecuteNonQuery(sql) == true)
{
MessageBox.Show("เพิ่มข้อมูล เรียบร้อยแล้ว !!!", "ผลการทำงาน", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("ไม่สามารถเพิ่มข้อมูลได้ !!!", "ผลการทำงาน", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
clsDB.Close();
}
Error 13 'TextBox' is an ambiguous reference between 'System.Web.UI.WebControls.TextBox' and 'System.Windows.Forms.TextBox' C:\Documents and Settings\RASALEE\My Documents\Visual Studio 2008\WebSites\WebSite1\company.aspx.cs 86 9 C:\...\WebSite1\
Error 22 'System.Web.UI.WebControls.TextBox' does not contain a definition for 'text' and no extension method 'text' accepting a first argument of type 'System.Web.UI.WebControls.TextBox' could be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\RASALEE\My Documents\Visual Studio 2008\WebSites\WebSite1\company.aspx.cs 93 90 C:\...\WebSite1\