Commit Graph
141 Commits
Author SHA1 Message Date
Marek Habersack d7fb90cfca 2009-04-16 Marek Habersack <[email protected]>
* HttpContext.cs: local resources code now uses the custom
	resource provider factory, just like the global resources
	code. Fixes bug #493263

2009-04-16  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs:
	AssignPropertyFromResources now checks whether the field/property
	passed to it is decorated with the Localizable custom attribute
	and whether the resource provider contains an entry for that
	property.

svn path=/trunk/mcs/; revision=131888
2009-04-16 12:26:14 +00:00
Marek Habersack c503734d12 2009-04-16 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: using a regexp to check whether an
	expression is a Bind one. Fixes bug #493639

2009-04-16  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/NoBindForMethodsWithBindInName.aspx

2009-04-16  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added test for bug #493639

svn path=/trunk/mcs/; revision=131874
2009-04-16 09:51:12 +00:00
Marek Habersack 53b225fc4b 2009-04-07 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: GenerateExpressionFromString doesn't
	assume that the passed member is a property anymore. Fixes bug
	#492252

svn path=/trunk/mcs/; revision=131210
2009-04-07 10:44:56 +00:00
Gonzalo Paniagua Javier d7f1dbcff0 missed these two
svn path=/trunk/mcs/; revision=128276
2009-02-28 20:37:37 +00:00
Gonzalo Paniagua Javier e63f092be1 2009-02-28 Gonzalo Paniagua Javier <[email protected]>
* AppResourcesAssemblyBuilder.cs:
	* BuildManagerDirectoryBuilder.cs:
	* AspComponentFoundry.cs:
	* AssemblyBuilder.cs:
	* CachingCompiler.cs:
	* AspGenerator.cs:
	* WsdlBuildProvider.cs:
	* BaseCompiler.cs:
	* BuildProvider.cs:
	* AppWebReferencesCompiler.cs:
	* TemplateControlCompiler.cs:
	* BuildManager.cs:
	* AppCodeCompiler.cs: settings that have to be in
	machine.config or the root level web.config now call
	GetWebApplicationSection.


svn path=/trunk/mcs/; revision=128275
2009-02-28 20:30:31 +00:00
Gonzalo Paniagua Javier bbfde12266 2009-02-18 Gonzalo Paniagua Javier <[email protected]>
* 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
2009-02-18 23:49:33 +00:00
Marek Habersack 3fcbf0735a 2009-01-13 Marek Habersack <[email protected]>
* CodeBuilder.cs, RootBuilder.cs, CollectionBuilder.cs: updates
	related to ControlBuilder cleanup.

	* ControlBuilder.cs: code cleanup - no field should be visible
	outside the class unless it's a constant or a read-only field.

2009-01-13  Marek Habersack  <[email protected]>

	* XmlBuilder.cs: updates related to ControlBuilder cleanup.

2009-01-13  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs, AspGenerator.cs, BaseCompiler.cs,
	GlobalAsaxCompiler.cs, PageThemeCompiler.cs: updates related to
	ControlBuilder cleanup.


svn path=/trunk/mcs/; revision=123229
2009-01-13 18:38:18 +00:00
Marek Habersack ef3c1e2428 2009-01-12 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: do not generate #line pragmas for
	plain strings. Fixes bug #461214

svn path=/trunk/mcs/; revision=123141
2009-01-12 22:27:08 +00:00
Gonzalo Paniagua Javier c79405a7c0 Use IndexOf (char)
svn path=/trunk/mcs/; revision=122118
2008-12-25 07:38:51 +00:00
Marek Habersack 8b9adb2940 2008-12-11 Marek Habersack <[email protected]>
* TemplateParser.cs: in the 2.0 profile when a custom control is
	registered, do not compile it right away but store the tag name in
	a registry to be compiled at a later stage.

2008-12-11  Marek Habersack  <[email protected]>

	* BaseCompiler.cs: added a new method, InitializeType, to be
	overriden in child classes when any class initialization needs to
	be performed before methods, constructors and fields are created.

	* TemplateControlCompiler.cs: if the parser has any custom
	controls registered, compile them here - in the InitializeType
	method.

