PageParser.cs 852 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // System.Web.UI.PageParser
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc (http://www.ximian.com)
  8. //
  9. using System;
  10. using System.Web;
  11. using System.Web.Compilation;
  12. namespace System.Web.UI
  13. {
  14. public sealed class PageParser : TemplateControlParser
  15. {
  16. public static IHttpHandler GetCompiledPageInstance (string virtualPath,
  17. string inputFile,
  18. HttpContext context)
  19. {
  20. PageParser pp = new PageParser ();
  21. return (IHttpHandler) pp.GetCompiledInstance (virtualPath, inputFile, context);
  22. }
  23. protected override Type CompileIntoType ()
  24. {
  25. return PageCompiler.CompilePageType (this);
  26. }
  27. protected override Type DefaultBaseType
  28. {
  29. get {
  30. return typeof (Page);
  31. }
  32. }
  33. protected override string DefaultDirectiveName
  34. {
  35. get {
  36. return "page";
  37. }
  38. }
  39. }
  40. }