I should be able to display the default 403 Access Denied page from IIS.
我应该能够从IIS显示默认的403 Access Denied页面。
So within my VB.Net code I've tried this:
所以在我的VB.Net代码中我试过这个:
HttpContext.Current.Response.StatusCode = 403
HttpContext.Current.Response.Status = "403 Access Denied"
HttpContext.Current.Response.End()
But when this is called I just get:
但当这个叫做时,我得到:
This page Can't be displayed
此页面无法显示
I thought I would be able to display the default/inbuilt 403 page, or am I way off with this?
我以为我能够显示默认/内置403页面,还是我离开这个?