Last post Jul 26, 2015 11:32 PM by Weibo Zhang
Jul 24, 2015 12:42 PM|GADOI2|LINK
I am working on a generic errorhandler.
In the page where the error occurred, I would like to pass a reference to either the page or the class where the error occurred....
where "Me" reference the area where the error occurred.
Then in the backend class....
here, I would like to get the equivalent to System.Reflection.MethodBase.GetCurrentMethod.Name
So, if not Me what should I pass and then what is received.... sender as ... what...
Jul 26, 2015 11:32 PM|Weibo Zhang|LINK
I think maybe you couldn’t pass a variable to get the value. Because the “GetCurrentMethod” is a shared function in “System.Reflection.MethodBase”, you couldn’t use it by an instance of class “System.Reflection.MethodBase”. You could first get the value
and then pass a string to the “SendError.Manage()”.
I hope it’s useful to you.