Custom error form in asp.net web app

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Larry

    Custom error form in asp.net web app

    Is it possible to show the text that would appear in the default IIS error
    page, but have that text appear on the custom form when using the

    <customErrors mode="RemoteOnl y" defaultRedirect ="error.aspx " />

    What do I need to put in error.aspx (and error.cs) to obtain the error text
    and display it within a label on the error.aspx page?
  • Joyjit Mukherjee

    #2
    Re: Custom error form in asp.net web app

    Hi,

    try to see the source code of the file, say
    C:\WINNT\Help\i isHelp\common\4 04b.htm, and write code accrodingly.

    HTH

    Regards

    Joyjit

    "Larry" <Larry@discussi ons.microsoft.c om> wrote in message
    news:8EFE9FCD-679C-45DD-A2E0-97D0905D7650@mi crosoft.com...[color=blue]
    > Is it possible to show the text that would appear in the default IIS error
    > page, but have that text appear on the custom form when using the
    >
    > <customErrors mode="RemoteOnl y" defaultRedirect ="error.aspx " />
    >
    > What do I need to put in error.aspx (and error.cs) to obtain the error[/color]
    text[color=blue]
    > and display it within a label on the error.aspx page?[/color]


    Comment

    • Larry

      #3
      Re: Custom error form in asp.net web app

      Thanks for the help, but I do not know what to do based on your response. If
      possible, please elaborate.
      Thanks

      Comment

      Working...