* TemplateParser.cs: FindNamespaceInAssembly must catch
ReflectionTypeLoadException so that it doesn't break on invalid
assemblies.
svn path=/trunk/mcs/; revision=141962
* PageParser.cs: 2.0 profile takes advantage of the inputFile
parameter to GetCompiledPageInstance. A check is made whether the
file pointed to by this parameter is inside the application's
virtual path and if not, the compilation request is assumed to
refer to a fake location. Part of fix for bug #463813
2009-08-24 Marek Habersack <[email protected]>
* PageBuildProvider.cs: MapPath now takes a VirtualPath
instance. Part of fix for bug #463813
* BuildManager.cs: public APIs which take virtual path strings as
their parameters got internal counterparts accepting a VirtualPath
instance in place of string. Part of fix for bug #463813
* GenericBuildProvider.cs:
MapPath now takes a VirtualPath instance. Part of fix for bug
#463813
2009-08-24 Marek Habersack <[email protected]>
* SoapDocumentationHandler.cs: get rid of the ugly fake virtual
path hack when creating the helper page. Part of fix for bug
#463813
2009-08-24 Marek Habersack <[email protected]>
* VirtualPath.cs: Added new constructor which takes virtual and
physical paths as well as a boolean marking the instance as
referring to a fake location. Part of fix for bug #463813
svn path=/trunk/mcs/; revision=140548
* ControlBuilder.cs: Location property makes a copy of assigned
ILocation now.
2009-08-20 Marek Habersack <[email protected]>
* ControlAdapter.cs: check if Control isn't null before using it.
CreateChildControls () must forward call to the control. Fixes bug
#517172
2009-08-20 Marek Habersack <[email protected]>
* ControlAdapterTest.cs: added test for bug #517172
svn path=/trunk/mcs/; revision=140299
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/DuplicateControlsInClientComment.aspx
2009-08-18 Marek Habersack <[email protected]>
* ControlBuilder.cs: Location property makes a copy of assigned
ILocation now.
2009-08-18 Marek Habersack <[email protected]>
* AspParser.cs: added a constructor which creates an internal
parser, nested within the outer one, and adjusts its ILocation
members to report correct locations in the outer parser for better
error reporting. Inner parser also returns the outer's FileText,
if available.
* AspGenerator.cs: restored part of r138474 reverted in r138657,
r138658 and r138659 to fix bug #525104
BuilderLocation creates a copy of Location for its own use (since
the ILocation passed is actually AspParser, the line numbers
change between creating a BuilderLocation and using its Location
member).
The end of tag, expression and client comment regular expressions
now use lazy quantifiers. This fixes bugs #525104 and #517656
Client side comment blocks aren't ignored anymore, they are parsed
just as the other parts of the document. Fixes bug #524358
2009-08-18 Marek Habersack <[email protected]>
* JavaScriptSerializer.cs: read converters from the config only if
explicitly requested.
2009-08-18 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #525104 and
improved test for bug #517656
svn path=/trunk/mcs/; revision=140161
* ControlBuilder.cs: when CreateSubBuilder is called on a builder
which is supposed to treat its children as properties and the
default property builder is defined, first check if the tag which
has just been parsed isn't a template property. If it is, don't
use the default property builder, instead create a template
property builder directly. Fixes bug #527753
svn path=/trunk/mcs/; revision=139895
* AspGenerator.cs:
Check for duplicate control IDs at the end of parse. Fixes bug
#524358
2009-07-23 Marek Habersack <[email protected]>
* ControlBuilder.cs: added an internal helper property
IsNamingContainer.
2009-07-23 Marek Habersack <[email protected]>
* HttpException.cs: if an exception is processed which refers to
internal "files", don't show the internal name.
svn path=/trunk/mcs/; revision=138521
* SimpleWebHandlerParser.cs: make sure to ignore invalid bin/
assemblies in AddAssembliesInBin and GetTypeFromBin.
svn path=/trunk/mcs/; revision=138245
* TemplateParser.cs: AddAssembliesInBin (1.1 profile) tries to
load every assembly in order to see if it's a valid one. All bad
dll image errors are silently ignored. Fixes bug #315816
svn path=/trunk/mcs/; revision=136089
* VirtualPathUtility.cs: IsValidVirtualPath no longer uses
WebConfigurationManager.GetSection to retrieve the verification
setting. Instead, the setting is retrieved in the static
constructor.
* HttpRequest.cs: ApplyUrlMapping must not use
WebConfigurationManager.GetSection as it would cause a recursive
call loop. Code to detect whether url mappings are in effect has
been moved to a static constructor.
2009-06-05 Marek Habersack <[email protected]>
* Page.cs: InitializeTheme uses WebConfigurationManager.GetSection
to retrieve page theme name. GetWebApplicationSection cannot be
used because the system.web/pages section is valid also in
subdirectories. Fixes bug #510302
2009-06-05 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: OpenWebConfiguration caches
configurations with a key generated from all the parameters passed
to it, not just from path.
Added internal GetSection method which takes HttpContext as its
third parameter - used in calling OpenWebConfiguration.
FindWebConfig is no longer used in GetSection - it breaks handling
of <location> elements in config files. Fixes bug #510302
svn path=/trunk/mcs/; revision=135558
* ClientScriptManager.cs: WriteHiddenFields doesn't add the id
attribute to generated input element in the 1.1 profile. Fixes bug
#508167. Patch from Hubert FONGARNAND
<[email protected]>, thanks!
svn path=/trunk/mcs/; revision=135134
* ListItem.cs: when tracking view state is turned on after
attributes have been set, make sure that the associated state bag
begins tracking state and that all of its existing items are
marked as dirty. Do the same after loading view state. Fixes bug
#507836
2009-05-29 Marek Habersack <[email protected]>
* StateBag.cs: made SetDirty (bool) available on 1.1 as
internal. Fixes bug #507836
svn path=/trunk/mcs/; revision=135057
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ExpressionInListControl.aspx
2009-05-10 Marek Habersack <[email protected]>
* AspGenerator.cs: keep processing the tag if it is not a server
one and contains expressions and no code render blocks.
2009-05-10 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added a test for expressions in
list control items.
svn path=/trunk/mcs/; revision=133861
* TemplateParser.cs: PageParserFilterType uses
HttpApplication.LoadType so that it is able to load the filter
from App_Code or with not fully qualified type names.
svn path=/trunk/mcs/; revision=133606
* ThemeDirectoryBuildProvider.cs: use new AspGenerator constructor
which takes AspComponentFoundery as its
parameter. AspGenerator.RootBuilder isn't initialized until after
the parser is initialized.
* TemplateControlCompiler.cs: make sure to call
ProcessGeneratedCode on each instance of ControlBuilder after it's
fully generated. Fixes bug #500075
* TemplateBuildProvider.cs: moved the directive regex to
AspGenerator
* BaseCompiler.cs: added two internal properties, BaseType and
DerivedType, which are used in calls to
ControlBuilder.ProcessGeneratedCode. Fixes bug #500075
* AspGenerator.cs: implemented a work around for our parser
limitation which is unable to extract the page/control's base type
before parsing the actual file contents. This is necessary to
support ASP.NET MVC's "generic" Inherits attribute. The reason we
need to find out what the base type is before parsing the file is
that we need to look at the type's custom attributes to see if a
root control builder type is specified (which is what ASP.NET MVC
does) and, if yes, use it instead of the default type. Fixes bug
#500075
2009-05-04 Marek Habersack <[email protected]>
* TemplateParser.cs: take RootBuilder from the associated
generator.
Allow the main page directive to be added twice if the parser
needs it. Used by AspGenerator when extracting the inherited type
name before actual parsing. Fixes bug #500075
* FileLevelControlBuilderAttribute.cs,
FileLevelPageControlBuilder.cs, FileLevelUserControlBuilder.cs:
implemented
* ControlBuilder.cs: added a new internal property,
DataBindingMethod.
Implemented ProcessGeneratedCode.
svn path=/trunk/mcs/; revision=133500
* BuildManager.cs: when BuildInner catches a compilation
exception, wrap it in HttpException before re-throwing.
2009-04-30 Marek Habersack <[email protected]>
* TemplateParser.cs: removed the PageParserFilterTypeName
property, the filter type name is looked up on demand now.
* ApplicationFileParser.cs, MasterPageParser.cs,
UserControlParser.cs: load config defaults explicitly after
initializing the instance.
svn path=/trunk/mcs/; revision=133169
* MetaTable.cs: implemented the DataContextType,
DataContextPropertyName properties and the ToString method.
* MetaColumn.cs: implemented the Scaffold, DisplayName,
SortExpression, UIHint properties and the ToString method.
* DynamicField.cs: implemented
* DynamicDataManager.cs: partially implemented RegisterControl.
Added internal AutoFieldGenerator class, used by RegisterControl
when dealing with GridView.
Implemented some properties.
* DynamicDataExtensions.cs: implemented GetTable and FindMetaTable
* DynamicControl.cs: implemented parts of the class.
2009-04-29 Marek Habersack <[email protected]>
* DataBoundControl.cs: added InternalGetDataSource method, used by
DynamicData
2009-04-29 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added InternalsVisibleTo for
System.Web.DynamicData
2009-04-29 Marek Habersack <[email protected]>
* Test/System.Web.DynamicData.ModelProviders/TableProviderTest.cs:
added
* System.Web.DynamicData_test.dll.sources: added
System.Web.DynamicData/DynamicDataManagerTest.cs,
System.Web.DynamicData/DynamicDataExtensionsTest.cs,
System.Web.DynamicData.ModelProviders/TableProviderTest.cs
* System.Web.DynamicData.dll.sources: added
System.Web.DynamicData.ModelProviders/DLinqAssociationProvider.cs
System.Web.DynamicData.ModelProviders/DLinqColumnProvider.cs
System.Web.DynamicData.ModelProviders/DLinqDataModelProvider.cs
System.Web.DynamicData.ModelProviders/DLinqTableProvider.cs and
removed
System.Web.DynamicData.ModelProviders/DLinqDataModelProviders.cs
2009-04-29 Marek Habersack <[email protected]>
* TableProvider.cs: implemented
* DLinqDataModelProvider.cs: renamed from
DLinqDataModelProviders.cs and moved some classes to separate
files.
* DLinqTableProvider.cs: moved to here from
DLinqDataModelProvider.cs
* DLinqColumnProvider.cs: moved to here from
DLinqDataModelProvider.cs
* DLinqAssociationProvider.cs: added
2009-04-29 Marek Habersack <[email protected]>
* DataBinder.cs: GetPropertyValue must throw also if propName is
empty.
2009-04-23 Marek Habersack <[email protected]>
* ContextConfiguration.cs: implemented all the methods and added a
parameterless constructor.
2009-04-23 Marek Habersack <[email protected]>
* System.Web.DynamicData_test.dll.sources: added
System.Web.DynamicData/ContextConfigurationTest.cs
* Makefile: tests need to be linked with
System.ComponentModel.DataAnnotations.dll
2009-04-23 Marek Habersack <[email protected]>
* AssociatedMetadataTypeTypeDescriptor.cs: added - doesn't add any
real functionality yet.
* AssociatedMetadataTypeTypeDescriptionProvider.cs: implemented
all the methods.
2009-04-23 Marek Habersack <[email protected]>
* System.ComponentModel.DataAnnotations_test.dll.sources: added
* System.ComponentModel.DataAnnotations.dll.sources: added
System.ComponentModel.DataAnnotations/AssociatedMetadataTypeTypeDescriptor.cs
* Makefile: enabled tests
2009-04-23 Marek Habersack <[email protected]>
* ContextConfigurationTest.cs: added
svn path=/trunk/mcs/; revision=133003
* System.Web_test.dll.sources: added
System.Web.UI/PageParserFilterTest.cs
2009-04-24 Marek Habersack <[email protected]>
* TemplateParser.cs: PageParserFilter.Initialize now takes just
one parameter.
* PageParserFilter.cs: a few alignments for .NET compatibility in
the default behavior.
2009-04-24 Marek Habersack <[email protected]>
* AspGenerator.cs: ProcessCode should _not_ stop processing the
passed code string if the filter's ProcessCodeConstruct returns
false. Fixes bug #497775
2009-04-24 Marek Habersack <[email protected]>
* PageParserFilterTest.cs: added
svn path=/trunk/mcs/; revision=132607
* PageCompiler.cs: implemented new way of setting output cache
parameters in the 2.0 profile. The generated code is now the same
as on .NET and uses the OutputCacheParameters class to pass
settings to InitOutputCache.
2009-04-21 Marek Habersack <[email protected]>
* Page.cs: added support for OutputCacheParameters.NoStore to
InitOutputCache.
* TemplateParser.cs:
Added support for the SqlDependency, NoStore and CacheProfile
attributes of the OutputCache directive. Fixes bug #496951
svn path=/trunk/mcs/; revision=132312
* SimpleWebHandlerParser.cs: retrieve CompilationSection from the
appropriate web.config file.
* BaseParser.cs: moved the internal property VirtualPath from
TemplateParser to here and added an internal method
GetConfigSection to retrieve sections from the correct web.config
file on 2.0 applications. Fixes bug #494245
* PageParser.cs: use the new GetConfigSection method to retrieve
ClientTargetSection.
* TemplateParser.cs: moved the VirtualPath property to
BaseParser.
PagesConfig now uses the new GetConfigSection method. Fixes bug
#494245
svn path=/trunk/mcs/; revision=132300
* TemplateParser.cs: use generic lists for import, namespace and
interface caches. If a namespace is added (e.g. by parsing the
Import directive), find the assembly in which namespace is
defined.
2009-04-15 Marek Habersack <[email protected]>
* BuildManager.cs: do not add all assemblies in bin/ when serving
a precompiled site. Fixes bug #493873
When serving a precompiled site, check if the bin/ directory
contains certain well-known assemblies and load them if present.
svn path=/trunk/mcs/; revision=131768
* HttpRuntime.cs: added a new internal static property
IsDebuggingEnabled
* HttpContext.cs: IsDebuggingEnabled now calls
HttpRuntime.IsDebuggingEnabled
2009-04-06 Marek Habersack <[email protected]>
* Page.cs: ProcessRaiseCallbackEvent and ProcessGetCallbackResult
now return full exception trace if one is caught and we're running
in debugging mode.
2009-04-06 Marek Habersack <[email protected]>
* TreeView.js: TreeView_ToggleExpand now takes more parameters - a
full definition of treeview's node contents.
Added new function, TreeView_PopulateNode, which partially takes
over role of the PopulateNode function generated in
TreeView.OnPreRender (see below). Fixes bug #492307
* TreeView.cs: RaiseCallbackEvent needs to recreate the event
target's parental tree all the way from the root to the node and
populate only the leaf (requested) node. This avoids calling the
TreeNodePopulate handler more times than needed. Fixes bug #492307
OnPreRender: moved the script code to constants and the script
body is now generated using StringBuilder instead of a series of
String.Format calls.
GetClientExpandEvent: adjusted code for new TreeView JavaScript
API.
svn path=/trunk/mcs/; revision=131137
* Page.cs: SavePageViewState saves the list of controls which
require post back regardless of whether view state is disabled or
not. Fixes bug #490753
svn path=/trunk/mcs/; revision=130694
* All of the below are part of the fix for bug #489687
* ThemeDirectoryCompiler.cs: pass VirtualPath instances to parser
constructors.
* BuildProvider.cs: associated virtual path is stored internally
as an instance of VirtualPath, accessible via new
VirtualPathInternal property.
* BuildManagerDirectoryBuilder.cs: VirtualPath.IsFake is used to
detect fake virtual paths.
GetBuildProvider now takes a VirtualPath instead of string for the
virtualPath parameter. The passed VirtualPath instance is passed
unchanged to BuildProvider.
* BuildManager.cs: AssertVirtualPathExists now uses
VirtualPath.IsFake to check for fake virtual paths.
* ApplicationFileBuildProvider.cs, GenericBuildProvider.cs,
MasterPageBuildProvider.cs, PageBuildProvider.cs,
ThemeBuildProvider.cs, UserControlBuildProvider.cs,
WebHandlerBuildProvider.cs, WebServiceBuildProvider.cs:
CreateParser overloads now take a VirtualPath instead of a string
for the virtualPath parameter.
* ThemeBuildProvider.cs: use new parser constructors which take
VirtualPath instances instead of strings.
2009-03-31 Marek Habersack <[email protected]>
* VirtualPath.cs: added code to detect whether the VirtualPath
instance represents a fake virtual path (IsFake property).
Added new property DirectoryNoNormalize which returns
non-normalized directory for the VirtualPath instance.
Made ToString () a bit more friendly and well-behaved.
2009-03-31 Marek Habersack <[email protected]>
* ApplicationFileParser.cs, MasterPageParser.cs, PageParser.cs,
PageThemeFileParser.cs, PageThemeParser.cs, UserControlParser.cs,
WebHandlerParser.cs, WebServiceParser.cs: 2.0 constructors take a
VirtualPath instance for the virtualPath parameter, instead of a
string.
svn path=/trunk/mcs/; revision=130665
* Control.cs: AppRelativeResourceDirectory no longer returns a
hard-coded "~/" when template control's virtual path cannot be
determined. It returns application relative version of
TemplateSourceDirectory instead.
svn path=/trunk/mcs/; revision=129676
* Control.cs: clear the controls cache on control removal. This
ensures that a subsequent FindControl call won't return the
removed control.
svn path=/trunk/mcs/; revision=129234
* ControlBuilder.cs: BindingContainerType - if control type of the
containing builder is null, return typeof (Control)
svn path=/trunk/mcs/; revision=128796
* BaseParser.cs:
* PageParser.cs:
* ControlBuilder.cs:
* TemplateParser.cs:
* Page.cs:
* SimpleWebHandlerParser.cs: settings that have to be in
machine.config or the root level web.config now call
GetWebApplicationSection.
svn path=/trunk/mcs/; revision=128273
* System.Web/HttpWriter.cs: new Response property and WriteUTF8Ptr
method.
* System.Web/HttpResponseStream.cs: added support for writing from an
IntPtr. copied the memcpy method from String.cs.
* System.Web.Compilation/BuildManager.cs: updated comment.
* System.Web.UI/ResourceBasedLiteralControl.cs: new Control. It's just
like a LiteralControl but will render itself from the bytes pointed to
by an IntPtr and not create any string from the underlying data unless
needed.
* System.Web.UI/TemplateControl.cs: implemented a bunch of methods
that are used from the precompiled assemblies for a web project. The
most notable change needed is to be able to read a win32 resource from
the dll of the control. The resource is a concatenation of literals
with plain text for the control and a specialized LiteralControl is
generated from different chunks of the resource.
* System.Web.UI/HtmlTextWriter.cs: new method that returns the
HttpWriter in use.
* System.Web.dll.sources: added new file.
* System.Web.Util/ICalls.cs: new internal call to get a pointer to the
win32 resource associated with the control's assembly.
svn path=/trunk/mcs/; revision=127579
* System.Web/HttpApplicationFactory.cs: check of global.asax was precompiled.
* System.Web.UI/MasterPage.cs: the items in ContentPlaceHolders are lowercase.
* System.Web.Compilation/TemplateControlCompiler.cs: lowercase place holder names
* System.Web.Compilation/BuildManager.cs: initial support for
precompilation. No 'updatable', please.
svn path=/trunk/mcs/; revision=127352
* TemplateParser.cs: don't initialize PageParserFilter in
LoadConfigDefaults, postpone it till the first time the
PageParserFilter property is accessed.
* ApplicationFileParser.cs, UserControlParser.cs: make sure
VirtualPath is set in the constructors.
svn path=/trunk/mcs/; revision=127333
* AspParser.cs: added an event raised when parsing is complete.
* AspGenerator.cs: added support for PageParserFilter which, if
found, is used to control certain aspects of code parsing
(accepting/rejecting control types, accepting/rejecting code
snippets, parsing completion)
Added the AddControl method, used by PageParserFilter when a
custom filter wants to inject a control in the current control
builder tree.
2009-02-13 Marek Habersack <[email protected]>
* TemplateParser.cs: PageParserFilter handling moved to here.
PagesConfig must use the current virtual path when retrieving the
section, or otherwise we'll miss the lower level web.configs.
Added the AddControl method, used by PageParserFilter.
Implementing filtering of: parsed directives and the base type, if
a page parser filter is present.
* PageParserFilter.cs: added missing 3.5 members and implemented
everything.
* PageParser.cs: moved PageParserFilter processing to
TemplateParser.
VirtualPath must be set before anything else.
Call page parser filter's directive preprocessing code from
AddDirective if a filter is present and a mastertype or
previouspagetype directive is parsed.
* MasterPageParser.cs: when PageParserFilter is present use it to
preprocess the MasterType directive.
svn path=/trunk/mcs/; revision=126855
* Control.cs: partially restore the ViewStateShouldBeSaved method
in order to introduce a small optimization - when the control's
EnableViewState is false, there is no point in checking all the
child controls.
svn path=/trunk/mcs/; revision=126037