hiện tại mình đang làm đồ án về web site nghe nhac,,, bây giờ yêu cầu giáo viên là khi mình thay doi url của trang web nó sẽ hiện là trang web ko tồn tại thay vi nó báo lỗi...
cái này bạn tìm hiểu về httpErrors hoặc customErrors . Config trong web.config Mã:<httpErrors errorMode="Custom"> <remove statusCode="400" subStatusCode="-1" /> <error statusCode="400" prefixLanguageFilePath="" path=""/ErrorPage.aspx?error=400" responseMode="ExecuteURL" /> <remove statusCode="404" subStatusCode="-1" /> <error statusCode="404" prefixLanguageFilePath="" path="/ErrorPage.aspx?error=404" responseMode="ExecuteURL" /> <remove statusCode="500" subStatusCode="-1" /> <error statusCode="500" prefixLanguageFilePath="" path="/ErrorPage.aspx?error=500" responseMode="ExecuteURL" /> </httpErrors> </httpErrors>