Commit Graph
366 Commits
Author SHA1 Message Date
Marek Habersack 6ca820d90f 2007-08-06 Marek Habersack <[email protected]>
* 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
2007-08-06 07:55:46 +00:00
Marek Habersack ac3dd8a62d 2007-07-31 Marek Habersack <[email protected]>
* 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
2007-07-31 13:04:59 +00:00
Marek Habersack 6a629d62d7 2007-07-18 Marek Habersack <[email protected]>
* 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
2007-07-18 12:48:55 +00:00
Marek Habersack d820431bb9 2007-07-02 Marek Habersack <[email protected]>
* 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
2007-07-02 11:40:40 +00:00
Marek Habersack 0b80ac0b50 2007-06-20 Marek Habersack <[email protected]>
* 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
2007-06-20 15:42:36 +00:00
Marek Habersack 33ca50cc32 2007-06-13 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: make sure control has a writable
	TemplateControl property prior to assigning values to it.

svn path=/trunk/mcs/; revision=79348
2007-06-12 22:26:08 +00:00
Marek Habersack 1fcd4ba60d 2007-06-09 Marek Habersack <[email protected]>
* 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
2007-06-08 23:51:23 +00:00
Marek Habersack bf0152c8c5 2007-06-05 Marek Habersack <[email protected]>
* 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
2007-06-05 12:50:12 +00:00
Marek Habersack 2179056c0d 2007-06-01 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: be case-insensitive when looking for
	Bind requests.


svn path=/trunk/mcs/; revision=78408
2007-06-01 14:10:46 +00:00
Marek Habersack c45b4e08e9 2007-05-29 Marek Habersack <[email protected]>
* 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
2007-05-29 12:45:31 +00:00
Marek Habersack 4b530ef9b0 2007-05-28 Marek Habersack <[email protected]>
* ResourceExpressionBuilder.cs: properly cast
	GetGlobalResourceObject calls to the type of the property being
	assigned to.

svn path=/trunk/mcs/; revision=78035
2007-05-28 08:44:53 +00:00
Rolf Bjarne Kvinge c1af7a324d 2007-05-25 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: Changed a few incorrect 
	ObjectCreationExpression to the correct DelegateCreationExpression.
	Fixes #81706.


svn path=/trunk/mcs/; revision=77950
2007-05-25 16:32:58 +00:00
Marek Habersack 324a2ea444 2007-05-24 Marek Habersack <[email protected]>
* 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
2007-05-24 12:55:14 +00:00
Marek Habersack fc25d3889c 2007-05-22 Marek Habersack <[email protected]>
* UserControlCompiler.cs: the Profile property should be present
	also in user controls.

svn path=/trunk/mcs/; revision=77786
2007-05-22 11:09:14 +00:00
Marek Habersack 02657c3d11 2007-05-15 Marek Habersack <[email protected]>
* 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
2007-05-15 20:48:57 +00:00
Marek Habersack e1cf022a02 2007-05-15 Marek Habersack <[email protected]>
* 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
2007-05-15 13:26:56 +00:00
Marek Habersack d468a76803 2007-05-08 Marek Habersack <[email protected]>
* 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
2007-05-08 12:50:59 +00:00
Marek Habersack aa9b586a68 2007-05-07 Marek Habersack <[email protected]>
* 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-07 19:29:44 +00:00
Marek Habersack 4924c989df forgotten ifdefs
svn path=/trunk/mcs/; revision=76676
2007-05-04 12:51:41 +00:00
Marek Habersack 279d12b449 Another in the series of compatibility fixes discovered thanks to the QuickStarts... :)
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
2007-05-04 10:58:11 +00:00
Marek Habersack d105ea0838 2007-04-30 Marek Habersack <[email protected]>
* 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
2007-04-30 11:02:24 +00:00
Marek Habersack b770ab6596 2007-04-30 Marek Habersack <[email protected]>
* 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
2007-04-30 08:49:43 +00:00
Marek Habersack 55b55a615b 2007-04-30 Marek Habersack <[email protected]>
* 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
2007-04-30 06:44:10 +00:00
Marek Habersack 4a9ce7622a 2007-04-27 Marek Habersack <[email protected]>
* 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
2007-04-27 09:41:49 +00:00
Marek Habersack dcbab13899 2007-04-27 Marek Habersack <[email protected]>
* 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
2007-04-27 08:44:00 +00:00
Marek Habersack da88af32fb 2007-04-27 Marek Habersack <[email protected]>
* AspComponentFoundry.cs: formatting changes.
	AssemblyFoundry looks for the specified namespace+type in the
	top-level assemblies if necessary.

