* TemplateControlCompiler.cs (AddParsedSubObjectStmt): append the
calls to AddParsedSubObject to a special statement collection --
builder.flushOutputStatements -- not to builder.method.Statements.
(InitMethod): initially, set flushOutputStatements to
method.Statements. If we're dealing with a ContentPlaceHolder,
set flushOutputStatements to be the else block of a conditional we
create. This causes the compiled control to fall back to the
ContentPlaceHolder's child controls in case there's no
corresponding Content template.
* PageCompiler.cs (CreatePropertyAssign): factor out the
string,string implementation and add one that also takes a
CodeExpression; make the string,string implementation call the
three arg one with thisRef.
(AddStatementsToInitMethod): make use of the 3-arg form of
CreatePropertyAssign to reduce code. Also, add support for
setting the page's Title from the parser's Title.
svn path=/trunk/mcs/; revision=56635
* UserControlCompiler.cs (AddStatementsToInitMethod): emit code to
assign __ctrl.MasterPageFile to our master page, if we have one.
* PageCompiler.cs (CreateContructor): remove the MasterPageFile
assignment from here.
(AddStatementsToInitMethod): and move it here.
* TemplateControlCompiler.cs (InitMethod): in the case where
builder is a RootBuilder (we're building the __BuildControlTree
method), call a virtual method so that subclasses can add their
own statements to the method (used by both Page and MasterPage);
Also, in the RootBuilder case, the argument should be the
parser.ClassName type (the class we're building); lastly, expand
the ContentPlaceHolder logic to include all the
ContentTemplates/InstantiateIn magic.
(AddStatementsToInitMethod): empty virtual method.
(AddContentTemplateInvocation): ContentControlBuilder ->
ContentControlBuilderInternal.
(CreateControlTree): same.
(CallBaseFrameworkInitialize): new function, create call to
base.FrameworkInitialize.
(CreateFrameworkInitializeMethod): call CallBaseFrameworkIniitialize.
svn path=/trunk/mcs/; revision=56619
* AspComponentFoundry.cs (.ctor): use a 2.0 friendly form of the
Hashtable ctor to silence a couple of warning.
(CompoundFoundry.ctor): same
* Directive.cs (InitHash): use a 2.0 friendly form of the
Hashtable ctor to silence a couple of warning.
* TagAttributes.cs (MakeHash): use a 2.0 friendly form of the
Hashtable ctor to silence a warning.
(GetDictionary): same.
svn path=/trunk/mcs/; revision=55913
* AppSettingsExpressionBuilder.cs: implement this, patterning it
after an example on msdn. Also, enable the ExpressionEditor
attribute, but use the string rather than the Type overload so we
won't have yet another circular dep.
* ConnectionStringsExpressionBuilder.cs: partial implementation.
Same deal with the ExpressionEditor attribute.
* ResourceExpressionBuilder.cs: same deal with the
ExpressionEditor attribute.
svn path=/trunk/mcs/; revision=55907
* AspGenerator.cs: only do special processing for <script> if it has
the runat="server" attribute. Fixes bug #76918.
svn path=/trunk/mcs/; revision=53971
* CachingCompiler.cs:
* WebServiceCompiler.cs: when caching a type loaded from an assembly
that we didn't compile, make it depend on the file itself, not on a
non-existing cache key. This problem affected performance of web
services and .ashx, making unnecessary extra calls to LoadFrom every
time the cache was cleared.
svn path=/trunk/mcs/; revision=50542
* System.Web.Hosting/ApplicationHost.cs:
* System.Web.Compilation/BaseCompiler.cs: set the domain's DynamicBase
property instead of guessing it in BaseCompiler.
svn path=/trunk/mcs/; revision=49847
* TemplateControlCompiler.cs: comparison between member name and the
first part of the id provided by the user should also be
case-insensitive. Fixes bug #75379.
svn path=/trunk/mcs/; revision=46511
* CachingCompiler.cs: use cache.InsertPrivate.
* AspGenerator.cs: use cache.InsertPrivate. Removed extra call to
AddDependency.
svn path=/trunk/mcs/; revision=46508
* CachingCompiler.cs: create the assemly in the DynamicBase directory,
as all the others, when compiling an assembly from a Src file. Fixes
bug #75371.
svn path=/trunk/mcs/; revision=46471
* Directive.cs: Register the MasterType directive.
* PageCompiler.cs: If a MasterType is specified, add a type specific
Master property. All this fixes bug #75192.
svn path=/trunk/mcs/; revision=45885
* TemplateControlCompiler.cs: when mapping an attribute name to a field
or property name, there's no need to try with every property and field,
but just the one found when searching by name (no case). There was one
call to ProcessPropertiesAndFields per property or field until found,
now only one if the property/field is found, none otherwise.
svn path=/trunk/mcs/; revision=45808
* TemplateControlCompiler.cs: allow more than 2 levels when looking for
properties of fields for an attribute like "Prop1-Prop2-Prop3". Fixes
bug #75234.
svn path=/trunk/mcs/; revision=45807
* BaseCompiler.cs: when the OutputAssembly is null, we can still have
the assembly file there and be able to load it. Thanks to Rogerio and
Mark.
svn path=/trunk/mcs/; revision=45440
* System.Web.UI/Page.cs: added AddContentTemplate method.
* System.Web.Compilation/TemplateControlCompiler.cs: use the Page
AddContentTemplate method, as the one in Master is protected. Fixes
bug #75157.
svn path=/trunk/mcs/; revision=45418
* AspComponentFoundry.cs: tagnames have precedence over types in
assemblies when they use the same prefix. Fixes bug #71855.
svn path=/trunk/mcs/; revision=44172
* System.Web.Configuration/CompilerCollection.cs: added CompareLanguages
method.
* System.Web.Compilation/AspGenerator.cs: when checking languages, try
to match other aliases too (ie, 'cs' == 'c#').
svn path=/trunk/mcs/; revision=43567
* System.Web.Configuration/CompilationConfigurationHandler.cs: ensure
TempDirectory is not empty before assigning it. Don't mangle the
assembly names provided.
* System.Web.Configuration/CompilationConfiguration.cs: use DynamicBase
as the temp directory instead of Path.GetTempPath.
* System.Web.UI/SimpleWebHandlerParser.cs:
* System.Web.UI/TemplateParser.cs: always get the location (full path)
for assemblies, even the ones from the GAC.
* System.Web.Compilation/BaseCompiler.cs: check that DynamicBase
directory exists before creating the TempFileCollection.
The changes related to assembly names fix bug number #74500.
svn path=/trunk/mcs/; revision=43462
* AspParser.cs: don't error out on ill formed tags if it's not a server
tag (ie, allow something like '<table align="left cellpadding="0">' to
work, as MS does. Fixes bug #67909.
svn path=/trunk/mcs/; revision=43426
* BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
@Page/@Control directives to CodeDOM (VB.NET support)
svn path=/trunk/mcs/; revision=43356
* AspParser.cs: Fixed parsing of data binding tags in server
tag attributes. Allow <%...%> blocks not assigned to
attributes in client tags.
* TagAttributes.cs: Make sure that data binding blocks in server
tags are always assigned to attributes.
* TemplateControlCompiler.cs: Implemented support for two-way
binding.
svn path=/trunk/mcs/; revision=43277
* TemplateControlCompiler.cs: Use the new BindingContainerType
property to find the type of the binding container.
svn path=/trunk/mcs/; revision=42998
* TemplateControlCompiler.cs: Avoid using the GetConverter() trick
for primitive types. Parse an empty color string as Color.Empty.
Get the converter for a property using its PropertyDescriptor.
svn path=/trunk/mcs/; revision=42894