MyDynamicDataRouteHandler.cs 692 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Web;
  6. using System.Web.UI;
  7. using System.Web.DynamicData;
  8. namespace MonoTests.Common
  9. {
  10. class MyDynamicDataRouteHandler : DynamicDataRouteHandler
  11. {
  12. public string DoGetCustomPageVirtualPath (MetaTable table, string viewName)
  13. {
  14. return GetCustomPageVirtualPath (table, viewName);
  15. }
  16. public string DoGetScaffoldPageVirtualPath (MetaTable table, string viewName)
  17. {
  18. return GetScaffoldPageVirtualPath (table, viewName);
  19. }
  20. public override IHttpHandler CreateHandler (DynamicDataRoute route, MetaTable table, string action)
  21. {
  22. return new Page () as IHttpHandler;
  23. }
  24. }
  25. }