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
- GAC.cs
- GeneralTransformCollection.cs
- ForEachAction.cs
- ExtendedPropertyInfo.cs
- MarkupWriter.cs
- DefaultCommandExtensionCallback.cs
- TextMarkerSource.cs
- SigningCredentials.cs
- RemoteWebConfigurationHostStream.cs
- HandlerMappingMemo.cs
- SchemaImporterExtensionElementCollection.cs
- DataControlPagerLinkButton.cs
- DoubleCollectionValueSerializer.cs
- XmlCharCheckingWriter.cs
- TypeListConverter.cs
- SessionStateContainer.cs
- WebAdminConfigurationHelper.cs
- GenericAuthenticationEventArgs.cs
- DesignTimeDataBinding.cs
- ListViewDeleteEventArgs.cs
- TreeView.cs
- ExpandableObjectConverter.cs
- TypeElement.cs
- DataGridViewCellValidatingEventArgs.cs
- ResourceDefaultValueAttribute.cs
- TextPattern.cs
- ProcessModelInfo.cs
- DrawListViewSubItemEventArgs.cs
- XmlSerializerOperationGenerator.cs
- Filter.cs
- Sequence.cs
- MediaEntryAttribute.cs
- TaskForm.cs
- RepeatBehaviorConverter.cs
- ToolStripOverflowButton.cs
- SplitterEvent.cs
- RenamedEventArgs.cs
- DoubleLinkListEnumerator.cs
- SqlLiftIndependentRowExpressions.cs
- SoapMessage.cs
- HostedHttpRequestAsyncResult.cs
- HyperLinkStyle.cs
- ReferentialConstraint.cs
- RectangleGeometry.cs
- JsonFormatGeneratorStatics.cs
- ResourceExpression.cs
- ObjectContextServiceProvider.cs
- Site.cs
- Message.cs
- StateMachineWorkflowDesigner.cs
- ProfessionalColorTable.cs
- ToolBarButtonClickEvent.cs
- WebPageTraceListener.cs
- DataSourceProvider.cs
- SqlTypeSystemProvider.cs
- DynamicValidatorEventArgs.cs
- SimpleApplicationHost.cs
- XLinq.cs
- DataRow.cs
- SqlDataSourceSelectingEventArgs.cs
- RemoteHelper.cs
- PropertyEmitter.cs
- NamedServiceModelExtensionCollectionElement.cs
- DataGridViewAutoSizeModeEventArgs.cs
- VarRefManager.cs
- SecurityManager.cs
- ConfigurationSectionCollection.cs
- ApplicationSecurityManager.cs
- FormViewDeleteEventArgs.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- LexicalChunk.cs
- httpapplicationstate.cs
- AlignmentXValidation.cs
- propertyentry.cs
- ObjectHelper.cs
- PrimitiveType.cs
- XmlSchemaObjectTable.cs
- LineVisual.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- RuntimeWrappedException.cs
- FormsAuthenticationUser.cs
- SkinBuilder.cs
- Util.cs
- _SSPISessionCache.cs
- ClrPerspective.cs
- OutputCacheProfile.cs
- RowToParametersTransformer.cs
- BufferedGraphicsContext.cs
- ServicesUtilities.cs
- WebPartsPersonalization.cs
- DataListItemCollection.cs
- ProviderSettingsCollection.cs
- IndicShape.cs
- SQLInt32Storage.cs
- Crc32.cs
- QuaternionConverter.cs
- RadioButton.cs
- DocumentSequence.cs
- XmlComplianceUtil.cs
- HttpCookie.cs