web.config

  • Thread starter Thread starter beachboy
  • Start date Start date
B

beachboy

if asp.net application has 2 languages, and i want to set 2 error page for
each language

except split 2 language into 2 applications, any solutions? how can i do
that??

Thanks in advanced.

<customErrors defaultRedirect="errorpage.aspx" mode="RemoteOnly">
<error statusCode="404" redirect="eng/Error404.html" />
</customErrors>
 
can you please clarify on "2 languages". I guess you mean using localization
and having resource files per language. If so, then within any single error
page, you can check current threads UI culture and show corresponding
localized value. ResourceManager class will do this automatically.

Please clarify on "2 language" in case the above answer doesn't fulfill your
needs.

Thanks, Arif
 
Back
Top