SanSYS

sansys.net: http://goo.gl/92CHdD

Mar 11th, 2015
8,347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System.Web.Routing;
  2. using GenericHandlerRouting.Handlers;
  3.  
  4. namespace GenericHandlerRouting
  5. {
  6.     public static class RouteConfig
  7.     {
  8.         public static void RegisterRoutes(RouteCollection routes)
  9.         {
  10.             /*
  11.              * System.Web.HttpException:
  12.              * Тип 'GenericHandlerRouting.Handlers.DataHandler' не является производным от 'System.Web.UI.Page'.
  13.              */
  14.  
  15.             routes.MapPageRoute("RouteDataPage", "somehandler/{dataKey}", "~/Handlers/DataHandler.ashx");
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment