"so my is query how to find means i am going to save result in String _result Variable
so how can i know that Record Save or error occurs
do ii have to use Linq or SubString and How??"
when you will call stored procedure to save date and your stored procedure does not contain any error handling technique, you will gotten error which you have to handled in application level.
and
"Let's Consider I am using 1 store procedure that return message if record save
then
Record Save Successfully with Grn No 1 and Sr No 3
"
return 1 from your stored procedure when your transaction is completed successfully, then in your application
bool _result = Convert.ToBoolean(YourSqlCommand.ExecuteScalar());
and after that, see if you have true value or false in _result
if(_result)
{
HttpContext.Current.Response.Write("<script> alert('data saved'); </script>");
}
else
{
}