简体   繁体   中英

Root Path Problem in asp.net?

in my application a link button is there when i click on it it redirect to another page. But when i click on that page it is giving error like this...

Cannot use a leading .. to exit above the top directory. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Cannot use a leading .. to exit above the top directory.

You have a link that tries to go above the root of the website.

For example:

http://example.com/..

Solution? Don't do that.

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