// insertion function return true if insertion done
public bool insertion()
{
bool result=false;
try
{
object[,] obj = new object[,] { { "@Name", txtName.Text }, { "@Address", txtAddress.Text }, { "@EmailId", txtEmailId.Text } };
result=DB.ExecuteNonQuery_SP("InsertThreading", obj);
}
catch (Exception ex) { }
return result;
}
//thread for insertion and display "success" if InsertionThreadMethod() is true
protected void btnSave_Click(object sender, EventArgs e)
{
ThreadStart InsertionThread = new ThreadStart(insertion);
Thread t1 = new Thread(InsertionThread);
t1.Priority = ThreadPriority.Highest;
t1.Start();
if (InsertionThreadMethod() == true)
{
lblResult.Text = "Insertion Successful";
}
}Loading

Posted Jul 29, 2013, 1:38 AM
http://msdn.microsoft.com/en-us/library/5141a5y8(v=vs.90).aspx
What is the return type of "DB.ExecuteNonQuery_SP("InsertThreading", obj);" method?