title: How to show catch exception message on view page?
body: <pre><code>catch(Exception ex)
  {
     System.Diagnostic.StackTrace st=New System.Diagnostic.StackTrace(ex,true);
     System.Diagnostic.StackFrame sf=st.getframe(st.frame-1);
     int irow=sf.GetFileLineNumber();
     int icol=sf.GetFileColumnNumber();
     string smsg="Row: "+irow+ " Col "+icol;
     Throw New Exception(smsg, ex);
  }
  </code></pre>
  
  <p>This is the code I have written in my main method which is implementation of insert all values of excel sheet into database in mvc3 razor. Now, Please help me how will I show this exception message on view page?</p>