PageParser.cs 875 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. IHttpHandler h = (IHttpHandler) pp.GetCompiledInstance (virtualPath, inputFile, context);
  22. return h;
  23. }
  24. protected override Type CompileIntoType ()
  25. {
  26. return PageCompiler.CompilePageType (this);
  27. }
  28. protected override Type DefaultBaseType
  29. {
  30. get {
  31. return typeof (Page);
  32. }
  33. }
  34. protected override string DefaultDirectiveName
  35. {
  36. get {
  37. return "page";
  38. }
  39. }
  40. }
  41. }