Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string ErrorUrl;

        // Set page url
        if (String.IsNullOrEmpty(Request.QueryString["aspxerrorpath"]))
        {
            ErrorUrl = Request.Url.AbsoluteUri;
        }
        else
        {
            ErrorUrl = Request.QueryString["aspxerrorpath"].ToString();
        }
        HyperUrlError.Text        = ErrorUrl;
        HyperUrlError.NavigateUrl = ErrorUrl;

        // Bind examples
        GridViewHelper.DataSource = CustomErrorHelper.GetUrls(ErrorUrl, false);
        GridViewHelper.DataBind();
    }