* MinimizableAttributeTypeConverter.cs: don't throw on null value,
call the base class method in that case.
2007-11-03 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: do not call converters specified in
the member custom attributes if 'str' is null in
GetExpressionFromString.
svn path=/trunk/mcs/; revision=88762
* AppResourcesAssemblyBuilder.cs: do not output preservation files
for satellite assemblies, just for the main assembly. Also, don't
add the satellite assemblies to the list of top-level assemblies.
svn path=/trunk/mcs/; revision=87964
* TemplateParser.cs: removed code that ignored the Async and
AsyncTimeout attributes.
* PageParser.cs: handle the Async and AsyncTimeout attributes
here. Fixes bug #325450
2007-10-17 Marek Habersack <[email protected]>
* PageCompiler.cs: added code to set the AsyncMode and
AsyncTimeout Page properties.
svn path=/trunk/mcs/; revision=87714
* TemplateControlCompiler.cs, WebServiceCompiler.cs,
BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
HttpApplication.LoadType instead of Type.GetType.
2007-10-15 Marek Habersack <[email protected]>
* ProvidersHelper.cs: use HttpApplication.LoadType instead of
Type.GetType.
2007-10-15 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: use HttpApplication.LoadType instead of
Type.GetType.
2007-10-15 Marek Habersack <[email protected]>
* ProfileBase.cs: use HttpApplication.LoadType instead of
Type.GetType.
svn path=/trunk/mcs/; revision=87506
* TemplateControlCompiler.cs: be careful when using type
converters taken from attributes attached to class members. They
may come from the System.Design namespace, which is mostly not
implemented on Mono.
svn path=/trunk/mcs/; revision=87255
* AppResourcesCompiler.cs: resources are no longer compiled into a
single assembly. Instead, the common assembly construction code
has been moved to AppResourcesAssemblyBuilder to use satellite
assemblies.
* AppResourcesAssemblyBuilder.cs: new resource assembly
construction code which takes care of outputting satellite
assemblies.
svn path=/trunk/mcs/; revision=86697
* TemplateControlCompiler.cs: if we're running on a platform with
the directory separator character that's different to the Unix
style '/' one, convert the input file path to the virtual path
style string, with path parts separated by '/'. Patch from Robert
Jordan <[email protected]>, thanks! Fixes bug #324229.
svn path=/trunk/mcs/; revision=86118
* LoginView.cs: implemented RoleGroups support. Fixes bug
#324633.
2007-09-20 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: if a member passed to
GetExpressionFromString has a TypeConverter attribute set, try to
use the named type converter to convert the string value into the
target type. Fixes bug #325489.
svn path=/trunk/mcs/; revision=86092
* AppResourcesCompiler.cs: use _culture and _resourceManager
instead of culture and resourceManger in the generated code, to
avoid case problems for languages that are case-insensitive.
svn path=/trunk/mcs/; revision=85800
* TemplateControlCompiler.cs: cast the expression to the field
type whenever appropriate in GetExpressionFromString.
When generating an object instance and one of the parameters is
System.Type, return a typeof expression.
svn path=/trunk/mcs/; revision=85591
* TemplateControlCompiler.cs: another modification to the way
TemplateInstance.Single templates are treated. The search for
parent with this attribute set stops as soon as the first
TemplateBuilder is encountered, no matter what the value of its
TemplateInstance attribute is.
svn path=/trunk/mcs/; revision=85473
* TemplateControlCompiler.cs: Extend the process of checking if a control is located within a
template with the TemplateInstance.Single attribute set, to all
the parents of the current builder.
svn path=/trunk/mcs/; revision=85426
* TemplateControlCompiler.cs: ID must be assigned as soon as
possible, before any other attributes of the control are
accessed. The control code may rely on ID being set.
svn path=/trunk/mcs/; revision=85386
* RootBuilder.cs: make Foundry settable, but protect the backing
field from being set to null.
2007-09-05 Marek Habersack <[email protected]>
* ThemeDirectoryCompiler.cs: all the skin files compiled in one
batch must share the same component foundry. Under MS.NET if any
earlier .skin file registers a control prefix any later .skin
files may use it without registering.
svn path=/trunk/mcs/; revision=85373
When generating code for a property or field, use the name
retrieved from the metadata by reflection instead of the one
parsed from html. Fixes bug #82687. Patch from SunHo Kim
<[email protected]>, thanks
svn path=/trunk/mcs/; revision=85269
* TemplateControlCompiler.cs: make sure that base class doesn't
contain a field of the same name which is accessible from the
current control if we're within a singleton template.
svn path=/trunk/mcs/; revision=85248
* CachingCompiler.cs: consider contents of the
<compilation><assemblies> section when constructing a list of
assemblies during compilation.
svn path=/trunk/mcs/; revision=85020
* TemplateBuilder.cs: check for and store for later use the
TemplateContainerAttribute. Added a nullable property
TemplateInstance to return the value of the attribute.
2007-08-29 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: mark fields corresponding to the
controls as global references.
When control tree is constructed and the parent of the current
builder is a TemplateBuilder marked with the TemplateInstance
attribute set to Single, use the control's ID as the field
name. This makes it possible to refer to controls inside templates
by name instead of by using FindControl.
svn path=/trunk/mcs/; revision=84996
* ProvidersHelper.cs: HttpApplication.LoadTypeFromPrivateBin
renamed to LoadTypeFromBin.
2007-08-23 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
and HttpApplication.LoadTypeFromBin.
* BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
AddAssembliesInBin.
2007-08-23 Marek Habersack <[email protected]>
* ApplicationHost.cs: set AppDomainSetup.PrivateBinPath to "bin"
if running on Windows or with MONO_IOMAP in effect, and to
"Bin:bin" otherwise.
2007-08-23 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: use
HttpApplication.BinDirectoryAssemblies in AddAssembliesInBin and
LoadAssemblyFromBin.
Restore the old logic in GetTypeFromBin, also use
HttpApplication.BinDirectoryAssemblies there.
* TemplateParser.cs: use HttpApplication.BinDirectories to
interate over the list of bin dirs.
Use HttpApplication.BinDirectoryAssemblies in AddAssembliesInBin.
2007-08-23 Marek Habersack <[email protected]>
* HttpApplication.cs: added a static array BinDirs which contains
the common bin directory names we can encounter.
Added internal static property IsRunningOnWindows.
Added internal enumerable property BinDirectories to iterate over
the full paths of the available binary directories.
Added internal enumerable property BinDirectoryAssemblies to
iterate over .dll files in the bin directories.
LoadTypeFromPrivateBin renamed to LoadTypeFromBin.
LoadTypeFromBin uses BinDirectoryAssemblies.
* HttpApplicationFactory.cs: use HttpApplication.BinDirectories to
interate over the list of bin dirs.
svn path=/trunk/mcs/; revision=84684
* ApplicationHostTest.cs: adjust the test for the PrivateBinPath
changes.
2007-08-21 Marek Habersack <[email protected]>
* ProvidersHelper.cs: use HttpApplication.LoadTypeFromPrivateBin
to get the provider settings type.
2007-08-21 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: watch for changes in all the
private binary directories for the current application domain.
* HttpApplication.cs: turn the PrivateBinPath property into an
internal enumerable, so that code throughout the assembly can
iterate over the list of private bin directories configured for
the application domain.
Added a new internal method LoadTypeFromPrivateBin, for sharing
with other parts of the assembly.
2007-08-21 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: use HttpApplication.PrivateBinPath
enumerator when loading or adding assemblies from binary
directories. Remove unused PrivateBinPath property.
* ControlBuilder.cs: remove unused PrivateBinPath property.
* TemplateParser.cs: use HttpApplication.PrivateBinPath when
adding assemblis and loading types.
2007-08-21 Marek Habersack <[email protected]>
* ApplicationHost.cs: AppDomainSetup.PrivateBinPath should contain
a list of paths relative to AppDomainSetup.ApplicationBase, not a
full path.
We no longer check if the bin directories exist, the user can
create them while the application is running.
2007-08-21 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: get rid of PrivateBinPath property,
it's unused.
2007-08-21 Marek Habersack <[email protected]>
* BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
to look up assemblies in the binary path(s).
svn path=/trunk/mcs/; revision=84589
* AspComponentFoundry.cs: use an ArrayList to implement LIFO for
component collections, instead of the old Queue which implemented
FIFO. Fixes situations when a control registered later for a
certain prefix would not be used in preference to a previously
registered one of the same name.
svn path=/trunk/mcs/; revision=84040
* AspComponentFoundry.cs: properly add new foundry if the
corresponding entry in the foundries collection is a Queue. Patch
from Juraj Skripsky <[email protected]>, thanks! Fixes bug #82285.
svn path=/trunk/mcs/; revision=83524
* AspComponentFoundry.cs: do not overwrite previously registered
foundries when a new one is registered with the same prefix. Fixes
bug #82216
svn path=/trunk/mcs/; revision=83071
* ControlBuilder.cs: on the 2.0 profile BindingContainerType
returns the associated control's base type when parent builder is
absent instead of typeof (Control). It returns typeof (Control) if
the parent builder type is determined to be a
NamingContainer. This makes the generated code match the MS.NET
output. Fixes bug #82119.
2007-07-18 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: on the 2.0 profile, GetContainerType
does not look up the Item/Items properties to determine the
container type, instead it just returns the type reported by the
builder passed to this method. This change makes the generated
code match MS.NET. Fixes bug #82119.
svn path=/trunk/mcs/; revision=82200
* TemplateControlCompiler.cs: don't use StartWith to see if a
variable's value is a bind expression, as it erroneously renames
all calls to methods starting with the string Bind. Use a regular
expression now instead. Fixes bug #81928.
svn path=/trunk/mcs/; revision=81172
* OutputCacheModule.cs: use Context.InternalCache.
* Cache.cs: 2.0 profile uses generic containers to keep the cache
entries.
Gotten rid of the InsertPrivate and InsertInternal methods. The
latter was moved to one of the Insert overloads.
Private entries are no longer handled specifically, because the
internal cache is now kept in a separate object.
2007-06-20 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
private entries.
* CachingCompiler.cs: as above
* AspGenerator.cs: as above
2007-06-20 Marek Habersack <[email protected]>
* DataSourceCacheManager.cs: use HttpContext.Current.InternalCache
to keep private entries.
* XmlDataSource.cs: as above
2007-06-20 Marek Habersack <[email protected]>
* SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
private entries.
2007-06-20 Marek Habersack <[email protected]>
* SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
the internal entries.
2007-06-20 Marek Habersack <[email protected]>
* BasePartialCachingControl.cs: use HttpRuntime.InternalCache to
keep the private entries.
2007-06-20 Marek Habersack <[email protected]>
* HttpRuntime.cs: added new internal property, InternalCache, to
keep all the internal cache entries instead of mixing them with
the public cache ones.
Do not invoke Cache.InvokePrivateCallbacks - this method no longer
exists.
* HttpResponse.cs: private entries are now kept in
Context.InternalCache.
* HttpContext.cs: added new internal property, InternalCache,
which returns the HttpRuntime.InternalCache value.
Fixes bug #81690
svn path=/trunk/mcs/; revision=80321
* TemplateControlCompiler.cs: make sure control has a writable
TemplateControl property prior to assigning values to it.
svn path=/trunk/mcs/; revision=79348
* TemplateControlCompiler.cs: TemplateControl is assigned for
controls that are placed within ContentPlaceHolder and not for the
ContentPlaceHolder itself.
No longer add the overriden version of TemplateSourceDirectory to
the generated source, all the work is now done in
Control.TemplateSourceDirectory.
* BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
slash, for compatibility with MS.NET
2007-06-09 Marek Habersack <[email protected]>
* TemplateControl.cs: make sure TemplateControl is set to the
current control.
* Control.cs: TemplateControl property goes up the parent chain if
the property isn't defined in the current control.
TemplateSourceDir finally implemented correctly.
2007-06-09 Marek Habersack <[email protected]>
* ControlTest.cs: enabled two tests that hadn't been working
before.
svn path=/trunk/mcs/; revision=79021
* TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
profile uses the TemplateControl property instead of Parent. This
allows to return the correct path.
2007-06-05 Marek Habersack <[email protected]>
* Control.cs: TemplateSourceDirectory uses TemplateControl to
lookup the virtual source directory in the 2.0 instead of the
Parent.
ResolveClientUrl copes with empty TemplateSourceDirectory in the
correct way now - the check is made after the basePath checks.
The changes above make ResolveClientUrl work properly when called
from within a control residing in a TemplateControl.
svn path=/trunk/mcs/; revision=78624
* ThemeDirectoryCompiler.cs: pass the skin file's
virtual path to the skin file parser as its first paramenter, and
not a physical path.
svn path=/trunk/mcs/; revision=78115
* ResourceExpressionBuilder.cs: properly cast
GetGlobalResourceObject calls to the type of the property being
assigned to.
svn path=/trunk/mcs/; revision=78035
* TemplateControlCompiler.cs: Changed a few incorrect
ObjectCreationExpression to the correct DelegateCreationExpression.
Fixes#81706.
svn path=/trunk/mcs/; revision=77950
* PageParser.cs: added support for the PreviousPageType
directive.
2007-05-24 Marek Habersack <[email protected]>
* PageCompiler.cs: added support for the PreviousPageType directive.
* Directive.cs: as above.
svn path=/trunk/mcs/; revision=77907
* ResourceExpressionBuilder.cs: added a static method to generate
a GetLocalResourceObject call which properly handles types which
cannot be converted from strings.
* TemplateControlCompiler.cs: use code described above to generate
code for properties assigned from resources.
svn path=/trunk/mcs/; revision=77437
* WsdlBuildProvider.cs: make the code actually work - get the
physical path of VirtualPath instead of converting it to absolute
URI path.
Do not generate source, add the code unit to assembly builder
instead.
* XsdBuildProvider.cs: added
2007-05-15 Marek Habersack <[email protected]>
* System.Web.dll.sources: added
System.Web.Compilation/XsdBuildProvider.cs
svn path=/trunk/mcs/; revision=77400
* TemplateControlCompiler.cs: BuildTemplateMethod is a delegate,
so use a delegate create expression - it may make difference for
languages other than C# (e.g. VisualBasic).
svn path=/trunk/mcs/; revision=76923
* TemplateParser.cs: added support for implicit language
detection. If the language isn't set explicitly in the Page
directive, the language value taken from the configuration
considered to be implicit - that is, it can be overwritten by the
first <script> with the runat="server" and language="xx" sets the
language for the parser. This makes it possible to have the
default language set to "C#" and the inline code in, e.g.,
VisualBasic.
2007-05-07 Marek Habersack <[email protected]>
* AspGenerator.cs: if the parser's language is implicit (i.e. set
from the default configuration), the first script with the
language attribute present sets the language of the parser.
svn path=/trunk/mcs/; revision=76870
2007-05-04 Marek Habersack <[email protected]>
* HtmlAnchor.cs: use ResolveClientUrl when generating
attributes. Necessary if the control is in a master page which is
in a different directory than the current page.
2007-05-04 Marek Habersack <[email protected]>
* AdRotator.cs: use the new GetPhysicalFilePath method to look up
the physical path of the ad file.
2007-05-04 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: do not query the parent for
TemplateSourceDirectory if we are generating code for a Master
Page.
2007-05-04 Marek Habersack <[email protected]>
* Control.cs: added an internal method to resolve a physical path
to a file from its virtual path considering the possibility that a
control is placed in a master page, which in turn is referenced
from a directory another than that of master page itself.
svn path=/trunk/mcs/; revision=76665
* ConnectionStringsExpressionBuilder.cs: support expressions with
suffixes .ProviderName and .ConnectionString (case-insensitie) and
generate a call to GetConnectionStringProviderName in the former
case. Fixes bug #81490
2007-04-30 Marek Habersack <[email protected]>
* SqlDataSource.cs: do not catch the exception if ProviderName is
not null or empty (as per docs and what MS.NET does).
2007-04-30 Marek Habersack <[email protected]>
* DbProviderFactories.cs: throw the same exception MS.NET does.
svn path=/trunk/mcs/; revision=76486
* AppCodeCompiler.cs: support for cases when there exists a custom
profile class but there is no App_Code directory or it's
empty. Fixes bug #81489.
svn path=/trunk/mcs/; revision=76483
* TemplateControlCompiler.cs: fix generation of code for
declarative attribute assignments of the form Font-Size="small"
(i.e. when a font size is assigned a symbolic, relative size
value). This fixes for example rendering of the 0th level of
TreeView controls.
svn path=/trunk/mcs/; revision=76472
* AppCodeCompiler.cs: Resolve assembly names from the global web.config to their
locations before passing them to the compiler provider.
svn path=/trunk/mcs/; revision=76378
* AppCodeCompiler.cs: do not look at the number of errors, check
the compiler return code instead.
* AssemblyBuilder.cs: as above
* AppResourcesCompiler.cs: as above
svn path=/trunk/mcs/; revision=76375