svn path=/trunk/mcs/; revision=121262
2008-12-10 23:45:04 +00:00
Marek Habersack 2cc422baec 2008-12-08 Marek Habersack <[email protected]>
* NunitWebResources/ValidPropertyBind5.aspx: added

	* NunitWebResources/ReadWritePropertyControl.ascx: added a
	writable string property.

2008-12-08  Marek Habersack  <[email protected]>

	* TemplateControlCompilerTest.cs: added another valid Bind
	expression test.

2008-12-08  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: use the correct regex match group
	index in SanitizeBindCall (), fixes bug #457011



svn path=/trunk/mcs/; revision=120988
2008-12-08 12:03:43 +00:00
Marek Habersack 5d39b8a41c 2008-12-01 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
	instances to the ContentPlaceHolders collection when the
	placeholder is instantiated in the control build method, collect
	the ids and store them in ContentPlaceHolders inside the
	constructor. Fixes bug #449970
	For each content placeholder generate a public virtual property
	named "Template_PLACEHOLDERID", this is compatible with what .NET
	does.

	* BaseCompiler.cs: added new virtual method,
	AddStatementsToConstructor, which is called just before
	CreateConstructor returns.

2008-12-01  Marek Habersack  <[email protected]>

	* MasterPage.cs: use List <string> for ContentPlaceHolders instead
	of ArrayList.
	CreateMasterPage now directly accesses the ContentPlaceHolders as
	it is now a list of strings



svn path=/trunk/mcs/; revision=120353
2008-12-01 14:45:16 +00:00
Marek Habersack a2bad5bd17 2008-11-21 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: make the Bind regex stricter.
	When creating Eval expression from Bind, replace single quotes
	with double quotes. Fixes bug #447597
	When processing Bind expressions and the regex doesn't match,
	throw an exception.

2008-11-21  Marek Habersack  <[email protected]>

	* ControlBuilder.cs: in BindingContainerType if builder is a
	RootBuilder and no naming container is found, return typeof
	(Page). In the TemplateBuilder case return cb.ControlType, not
	this.ControlType.

svn path=/trunk/mcs/; revision=119661
2008-11-21 19:27:51 +00:00
Gonzalo Paniagua Javier a0a36f7fd1 revert. found a better fix
svn path=/trunk/mcs/; revision=119129
2008-11-18 07:13:50 +00:00
Gonzalo Paniagua Javier 0f5347e0e0 2008-11-18 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlCompiler.cs: a corner case of the previous bug.


svn path=/trunk/mcs/; revision=119128
2008-11-18 06:33:06 +00:00
Marek Habersack 4f2fbd7c2b 2008-11-14 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: If BindingDirection of the parent 
        template builder is OneWay in
	RegisterBindingInfo, do not throw an exception but simply do not
	register the binding.

svn path=/trunk/mcs/; revision=118813
2008-11-14 02:08:45 +00:00
Marek Habersack 3b49c0ba8b 2008-11-14 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: treat Eval and Bind expressions as
	verbatim code. The only difference between the two is that in the
	latter case Bind is replaced with Eval in the output code. Fixes
	bug #444725

2008-11-14  Marek Habersack  <[email protected]>

	* DataBinder.cs: if Eval doesn't find the indicated property, try
	to find an indexer property on the object and use the expression
	value as its parameter. Fixes #444725

svn path=/trunk/mcs/; revision=118799
2008-11-14 00:41:03 +00:00
Marek Habersack 5ecf20ac0e 2008-10-16 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: IsWritablePropertyOrField doesn't
	use PropertyInfo.CanWrite to check whether the property is
	writable anymore, it calls GetSetMethod (false) instead.

svn path=/trunk/mcs/; revision=115941
2008-10-16 00:04:47 +00:00
Marek Habersack 5bc1fc2fe1 2008-10-10 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: allow whitespace around parentheses 
	in the Bind and Eval expressions.

svn path=/trunk/mcs/; revision=115402
2008-10-10 00:15:16 +00:00
Marek Habersack 332a1a151b 2008-10-08 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: templates must be instantiated even
	for builders which process children as properties.

