मैं एमवीसी (और एएसपी.Net रूटिंग) के लिए नया हूं। मैं * .aspx को PageController
नामक नियंत्रक को मैप करने का प्रयास कर रहा हूं।एएसपी.NET एमवीसी मार्ग मैपिंग
routes.MapRoute(
"Page",
"{name}.aspx",
new { controller = "Page", action = "Index", id = "" }
);
नहीं चाहेंगे PageController
के लिए ऊपर नक्शा * .aspx कोड? जब मैं किसी .aspx पेज मैं निम्नलिखित त्रुटि मिलती है में इस और प्रकार चला:
The controller for path '/Page.aspx' could not be found or it does not implement the IController interface. Parameter name: controllerType
वहाँ कुछ मैं यहाँ नहीं कर रहा हूँ है?