With the help of Enterprise library:
Solution:
DbCommand cmdDel = _db.GetStoredProcCommand("USP_YOURPROCEDURE");
_db.AddOutParameter(cmdDel, "@STATUS", DbType.String, int.MaxValue);
_db.AddInParameter(cmdDel, "@VID", DbType.Int32, HFVID.Value);
_db.ExecuteDataSet(cmdDel);
lblStatus.Text = cmdDel.Parameters["@STATUS"].Value.ToString();
Solution:
DbCommand cmdDel = _db.GetStoredProcCommand("USP_YOURPROCEDURE");
_db.AddOutParameter(cmdDel, "@STATUS", DbType.String, int.MaxValue);
_db.AddInParameter(cmdDel, "@VID", DbType.Int32, HFVID.Value);
_db.ExecuteDataSet(cmdDel);
lblStatus.Text = cmdDel.Parameters["@STATUS"].Value.ToString();
No comments:
Post a Comment