Al,
Please check
http://www.west-wind.com/Weblog/posts/5127.aspx and the comments bellow the code.
>I am trying to use MessageDisplay.aspx to present a user friendly message to the user when an exception occurs. It works fine until I changed MessageDisplay.aspx to use a Master Page. I thought that would be a reasonable thing to do.
>
>The first problem I had was with the following code in mmMessageDisplay.DisplayPage():
>
> this.DisplayPage((Label)this.FindControl("lblHeader"),
> (Label)this.FindControl("lblMessage"),
> (Label)this.FindControl("lblRedirectHyperLink"));
>
>This was not finding the controls because of the Master Page. I changed the code to the following, which now works okay:
>
> this.DisplayPage((Label)this.Master.FindControl("MainContent").FindControl("lblHeader"),
> (Label)this.Master.FindControl("MainContent").FindControl("lblMessage"),
> (Label)this.Master.FindControl("MainContent").FindControl("lblRedirectHyperLink"));
>
>Once I got past the above issue, I ran into another problem that I am really struggling to resolve. I now get an exception saying “A page can have only one server-side Form tag.”
>
>If I run the same test with debugging, I get an exception saying "Error executing child request for /LendRite/MessageDisplay.aspx." This exception occurs on the following line in mmMessageDisplay.DisplayMessage():
>
>Context.Server.Transfer(mmWebDataHelper.GetFilePath("/" + templatePageName));
>
>As always, any help would be appreciated.
>
>Thanks,
>
>Al
If it's not broken, fix it until it is.
My Blog