2007-04-27  Marek Habersack  <[email protected]>

	* TemplateControlParser.cs: 2.0 allows 'Namespace' without the
	'Assembly' attribute on tag prefix registration.

	* TemplateParser.cs: do not rely on assembly name being not null.


svn path=/trunk/mcs/; revision=76364
2007-04-27 01:00:43 +00:00
Marek Habersack b1d3722fca 2007-04-26 Marek Habersack <[email protected]>
* AssemblyBuilder.cs: handle compilation failures in a better
	way.

svn path=/trunk/mcs/; revision=76352
2007-04-26 20:23:51 +00:00
Marek Habersack 76fb5fbaf4 2007-04-26 Marek Habersack <[email protected]>
* PageCompiler.cs: the Master property must be in the partial
	class if present. Fixes bug #81442


svn path=/trunk/mcs/; revision=76301
2007-04-26 09:28:04 +00:00
Marek Habersack 6a50b6441b 2007-04-20 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: fix App_Code build when the directory
	contains both known and unknown files.


svn path=/trunk/mcs/; revision=75999
2007-04-20 06:58:11 +00:00
Gert Driesen 26676f8379 * AspComponentFoundry.cs: Fixed build on 1.0 profile. Spaces to
tabs.

svn path=/trunk/mcs/; revision=75911
2007-04-19 09:23:22 +00:00
Marek Habersack 95c61dae1b 2007-04-19 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: yet another method of detecting if we have a
	custom profile.

	* BaseCompiler.cs: as above
	
	* AspComponentFoundry.cs: implemented delayed loading of control
	assemblies. Fixes bug #81058.

svn path=/trunk/mcs/; revision=75910
2007-04-19 08:04:38 +00:00
Gert Driesen 45616d6c5f * TemplateParser.cs: On 2.0 profile, allow namespace in ClassName
attribute. Fixed part of bug #81399.
* BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
then use it instead of the default ASP namespace. Fixes part of bug
#81399.

svn path=/trunk/mcs/; revision=75909
2007-04-19 07:33:02 +00:00
Marek Habersack a8d18c9fd5 2007-04-19 Marek Habersack <[email protected]>
* BaseCompiler.cs: don't look at the number of profile properties
	when deciding if we have a custom profile. It is possible to have
	a profile that just inherits from a base class and does not list
	any custom properties. Fixes bug #81396.

	* AppCodeCompiler.cs: as above

svn path=/trunk/mcs/; revision=75908
2007-04-19 07:17:47 +00:00
Marek Habersack 114cd09856 2007-04-15 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: Make sure there's actually anything to compile.

svn path=/trunk/mcs/; revision=75722
2007-04-15 12:28:48 +00:00
Marek Habersack 431f90fc47 2007-04-15 Marek Habersack <[email protected]>
* VirtualPathUtility.cs: converted to LF line endings and set the
	svn:eol-style property to 'native'

2007-04-15  Marek Habersack  <[email protected]>

	* AppCodeCompiler.cs: properly convert physical file path to
	virtual path for build providers.


svn path=/trunk/mcs/; revision=75720
2007-04-15 12:15:27 +00:00
Marek Habersack 382c9d3c86 2007-04-11 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: move custom profile type check till after
	the App_Code compilation is done. That way we can have custom
	profile providers in there. Fixes bug #81307.


svn path=/trunk/mcs/; revision=75597
2007-04-11 07:51:40 +00:00
Marek Habersack 72a86061b2 2007-04-10 Marek Habersack <[email protected]>
* AppResourceFilesCollection.cs: watch App_LocalResources for
	changes.

