| @ndrew ( @ 2008-06-12 19:20:00 |
Отображение ошибок...
catch (Exception ex)
{
lblError.Text = "An error occurred performing the operation: " + ex.Message;
Label mainErrorLabel = (Label)
this.Parent.Parent.Parent.Parent.Parent.P arent.Parent.FindControl("lblError");
if (mainErrorLabel != null)
mainErrorLabel.Text = lblError.Text;
...
catch (Exception ex)
{
lblError.Text = "An error occurred performing the operation: " + ex.Message;
Label mainErrorLabel = (Label)
this.Parent.Parent.Parent.Parent.Parent.P
if (mainErrorLabel != null)
mainErrorLabel.Text = lblError.Text;
...