c# - in ASP.NET MVC3 how can I see the request? -
i'm using simple route as
routes.maproute( "default2", // route name "{cliurl}/{id}", // url parameters new { cliurl = "none", controller = "abook", action = "index", id = "none" } // parameter defaults ); routes.maproute( "default", // route name "{cliurl}/{controller}/{action}/{id}", // url parameters new { cliurl = "none", controller = "abook", action = "index", id = "none" } // parameter defaults ); and when debug website (vs2010 sp1), have breakpoint in abook controller, inside index action method witch contains only:
// // get: /abook/ public actionresult index() { if (currentclient == null) return redirecttoaction("empty"); return view(); } // // get: /empty/ public actionresult empty() { return view(); } the thing that, when insert in browser:
http://localhost:14951/client_name/hashed_id i 3 breaks in breakpoint.
how can see in world going on? why 3 times when requested 1, browser requesting?
i can route parameters , first correct, 2nd , 3rd using default values, , tried navigate through requestcontext , can't see useful :(
just want know if there way see what's been requested.
Comments
Post a Comment