svn path=/trunk/mcs/; revision=75569
2007-04-10 10:47:12 +00:00
Marek Habersack cef141fb0d fix compilation for 1.1
svn path=/trunk/mcs/; revision=75483
2007-04-06 14:04:42 +00:00
Marek Habersack 0fe038646e 2007-04-06 Marek Habersack <[email protected]>
* BaseCompiler.cs: display the source of the file in which the
	error actually happened if the file exists, or the unit
	otherwise.

svn path=/trunk/mcs/; revision=75482
2007-04-06 13:01:59 +00:00
Marek Habersack a0bef8a979 2007-04-03 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: global resources are put in the
	"Resources." namespace while local ones are not. Fixes bug #81174
	which was reopened after r75261.


svn path=/trunk/mcs/; revision=75356
2007-04-03 18:56:09 +00:00
Konstantin Triger e287c28d0d Path HttpContext to the PageMapper and use it. Throw resource not available exception at the highest level only - when it's known whether we should throw
svn path=/trunk/mcs/; revision=75145
2007-03-29 14:55:30 +00:00
Marek Habersack 5d089556fe 2007-03-26 Marek Habersack <[email protected]>
Use GetExpressionFromString to generate a correct expression for
	custom page/control attributes. Fixes bug #81132.

svn path=/trunk/mcs/; revision=74980
2007-03-26 13:47:27 +00:00
Marek Habersack 94e8fa3fd1 2007-03-26 Marek Habersack <[email protected]>
Process meta:resourcekey after all the field/attribute assignments
	are done. Fixes bug #80809.
	Clean the code up a bit.


svn path=/trunk/mcs/; revision=74973
2007-03-26 11:56:44 +00:00
Marek Habersack 48885962c7 2007-03-26 Marek Habersack <[email protected]>
* TemplateParser.cs: support the meta:resourcekey attribute in
	Page and Control directives. Fixes bug #81204.

2007-03-26  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: refactor assining properties from
	resources a bit to support pages and user controls. Fixes bug
	#81204.

svn path=/trunk/mcs/; revision=74972
2007-03-26 11:42:01 +00:00
Marek Habersack 0fb47feff6 2007-03-21 Marek Habersack <[email protected]>
* TemplateParser.cs: Added support for the CodeFileBaseClass directive. Fixes bug #81132

2007-03-21  Marek Habersack  <[email protected]>

	* BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
	AssignAppRelativeVirtualPath if the attribute was defined.

svn path=/trunk/mcs/; revision=74764
2007-03-21 21:14:03 +00:00
Marek Habersack 4b8b453f42 2007-03-21 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: added support for setting custom
	attributes of a base class from the Page or Control directive
	attributes.

2007-03-21  Marek Habersack  <[email protected]>

	* UnknownAttributeDescriptor.cs: an internal helper class for
	custom directive attributes support.

	* BaseParser.cs: ThrowParseException can now take variadic
	parameters, for convenience.

	* TemplateParser.cs: add support for custom attributes for the
	Page and Control directives.

2007-03-21  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added UnknownAttributeDescriptor.cs


svn path=/trunk/mcs/; revision=74734
2007-03-21 14:09:18 +00:00
Marek Habersack d40600b83d 2007-03-20 Marek Habersack <[email protected]>
* ResourceExpressionBuilder.cs: if the resource class key is null
	or empty, call GetLocalResourceObject, if not,
	GetGlobalResourceObject. Fixes bug #81174.

svn path=/trunk/mcs/; revision=74672
2007-03-20 09:19:05 +00:00
Marek Habersack 2d0b4476f2 2007-03-16 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: produce message that makes more sense.


svn path=/trunk/mcs/; revision=74447
2007-03-16 02:36:47 +00:00
Marek Habersack 37c1af47ac 2007-03-15 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: handle global resource keys with dots
	the way MS.NET does. All the dots are replaced with underscores
	when generating the stronly-typed property.

svn path=/trunk/mcs/; revision=74351
2007-03-15 12:19:12 +00:00
Marek Habersack a3d6e98441 2007-03-14 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: Fix a bug with global resources file
	grouping where no translated resources were processed due to base
	name mismatch.

svn path=/trunk/mcs/; revision=74255
2007-03-14 13:57:18 +00:00