What action should be take?

There is an ASP.NET web site PassGuideWS.
The PassGuideWS root directory includes a page PGpage.aspx.
PGpage.aspx must be displayed whenever there is an unhandled error. At the same time
the displayed URL in the browser of the user is not changed.
What action should be take? Select two.

There is an ASP.NET web site PassGuideWS.
The PassGuideWS root directory includes a page PGpage.aspx.
PGpage.aspx must be displayed whenever there is an unhandled error. At the same time
the displayed URL in the browser of the user is not changed.
What action should be take? Select two.

A.
Make the following addition to the Global.asax file…

B.
Make the following addition to the makebehind file…

C.
Make the following addition to the web.config file…

D.
<system.web>
<customErrors mode=”On”>
<error statusCode=”500″ redirect=”~/PGpage.aspx” />
</customErrors>
</system.web>

E.
<system.web>
<customErrors mode=”On”>
<error statusCode=”300″ redirect=”~/PGpage.aspx” />
</customErrors>
</system.web>

F.
<system.web>
<customErrors redirectMode=”ResponseRewrite” mode=”On” defaultRedirect=”~/PGpage.aspx”
/>
</system.web>

G.
<system.web>
<customErrors redirectMode=”ResponseRefresh” mode=”On” defaultRedirect=”~/PGpage.aspx”
/>
</system.web>

H.
void Application_Error(object sender, EventArgs e)
{
Response.Redirect(“~/PGpage.aspx”);
}

I.
void Page_Error(object sender, EventArgs e)
{
Server.Transfer(“~/PGpage.aspx”);
}



Leave a Reply 0

Your email address will not be published. Required fields are marked *