you need parameter to that function
public void Category_Insert(String _Category, String _Toz)
{
try
{
SqlCommand cmd = new SqlCommand("Category_Insert", SqlCon);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@Category ", SqlDbType.VarChar).Value = _Category;
cmd.Parameters.Add("@Toz", SqlDbType.VarChar).Value = _Toz;
SqlCon.Open();
cmd.ExecuteNonQuery();
}
you can call it by :on button
DAL.Category_Dal.Category_Insert(txtcategory.text,txttoz.text)