svn path=/trunk/mcs/; revision=115217
2008-10-08 14:51:11 +00:00
Marek Habersack 6c416d1a76 2008-09-01 Marek Habersack <[email protected]>
* ControlBuilder.cs: CreatePropertyBuilder now correctly processes
	property names with prefixes (e.g. 'prefix:PropertyName'). 
	Original, parsed, tag name is stored to properly handle closing
	tags.

2008-09-01  Marek Habersack  <[email protected]>

	* AspGenerator.cs:
	CloseControl uses ControlBuilder's OriginalTagName property,
	should the property/tag name be prefixed with 'prefix:'

svn path=/trunk/mcs/; revision=112003
2008-09-01 01:33:27 +00:00
Marek Habersack 90e612afe1 2008-08-31 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs:
	Templates are processed before anything else, so that children
	which may depend on parent's templates can get access to them.

2008-08-31  Marek Habersack  <[email protected]>

	* Control.cs: improved FillControlCache

	* ControlBuilder.cs:
	Added a cache for children of TemplateBuilder, used later in
	TemplateControlCompiler.

svn path=/trunk/mcs/; revision=111990
2008-08-31 17:05:28 +00:00
Marek Habersack 27ece7a9b2 2008-08-31 Marek Habersack <[email protected]>
* TemplateParser.cs: added support for the LinePragmas directive
	attribute.

	* ControlBuilder.cs: if this instance is a TemplateBuilder do not
	call MyNamingContainer, so that our own ContainerType can be used
	as the binding container (if present).

2008-08-31  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: trust builder.BindingContainerType
	in the 2.0+ profile - do not use container properties to detect
	the type.
	Added a helper method, compiled only when DEBUG is defined, to
	generate Console.WriteLine CodeDOM calls.

	* BaseCompiler.cs: add line pragmas only if enabled for the
	current file.


svn path=/trunk/mcs/; revision=111983
2008-08-31 01:41:14 +00:00
Marek Habersack 77822cc6e3 2008-08-18 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: process expression when they are
	used used in values of attributes without associated
	properties. Fixes bug #417883

	* ResourceExpressionBuilder.cs: added two overloads of
	CreateGetLocalResourceObject to encompass cases when the generated
	expression is not assigned to a property but rather used as a
	parameter to the SetAttribute method. Fixes bug #417883

svn path=/trunk/mcs/; revision=110844
2008-08-18 19:49:08 +00:00
Marek Habersack 369115ab9c 2008-08-14 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: .NET allows for whitespace between
	the directive start (<%) and the directive type character. Added
	code which copes with such situations correctly.

svn path=/trunk/mcs/; revision=110441
2008-08-14 00:35:55 +00:00
Marek Habersack 9e61c2dbea 2008-08-13 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: rewrote the Bind regular expressions
	to allow for single quotes and an optional second parameter to the
	"call".
	Added an Eval regular expression.
	Both Bind and Eval calls in data expressions are now converted
	into a CodeDOM method invocations, to allow support for possible
	languages which use a different call format (previously code
	snippets were used)
	Added a method to construct the Eval invoke expression which
	simplifies code in other areas.

2008-08-13  Marek Habersack  <[email protected]>

	* TemplateBuilder.cs: use a generic List to store the bindings on
	2.0+

2008-08-13  Marek Habersack  <[email protected]>

	* HttpException.cs: do not use StringBuilder.AppendFormat when
	there is no need.

svn path=/trunk/mcs/; revision=110385
2008-08-13 17:50:53 +00:00
Marek Habersack 18182b7a61 Assembly comparison is not needed in this case
svn path=/trunk/mcs/; revision=109776
2008-08-06 18:25:14 +00:00
Marek Habersack 6e26f62000 2008-08-06 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: handle situation when a property of
	a control for which we're generating the code is of type
	'Type'. In such case, variable.GetType() will return
	System.MonoType, which must not be output to the generated
	source. Thanks to Robert Jordan for giving the idea for the hack!

