While doing insertion by LINQ how to make to display a message as "row is inserted" in label.
protected void Button1_Click(object sender, EventArgs e)
{
int a = Convert.ToInt32(TextBox1.Text);
string b = TextBox2.Text;
string c = TextBox3.Text;
int d = Convert.ToInt32(TextBox4.Text);
obj.studetails.InsertOnSubmit(stuobj);
obj.SubmitChanges();
//Here how to display as row is inserted in my lable1?
//in data.sqlclient i can do it as...
// int x=cmd.executeNonQuery();
//if(x==1)
//{
//label1.text="row inserted";
//}
//How with LINQ?
}
PLEASE REPLY..............