asp.net 接收存储过程返回的值

            myparameter[2] = new SqlParameter("Ret", ""); //增加参数,赋予空值。
            myparameter[2].Direction = ParameterDirection.ReturnValue;  //设置状态为返回值
            int value = SqlHelper.ExecuteNonQuery(SqlHelper.strConn, CommandType.StoredProcedure, "proc_Ustixian", myparameter);//执行sql

            string sdatevalue = myparameter[2].Value.ToString();//获取存储过程中的返回值

原文地址:https://www.cnblogs.com/jayleke/p/1848647.html