svn path=/trunk/mcs/; revision=109773
2008-08-06 18:16:42 +00:00
Marek Habersack 4944213e17 2008-06-30 Marek Habersack <[email protected]>
* AspGenerator.cs: hush the warnings and fix invalid type
	comparison.

	* AssemblyBuilder.cs: hush the warnings and add some debugging
	CWLs.

	* AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
	CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
	SimpleBuildProvider.cs, BuildManager.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* HtmlForm.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs, Menu.cs, DataList.cs,
	CustomValidator.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* MachineKeyRegistryStorage.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* SqliteMembershipProvider.cs, SqliteRoleProvider.cs: remove
	unused method

	* SqlRoleProvider.cs, AspNetDBSchemaChecker.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* UserControlParser.cs: hush the warnings and remove unnecessary
	code.

	* ControlCachePolicy.cs, PageParser.cs, ControlBuilder.cs,
	TemplateParser.cs, SimpleWebHandlerParser.cs, TemplateControl.cs,
	ApplicationFileParser.cs: hush the warnings

	* Page.cs: Context is protected internal in .NET 3.5
	Initialize encryption IVs before returning the transform.

	* Control.cs: Hush the warnings.

2008-06-30  Marek Habersack  <[email protected]>

	* HttpRuntime.cs, HttpApplication.cs: hush the warnings

	* HttpContext.cs: Hush the warnings.

2008-06-30  Marek Habersack  <[email protected]>

	* SqliteProfileProvider.cs: remove unused method

2008-06-30  Marek Habersack  <[email protected]>

	* CompilationSection.cs: hush the warnings



svn path=/trunk/mcs/; revision=106886
2008-06-30 13:20:58 +00:00
Marek Habersack 324596317d 2008-06-18 Marek Habersack <[email protected]>
* SqlCacheDependency.cs: added

2008-06-18  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.Caching/SqlCacheDependency.cs

2008-06-18  Marek Habersack  <[email protected]>

	* BasePartialCachingControl.cs: implemented the CachePolicy
	property.

	* UserControl.cs: implemented the CachePolicy property.

	* ControlCachePolicy.cs: implemented missing properties and
	methods.

2008-06-18  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: AddChildCall properly processes the
	PartialCachingAttribute now.

svn path=/trunk/mcs/; revision=106078
2008-06-18 01:09:53 +00:00
Marek Habersack 001579d033 2008-05-06 Marek Habersack <[email protected]>
* Calendar.cs: do not create dateInfo in the constructor - culture
	might be not set yet at this point. Fixes bug #323566
	Added a private property, DateInfo, which creates the dateInfo
	when requested.

2008-05-06  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: compatibility - added the
	__stringResource static field to the generated class and a call to
	SetStringResourcePointer to the FrameworkInitialize method.

	* PageCompiler.cs: __fileDependencies should also be defined in
	the 1.x profile.
	Page properties assigned in the page directive should be set
	inside BuildControlTree in the 2.0 profile.


svn path=/trunk/mcs/; revision=102573
2008-05-05 23:38:47 +00:00
Marek Habersack dd084c5949 2008-02-28 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: make sure that data-bound attribute
	assignments properly convert the Bind expression to the Eval
	one. Fixes bug #362039

svn path=/trunk/mcs/; revision=96861
2008-02-28 11:50:46 +00:00
Marek Habersack 1cbb00dda5 2008-02-25 Marek Habersack <[email protected]>
* ControlBuilder.cs: correctly chain up to the parent builder when
	looking for the naming container.
2008-02-25  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: GetContainerType now checks whether
	the binding container returned from the builder implements
	IDataItemContainer (for 2.0+ profiles) and looks for one more
	property, Rows, if no Items property is found.

svn path=/trunk/mcs/; revision=96536
2008-02-25 12:33:16 +00:00
Marek Habersack 01362c7819 2008-01-08 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: statements to assign
	fields/properties from resources must be processed at the very end
	of the control creation method. Some controls (like HyperLink) can
	set their Text attribute using literal content. In such cases, in
	order to properly localize the control, the value read from the
	local page resources must be assigned after the literal value has
	been added to the control. Fixes bug #323494

svn path=/trunk/mcs/; revision=92458
2008-01-08 15:03:20 +00:00
Marek Habersack 5c99286487 2008-01-02 Marek Habersack <[email protected]>
* TemplateParser.cs: added a wrapper class for server-side script
	snippets, to keep track of locations.
	Store main directive location for later use in DirectiveLocation
	internal property.
