common methods i putted in .cs page in there one method return value is datatable it will work fine but i get error in that method how can i get error message to current page
If you have handled code by using try catch and not showing error details to continue on code so it will always handle code in catch block as per you code. If you need to show error details then you can either throw it or you can display it on alert in catch block. 1) throw error just type throw in catch block 2) to show error details in alert popup refer the below link and implement it as per your code logic.
Display Exception (Error) Message details using JavaScript Alert MessageBox in ASP.Net
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.