Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Web.Routing;
- using GenericHandlerRouting.Handlers;
- namespace GenericHandlerRouting
- {
- public static class RouteConfig
- {
- public static void RegisterRoutes(RouteCollection routes)
- {
- /*
- * System.Web.HttpException:
- * Тип 'GenericHandlerRouting.Handlers.DataHandler' не является производным от 'System.Web.UI.Page'.
- */
- routes.MapPageRoute("RouteDataPage", "somehandler/{dataKey}", "~/Handlers/DataHandler.ashx");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment