简体   繁体   中英

Conditional redirect on application launch C# MVC

We have developed one application in asp.net mvc 5.0, at the start of application its our requirement to check if some file are exist or not at particular location.

If file exist the normal flow continue to display login page etc. But if the file does not exists application should redirect to another informative view.

I tried doing the same in global.asax in application_start with no success.

Can anyone please provide some inputs on the same.

Thanks.

我不太记得asp,但是它不像使用File.Exists一样简单吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM