|
Guest
Posts: n/a
|
System.Web.HttpException
-Brock
DevelopMentor
http://staff.develop.com/ballen
> No, I'm looking more for something I can set in code, like
>
> Throw New System.Exception("404")
>
> in my code behind module.
>
> "" wrote:
>
>> Are you looking for this?
>>
>> <configuration>
>> <system.web>
>> <customErrors defaultRedirect="/errors/default.aspx"
>> mode="RemoteOnly">
>> <error statusCode="404" redirect="/errors/404.aspx" />
>> </customErrors>
>> </system.web>
>> </configuration>
>> This redirects a user to a specified page whenever a 404 code is
>> gotten. Of course this I believe only for any file type registered
>> with asp.net. Meaning that if you need it to detect other things then
>> you should edit your IIS Config for the application and specify a
>> custom 404.
>>
>> Response.Status can be used to set the custom response outputted to
>> the client.
>>
|
|
|
|
|
|
|
|