Get a complete url like http://google.com as action input

后端 未结 2 538
刺人心
刺人心 2021-01-21 07:19

I want to get url in my action to return the page\'s PageRank. I have a route like this:

routes.MapRoute(
    name: \"PRURL\",
    url: \"Utility/PR/{*url}\",
           


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-21 08:08

    Try to add a requestPathInvalidCharacters attribute to httpRuntime

    
    

    The default value is <,>,*,%,&,:,\,?

提交回复
热议问题