Page.ErrorPage Proprietà

Definizione

Ottiene o imposta la pagina di errore alla quale è reindirizzato il browser richiedente nel caso di un'eccezione di pagina non gestita.

public:
 property System::String ^ ErrorPage { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public string ErrorPage { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.ErrorPage : string with get, set
Public Property ErrorPage As String

Valore della proprietà

String

La pagina di errore alla quale è reindirizzato il browser.

Attributi

Esempio

void Page_Load(Object sender, EventArgs e)
{
   // Note: This property can also be set in <%@ Page ...> tag.
   if(!IsPostBack)
      this.ErrorPage = "Error_Page.aspx";
}
Sub Page_Load(Sender As Object, e As EventArgs)

   ' Note: This property can also be set in <%@ Page ...> tag.
   If (Not IsPostBack) Then
      Me.ErrorPage = "Error_Page.aspx"
 End If
End Sub

Si applica a

Vedi anche