Zbiór zmian 964 dla trunk

Pokaż
Ignoruj:
Data:
2009-12-22 12:25:22 (16 years ago)
Autor:
marek
Opis:

re #215 - custom error page

Lokalizacja:
trunk/eCard/eCardMVC/Platnosci
Pliki:
3 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • trunk/eCard/eCardMVC/Platnosci/Controllers/HomeController.cs

    r930 r964  
    1 using System.Web.Mvc; 
     1using System; 
     2using System.Web.Mvc; 
    23 
    34namespace Platnosci.Controllers 
     
    910        { 
    1011            return RedirectToAction("LogOn", "Account"); 
    11             //return View(); 
    1212        } 
    1313 
     
    1616            return View(); 
    1717        } 
     18 
     19        public ActionResult Error() 
     20        { 
     21            return View("Error"); 
     22        } 
    1823    } 
    1924} 
  • trunk/eCard/eCardMVC/Platnosci/Views/Shared/Error.aspx

    r866 r964  
    1 <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Web.Mvc.HandleErrorInfo>" %> 
     1<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<HandleErrorInfo>" %> 
    22 
    33<asp:Content ID="errorTitle" ContentPlaceHolderID="TitleContent" runat="server"> 
    4     Error 
     4    platnosci.admoto.pl - Sorry, an error occurred while processing your request 
    55</asp:Content> 
    66 
     
    99        Sorry, an error occurred while processing your request. 
    1010    </h2> 
     11    <h3> 
     12        Our webmaster has been informed about this issue. 
     13    </h3> 
    1114</asp:Content> 
  • trunk/eCard/eCardMVC/Platnosci/Web.config

    r954 r964  
    122122        </customErrors> 
    123123    --> 
     124    <customErrors mode="RemoteOnly" defaultRedirect="~/en/home/error"> 
     125    </customErrors> 
    124126                <pages> 
    125127                        <controls>