* TemplateControlCompiler.cs: fixed: Bind functions (Data-Binding Syntax).
At run time, the Bind method calls the Eval method, if there is DataItem
!= null to bind to.
If there is DataItem == null (like InsertItemTemplate in FormView) Bind
method don't raise exception and works properly to extract data from
bounded controls on postback.
svn path=/trunk/mcs/; revision=66192
* Test/mainsoft/NunitWeb/NunitWeb/StandardUrl.cs:
* Test/mainsoft/NunitWeb/NunitWeb/Resources/MyDerived.master:
* Test/mainsoft/NunitWeb/NunitWeb/Resources/MyPageWithDerivedMaster.aspx:
* System.Web.UI/MasterPageParser.cs:
* System.Web.dll.sources:
* System.Web.Compilation/MasterPageCompiler.cs:
* System.Web.Compilation/AspGenerator.cs: add support for the MasterType
directive for master pages.
Patch by Joel Reed.
svn path=/trunk/mcs/; revision=65748
* AspGenerator.cs: if we are tracking non-server tags for
well-formedness, handle tags that do not need to be closed (br, img,...)
Fixes bug #79437.
svn path=/trunk/mcs/; revision=65738
* AspGenerator.cs: after parsing an include file, don't error out if we
still have opened tags unless this was the last file to parse. Fixes
bug #79318.
svn path=/trunk/mcs/; revision=65133
* PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
the property Items does not exist. Patch by Marek Habersack that fixes
bug #78971.
svn path=/trunk/mcs/; revision=63097
* AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
MS.NET handles nested quotes differently for server controls and
for "normal" controls. Add a property "AlternatingQuotes" to the
tokenizer and let the parser decide whether it is well-formed or not.
--This line, and thoae below, will be ignored--
M System.Web.Compilation/AspTokenizer.cs
M System.Web.Compilation/AspParser.cs
M System.Web.Compilation/ChangeLog
svn path=/trunk/mcs/; revision=61894
* AspTokenizer.cs (ReadAttValue), AspParser.cs (GetAttributes):
Don't allow an attribute value to contain the same quote characters
as the ones used for delimiting the value itself. Add a token
NOTWELLFORMED to signal that case to AspParser. Fixes bug #78643.
svn path=/trunk/mcs/; revision=61758
* BaseCompiler.cs: for 2.0, emit the correct namespace and class
names in the case where you use "NS.ClassName" in the Inherits
attribute. Fixes bug #78135.
svn path=/trunk/mcs/; revision=59706
* CachingCompiler.cs: no need to play the Wait/PulseAll game, as we
already acquired the lock even when we might have not created the 'key'
to the compilation ticket.
svn path=/trunk/mcs/; revision=59705
* TemplateControlCompiler.cs: An attempt to fix the regression
introduced in r58505 (a bug fix for 77762). This was reported in
the mailing list with a batch of new 2.0 failures.
We really need a test suite in NUnit to check on ASP.NET aspx
svn path=/trunk/mcs/; revision=59249
* System.Web.UI/ControlBuilder.cs: when creating a default property
builder, handle strings specially.
* System.Web.UI/StringPropertyBuilder.cs: new builder used in
TextBox 2.0.
* System.Web.dll.sources: add StringPropertyBuilder.
* System.Web.Compilation/TemplateControlCompiler.cs: handle the new
StringPropertyBuilder.
Fixes bug #77762.
svn path=/trunk/mcs/; revision=58505
* BaseCompiler.cs (GetCompiledType): fall back to CodeDomProvider
if system.web/compilation doesn't list a compiler for our
language.
svn path=/trunk/mcs/; revision=58493
* TemplateControlCompiler.cs (InitMethod): when generating the
call to ApplyStyleSheetSkin, don't just blindly pass "this" as the
argument to it. Only do that if the class we're compiling is
actually a subclass of Page. If it's not, pass this.Page.
svn path=/trunk/mcs/; revision=57910
* AspGenerator.cs: refactor the parsing code so that we can
initiate parsing from outside this class.
* PageCompiler.cs (PrependStatementsToFrameworkInitialize): new
method, add our StyleSheetTheme assignment here.
(AppendStatementsToFrameworkInitialize): rename AddStatements* to
this.
* TemplateControlCompiler.cs (EnsureID): make protected.
(CreateAssignStatementsFromAttributes): same
(AddChildCall): same.
(CreateControlTree): same.
(CreateFrameworkInitializeMethod): change
"AddStatementsToFrameworkInitialize" to
"AppendStatementsToFrameworkInitialize", and add call to
"PrependStatementsToFrameworkInitialize" before the generation of
"base.FrameworkInitialize()."
* PageThemeCompiler.cs (CreateControlSkinMethod): remove spew.
svn path=/trunk/mcs/; revision=57674
2006-03-02 Chris Toshok <[email protected]>
* Control.cs (ApplyStyleSheetTheme): remove the exception, and add
a MonoTODO.
* Page.cs (Theme): implement setter/getter.
(StyleSheetTheme): same.
* PageParser.cs (ProcessMainAttributes): parse the Theme and
StyleSheetTheme attributes.
In System.Web.UI.WebControls:
2006-03-02 Chris Toshok <[email protected]>
* WebControl.cs (SkinID): implement setter/getter, and have them
just chain up to base.SkinID.
In System.Web.Compilation:
2006-03-02 Chris Toshok <[email protected]>
* TemplateControlCompiler.cs (InitMethod): emit an assignment for
SkinID just after the creation of our object, and right after that
call "_ctrl.ApplyStyleSheetSkin (page)".
(CreateAssignStatementsFromAttributes): split out the majority of
this code to CreateAssignStatementFromAttribute, and change this
method to simply a loop over the attribute keys. In the 2.0 case,
skip the SkinID property, since that's handled explicitly in
InitMethod.
* PageCompiler.cs (AddStatementsToInitMethod): emit assignments
for Theme and StyleSheetTheme.
svn path=/trunk/mcs/; revision=57516
* AssemblyBuilder.cs:
* BuildManager.cs: compile the assembly from AssemblyBuilder and use
GetGeneratedType() on the BuildProvider instead of loading the assembly
and trying a wild guess at the type name.
svn path=/trunk/mcs/; revision=56964
* System.Web.UI/WebHandlerParser.cs:
* System.Web.UI/WebServiceParser.cs:
* System.Web.UI/UserControlParser.cs:
* System.Web.UI/PageParser.cs: added new ctor that uses a TextReader
as input.
* System.Web.UI/TemplateControlParser.cs: new Reader property.
* System.Web.UI/SimpleWebHandlerParser.cs: new Reader property and
ctor.
* System.Web.dll.sources: added new files.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/TemplateControlCompiler.cs: CreateMethods is
now internal.
* System.Web.Compilation/WebServiceBuildProvider.cs:
* System.Web.Compilation/PageBuildProvider.cs:
* System.Web.Compilation/UserControlBuildProvider.cs:
* System.Web.Compilation/WebHandlerBuildProvider.cs: new build
providers.
* System.Web.Compilation/BuildProvider.cs: add assemblies.
* System.Web.Compilation/BaseCompiler.cs: expose the provider and the
compile unit through properties.
svn path=/trunk/mcs/; revision=56878
* System.Web.Configuration_2.0/Compiler.cs:
* System.Web.Configuration_2.0/CompilerCollection.cs: removed
compatibility code.
* System.Web.Configuration_2.0/BuildProviderCollection.cs: add
GetProviderForExtension().
* System.Web.UI/IThemeResolutionService.cs: this is now added to the
sources file, but some other stuff does not compile yet as the
interface changed after the beta.
* System.Web.UI/ObjectConverter.cs: removed extra attribute.
* System.Web.UI/ObjectStateFormatter.cs: add IStateFormatter for 2.0.
* System.Web.UI/ICallbackEventHandler.cs: update the interface, but
commented the 'good' stuff out, since other files need to be fixed
too.
* System.Web.dll.sources: add new files.
* System.Web.Configuration/CompilationConfiguration.cs:
* System.Web.Configuration/CompilationConfigurationHandler.cs: only
compile these for pre-2.0 assemblies.
* System.Web.Hosting/DefaultVirtualPathProvider.cs: add some
comments/TODO.
* System.Web.Hosting/HostingEnvironment.cs: initialize the
default value for VirtualPathProvider.
* System.Web.Compilation/CompilerType.cs: implemented.
* System.Web.Compilation/AssemblyBuilder.cs: implemented most of it.
* System.Web.Compilation/WebServiceCompiler.cs:
* System.Web.Compilation/CachingCompiler.cs: update 2.0 compiler
instance creation code.
* System.Web.Compilation/ClientBuildManager.cs: implemented some of
its methods. Not yet ready.
* System.Web.Compilation/BuildManager.cs: the more interesting methods
are implemented now.
* System.Web.Compilation/BaseCompiler.cs: delete the temporary files
in case of error.
* System.Web.Compilation/BuildProvider.cs: implemented the
Get*Compiler* protected methods.
svn path=/trunk/mcs/; revision=56781
* 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.
(AddChildCall): use methodStatements instead of method.Statements.
(CreateControlTree): same.
* 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=56639
* 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