Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / BaseParser.cs / 1 / BaseParser.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Implements the ASP.NET template parser * * Copyright (c) 1998 Microsoft Corporation */ /********************************* Class hierarchy BaseParser DependencyParser TemplateControlDependencyParser PageDependencyParser UserControlDependencyParser MasterPageDependencyParser TemplateParser BaseTemplateParser TemplateControlParser PageParser UserControlParser MasterPageParser PageThemeParser ApplicationFileParser **********************************/ namespace System.Web.UI { using System; using System.Collections; using System.Web.Hosting; using System.Web.Util; using System.Text.RegularExpressions; using System.Web.RegularExpressions; using System.Security.Permissions; // Internal interface for Parser that have exteranl assembly dependency. internal interface IAssemblyDependencyParser { ICollection AssemblyDependencies { get; } } ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class BaseParser { // The directory used for relative path calculations private VirtualPath _baseVirtualDir; internal VirtualPath BaseVirtualDir { get { return _baseVirtualDir; } } // The virtual path to the file currently being processed private VirtualPath _currentVirtualPath; internal VirtualPath CurrentVirtualPath { get { return _currentVirtualPath; } set { _currentVirtualPath = value; // Can happen in the designer if (value == null) return; _baseVirtualDir = value.Parent; } } internal string CurrentVirtualPathString { get { return System.Web.VirtualPath.GetVirtualPathString(CurrentVirtualPath); } } internal readonly static Regex tagRegex = new TagRegex(); internal readonly static Regex directiveRegex = new DirectiveRegex(); internal readonly static Regex endtagRegex = new EndTagRegex(); internal readonly static Regex aspCodeRegex = new AspCodeRegex(); internal readonly static Regex aspExprRegex = new AspExprRegex(); internal readonly static Regex databindExprRegex = new DatabindExprRegex(); internal readonly static Regex commentRegex = new CommentRegex(); internal readonly static Regex includeRegex = new IncludeRegex(); internal readonly static Regex textRegex = new TextRegex(); // Regexes used in DetectSpecialServerTagError internal readonly static Regex gtRegex = new GTRegex(); internal readonly static Regex ltRegex = new LTRegex(); internal readonly static Regex serverTagsRegex = new ServerTagsRegex(); internal readonly static Regex runatServerRegex = new RunatServerRegex(); /* * Turns relative virtual path into absolute ones */ internal VirtualPath ResolveVirtualPath(VirtualPath virtualPath) { return VirtualPathProvider.CombineVirtualPathsInternal(CurrentVirtualPath, virtualPath); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * Implements the ASP.NET template parser * * Copyright (c) 1998 Microsoft Corporation */ /********************************* Class hierarchy BaseParser DependencyParser TemplateControlDependencyParser PageDependencyParser UserControlDependencyParser MasterPageDependencyParser TemplateParser BaseTemplateParser TemplateControlParser PageParser UserControlParser MasterPageParser PageThemeParser ApplicationFileParser **********************************/ namespace System.Web.UI { using System; using System.Collections; using System.Web.Hosting; using System.Web.Util; using System.Text.RegularExpressions; using System.Web.RegularExpressions; using System.Security.Permissions; // Internal interface for Parser that have exteranl assembly dependency. internal interface IAssemblyDependencyParser { ICollection AssemblyDependencies { get; } } ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class BaseParser { // The directory used for relative path calculations private VirtualPath _baseVirtualDir; internal VirtualPath BaseVirtualDir { get { return _baseVirtualDir; } } // The virtual path to the file currently being processed private VirtualPath _currentVirtualPath; internal VirtualPath CurrentVirtualPath { get { return _currentVirtualPath; } set { _currentVirtualPath = value; // Can happen in the designer if (value == null) return; _baseVirtualDir = value.Parent; } } internal string CurrentVirtualPathString { get { return System.Web.VirtualPath.GetVirtualPathString(CurrentVirtualPath); } } internal readonly static Regex tagRegex = new TagRegex(); internal readonly static Regex directiveRegex = new DirectiveRegex(); internal readonly static Regex endtagRegex = new EndTagRegex(); internal readonly static Regex aspCodeRegex = new AspCodeRegex(); internal readonly static Regex aspExprRegex = new AspExprRegex(); internal readonly static Regex databindExprRegex = new DatabindExprRegex(); internal readonly static Regex commentRegex = new CommentRegex(); internal readonly static Regex includeRegex = new IncludeRegex(); internal readonly static Regex textRegex = new TextRegex(); // Regexes used in DetectSpecialServerTagError internal readonly static Regex gtRegex = new GTRegex(); internal readonly static Regex ltRegex = new LTRegex(); internal readonly static Regex serverTagsRegex = new ServerTagsRegex(); internal readonly static Regex runatServerRegex = new RunatServerRegex(); /* * Turns relative virtual path into absolute ones */ internal VirtualPath ResolveVirtualPath(VirtualPath virtualPath) { return VirtualPathProvider.CombineVirtualPathsInternal(CurrentVirtualPath, virtualPath); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignerVerb.cs
- DbConnectionPoolCounters.cs
- WorkflowRuntime.cs
- WebPartCatalogAddVerb.cs
- RuleSettings.cs
- StaticContext.cs
- UpdatePanelTriggerCollection.cs
- LoginUtil.cs
- DesignerView.cs
- SQLInt32Storage.cs
- ExcCanonicalXml.cs
- PersistChildrenAttribute.cs
- OleCmdHelper.cs
- ConstructorExpr.cs
- DataGridViewCellLinkedList.cs
- TargetFrameworkAttribute.cs
- UInt16Storage.cs
- PrefixHandle.cs
- ZipIOLocalFileBlock.cs
- MimePart.cs
- IsolatedStorageSecurityState.cs
- NullableDecimalSumAggregationOperator.cs
- XamlPathDataSerializer.cs
- MessageSmuggler.cs
- WebBrowserSiteBase.cs
- MaskDescriptors.cs
- PEFileReader.cs
- SystemIPv6InterfaceProperties.cs
- TableStyle.cs
- DynamicHyperLink.cs
- SystemWebExtensionsSectionGroup.cs
- WebPartEventArgs.cs
- ExeConfigurationFileMap.cs
- SpeechRecognizer.cs
- ToolStripDropDownMenu.cs
- FtpRequestCacheValidator.cs
- EventNotify.cs
- DecoderExceptionFallback.cs
- ConfigErrorGlyph.cs
- EnumUnknown.cs
- XmlComment.cs
- X509Certificate.cs
- LiteralLink.cs
- WindowsIdentity.cs
- Environment.cs
- DataGridViewToolTip.cs
- SimpleTypeResolver.cs
- SessionIDManager.cs
- StringUtil.cs
- RoutedEvent.cs
- TextTreeRootTextBlock.cs
- ExpressionBindingCollection.cs
- StoreUtilities.cs
- DataComponentMethodGenerator.cs
- CardSpaceException.cs
- LOSFormatter.cs
- ListenerConnectionModeReader.cs
- UriExt.cs
- Int64Animation.cs
- precedingsibling.cs
- EastAsianLunisolarCalendar.cs
- ScrollProperties.cs
- WebPartManagerInternals.cs
- Rect3DValueSerializer.cs
- ZoomPercentageConverter.cs
- DataGridSortCommandEventArgs.cs
- MoveSizeWinEventHandler.cs
- XsltQilFactory.cs
- ShapingWorkspace.cs
- DLinqColumnProvider.cs
- DivideByZeroException.cs
- FormViewRow.cs
- DataListItemCollection.cs
- ETagAttribute.cs
- AttributeQuery.cs
- MessageQueue.cs
- LinkClickEvent.cs
- XmlSchemaComplexContentExtension.cs
- CodeAttributeArgument.cs
- EncryptRequest.cs
- ModelPropertyDescriptor.cs
- AnnotationAuthorChangedEventArgs.cs
- ArrayHelper.cs
- SqlTypeSystemProvider.cs
- GPRECTF.cs
- XmlSerializerOperationFormatter.cs
- HighlightComponent.cs
- _StreamFramer.cs
- DBSqlParserTable.cs
- BufferModesCollection.cs
- HoistedLocals.cs
- DataPager.cs
- BamlRecordWriter.cs
- ToolStripKeyboardHandlingService.cs
- OpacityConverter.cs
- ObjectParameter.cs
- FloaterParaClient.cs
- FloatUtil.cs
- WorkflowLayouts.cs
- SkinBuilder.cs