if (!String.Equals(txtMobile.Text.Trim(), objdatarow["MobileNo"].ToString().Trim(), StringComparison.Ordinal)) { mailstr.Add("MobileNo:-" + txtAddress.Text.Trim()); NewString.Add(txtMobile.Text.Trim()); old.Add(objdatarow["MobileNo"].ToString().Trim()); }
CREATE PROCEDURE UpdateWhenDiffer @MobileNo VARCHAR(30), @MyKey INT AS BEGIN UPDATE MyTable SET MobileNo = @MobileNo WHERE ID = @MyKey AND MobileNo<>@MobileNo END
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)