2008-01-02  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: add line pragma wherever necessary.

	* PageCompiler.cs: reorder the statements to match MS.NET output.
	Output line pragma information for directive attributes.

	* BaseCompiler.cs: add a set of AddLinePragma methods for various
	CodeDOM elements. 
	Output line pragmas when adding server-side scripts to the CodeDOM
	tree.

	* AspGenerator.cs: use ServerSideScript to store script location
	in the original file.

	* UserControlCompiler.cs: output line pragmas for the init
	method.

svn path=/trunk/mcs/; revision=92125
2008-01-02 20:52:10 +00:00
Juraj Skripsky 1a3b09dcee 2007-12-14 Juraj Skripsky <[email protected]>
* TemplateControlCompiler.cs (AddExpressionAssign):
	Make sure expression does not contain prefix.
	
	* AppSettingsExpressionBuilder.cs: Pass type of property to
	GetAppSetting, not type of declaring type.


svn path=/trunk/mcs/; revision=91283
2007-12-14 13:47:00 +00:00
Marek Habersack 4ce3af2b1f 2007-12-13 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs, AspComponentFoundry.cs,
	AssemblyBuilder.cs, AppResourcesCompiler.cs,
	AppResourcesAssemblyBuilder.cs, AppCodeCompiler.cs: speed
	optimization - use String.Concat instead of String.Format in some
	cases.
2007-12-13  Marek Habersack  <[email protected]>

	* MailAddress.cs, SmtpClient.cs, MailMessageWrapper.cs: speed
	optimization - use String.Concat instead of String.Format in some
	cases.
2007-12-13  Marek Habersack  <[email protected]>

	* HttpRequest.cs, HttpResponse.cs, SiteMapNode.cs, HttpRuntime.cs,
	HttpResponseStream.cs, HttpApplication.cs, HttpCachePolicy.cs:
	speed optimization - use String.Concat instead of String.Format in
	some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* FileMatchingInfo.cs. MachineKeyRegistryStorage.cs: speed
	optimization - use String.Concat instead of String.Format in some
	cases.

svn path=/trunk/mcs/; revision=91234
2007-12-13 15:38:53 +00:00
Marek Habersack 19e3ebce13 2007-11-03 Marek Habersack <[email protected]>
* 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
2007-11-03 00:51:30 +00:00
Marek Habersack c024be4598 2007-10-15 Marek Habersack <[email protected]>
* 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
2007-10-15 13:07:47 +00:00
Marek Habersack 66836ec00e 2007-10-10 Marek Habersack <[email protected]>
* 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
2007-10-10 11:13:19 +00:00
Marek Habersack 694255e611 2007-09-27 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: support nullable types in
	GenerateExpressionFromString.

svn path=/trunk/mcs/; revision=86481
2007-09-27 11:24:44 +00:00
Marek Habersack 13f2e244d9 2007-09-21 Marek Habersack <[email protected]>
* 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
2007-09-20 23:13:27 +00:00
Marek Habersack 592d6443e9 2007-09-20 Marek Habersack <[email protected]>
* 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
2007-09-20 18:01:19 +00:00
Marek Habersack 990cfe94bf 2007-09-10 Marek Habersack <[email protected]>
* 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
2007-09-10 18:56:52 +00:00
Marek Habersack 753ef658e1 2007-09-07 Marek Habersack <[email protected]>
* 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
2007-09-07 12:14:26 +00:00
Marek Habersack f12771f14d 2007-09-06 Marek Habersack <[email protected]>
* 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
2007-09-06 15:38:43 +00:00
Marek Habersack 6412892874 2007-09-06 Marek Habersack <[email protected]>
* 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
2007-09-05 22:12:40 +00:00
Marek Habersack 313add1844 2007-09-04 Marek Habersack <[email protected]>
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
2007-09-04 12:03:37 +00:00
Marek Habersack 33d058da43 2007-09-04 Marek Habersack <[email protected]>
* 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
2007-09-03 21:55:25 +00:00
Marek Habersack fae6aca6c4 2007-08-29 Marek Habersack <[email protected]>
* 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
2007-08-29 12:37:35 +00:00