DataClassesDataContext db = new DataClassesDataContext();
// user ue = new user();
var deleteuserdata = from userdelete in db.users where userdelete.Username == txtuser.Text select userdelete;
foreach (var deleteuser in deleteuserdata)
{
db.users.DeleteOnSubmit(deleteuser);
}
try
{
db.SubmitChanges();
}
catch (Exception e12)
{
}

Response.Redirect(“default.aspx”);