【发布时间】:2011-09-23 10:51:52
【问题描述】:
我该怎么做呢?
protected void Page_Load(object sender, EventArgs e)
{
try
{
doSomething();
}
catch (Exception ex)
{
// Here i would like to know that the page is "Problem.aspx"
// and that it was caused from the doSomething() function
}
}
private void doSomething()
{
logToSomething();
}
【问题讨论】:
标签: c# asp.net exception logging