con = new SqlConnection(ConfigurationManager.ConnectionStrings["sqlCon"].ToString()); try { if (con.State == ConnectionState.Closed) con.Open(); } catch { } cmd = new SqlCommand("uspInsertRuleset", con); cmd.CommandType = CommandType.StoredProcedure; SqlParameter p1 = cmd.Parameters.Add("@RuleSetID", SqlDbType.Int); p1.Direction = ParameterDirection.Output; SqlParameter p2 = cmd.Parameters.Add("@RuleTypeID", SqlDbType.Int); p2.Direction = ParameterDirection.Output; SqlParameter p3 = cmd.Parameters.Add("@RuleID", SqlDbType.Int); p3.Direction = ParameterDirection.Output; cmd.ExecuteNonQuery(); if (p1.Value == null) { con.Close(); return false; }
RuleId
p3.Direction = ParameterDirection.Output;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)