i am geting this error : No overload for method 'GetMaxRegNubmerPlusOne' takes 0 arguments
Line 139: com.Parameters.AddWithValue("@RegNo", m.GetMaxRegNubmerPlusOne());
here is what i have done so far
protected void btnRegister_Click(object sender, System.EventArgs e)
{
Main m = new Main();
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConectionString"].ConnectionString);
SqlCommand com = new SqlCommand("legal_register_case", con);
com.CommandType = CommandType.StoredProcedure;
com.Parameters.AddWithValue("@LegalCaseNo", txtLegalCaseNo.Text);
com.Parameters.AddWithValue("@InvCaseNo", txtInvCaseNo.Text);
com.Parameters.AddWithValue("@CaseType", Convert.ToString(ddl3.SelectedItem.Text.Split('=')[0]));
c ...
Go to the complete details ...