Commit Graph
31 Commits
Author SHA1 Message Date
Marek Habersack 58fca48c17 Add support for App_GlobalResources and App_LocalResources
svn path=/trunk/mcs/; revision=66799
2006-10-18 20:30:10 +00:00
Gonzalo Paniagua Javier 6dcafee7a7 2006-09-08 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: search for the new Page_* event handlers in 2.0.
	Patch by Marek Habersack that fixes bug #78268.


svn path=/trunk/mcs/; revision=65128
2006-09-08 19:13:04 +00:00
Konstantin Triger 6c6fee3811 refactoring implementing Page.GetDataItem()
svn path=/trunk/mcs/; revision=59347
2006-04-11 08:39:47 +00:00
Chris Toshok d19727e2ed * TemplateControl.cs: corcompare work.
* ExpressionBindingCollection.cs: same.

	* HierarchicalDataSourceControl.cs: same.

	* PostBackOptions.cs: same.

	* ClientScriptManager.cs: same.

	* FilterableAttribute.cs: same.

	* ControlCollection.cs: same.

	* DataBindingCollection.cs: same.
	
	* PropertyEntry.cs: mark ctor internal.

	* SimpleWebHandlerParser.cs: mark the 2.0 ctor as internal.

	* Page.cs: stub out two Theme oriented 2.0 properties.

	* DataBinder.cs: remove the obsolete attribute on the ctor.

	* TwoWayBoundPropertyEntry.cs: remove this.
	
	* ControlBuilder.cs (BindingContainerType): virtual in 2.0.

	* ThemeProvider: new (stubbed) class.

	* SkinBuilder.cs: same.

	* PageTheme.cs: same.

	* ControlSkin.cs: same.
	
	* ControlSkinProc.cs: rename this to ControlSkinDelegate.cs.
	
	* SimplePropertyEntry.cs: mark ctor as internal.

	* IThemeResolutionService.cs: enable the 3 members of this
	interface.

2006-02-27  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=57352
2006-02-27 21:13:03 +00:00
Chris Toshok 20ca96da5a 2006-02-07 Chris Toshok <[email protected]>
* MasterPage.cs: rework this file, adding some static methods
	gleaned from MS stack traces, and clear up the propogation of
	content templates between nested master pages.

	* Control.cs (TemplateControl): implement.

	* TemplateControl.cs: re-indent some of the code.
	(ReadStringRecource): according to msdn2, these throw
	NotSupportedException.

	* MasterPageParser.cs (HandleOption): implement.  assign our
	master page's MasterPageFile from the UserControl property.

	* UserControl.cs (InitializeAsUserControlInternal): new method
	that allows initialization without a page.

	* UserControlParser.cs (ProcessMainAttributes): for 2.0 handle
	MasterPageFile attributes, so we can have nested master pages.
	(MasterPageFile): add a 2.0 specific property.
	
	* TemplateControlParser.cs: in .net 2.0, our base class is
	BaseTemplateParser.
	(HandleOptions): be consistent and call base.HandleOptions.

	* BaseTemplateParser.cs: new (stubbed) class.

	* MasterPageControlBuilder.cs: new file, not filled in (and really
	not used either.)

	* Page.cs (InternalProcessRequest): call ApplyMasterPage.
	(SaveExistingContentTemplates): nuke.
	(ReapplyExistingContentTemplate): nuke.
	(ApplyMasterPage): if we have a master page, call
	MasterPage.ApplyMasterPageRecursive with it and add it to our
	controls.
	(set_MasterPageFile): remove call to SaveExistingContentTemplates.
	(get_Master): call MasterPage.CreateMasterPage.
	(AddContentTemplate): keep track of the page's content templates
	in a local Hashtable - they aren't our master page's content
	templates.


svn path=/trunk/mcs/; revision=56620
2006-02-07 16:49:01 +00:00
Gonzalo Paniagua Javier c4ab92db3e 2005-10-25 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs:
	* PartialCachingControl.cs: if a control is cacheable, LoadControl
	returns a PartialCachingControl that holds the VaryBy* and takes care
	of partial caching and rendering. Fixes bug #76547.


svn path=/trunk/mcs/; revision=52188
2005-10-25 16:35:24 +00:00
Sebastien Pouliot 7836b64c9d 2005-09-19 Sebastien Pouliot <[email protected]>
* ControlBuilder.cs: Added BuildObject override for 2.0 profile.
	* TagPrefixAttribute.cs: Added LinkDemand for AspNetHostingPermission
	with Minimal level. Fixed checks on ctor.
	* TemplateBuilder.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level.
	* TemplateContainerAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level.
	* TemplateControl.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Fixed checks/exceptions. 
	Stubbed IFilterResolutionService for CAS testing.
	* TemplateControlParser.cs: Added LinkDemand and InheritanceDemand for
	AspNetHostingPermission with Minimal level.
	* TemplateParser.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level.
	* ThemeableAttribute.cs: Added LinkDemand for AspNetHostingPermission
	with Minimal level. Removed IDispose interface.
	* ToolboxDataAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level. Fixed IsDefaultAttribute 
	to work on both 1.x and 2.0 profiles.
	* Triplet.cs: Added LinkDemand and (only for 1.x) InheritanceDemand 
	for AspNetHostingPermission with Minimal level.
	* UserControl.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Stubbed 
	IFilterResolutionService for CAS testing.
	* UserControlControlBuilder.cs: Added LinkDemand and InheritanceDemand
	for AspNetHostingPermission with Minimal level.
	* ValidationPropertyAttribute.cs: Added LinkDemand for 
	AspNetHostingPermission with Minimal level.
	* ValidatorCollection.cs: Added LinkDemand for AspNetHostingPermission 
	with Minimal level.
	* WebResourceAttribute.cs: Removed extra ctor and added setter to 
	PerformSubstitution.
	* WebServiceParser.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level.


svn path=/trunk/mcs/; revision=50230
2005-09-19 13:55:35 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Lluis Sanchez 6ac456e2f8 2005-04-21 Lluis Sanchez Gual <[email protected]>
* IEditableTextControl.cs: Implemented.
	* DataBinder.cs: Marked constructor as obsolete in 2.0.
	In GetDataItem, check for the IDataItemContainer interface
	in the container.
	* TemplateControl.cs: Improved check for data item.


svn path=/trunk/mcs/; revision=43409
2005-04-21 16:14:16 +00:00
Lluis Sanchez bbdbfabccf 2005-04-07 Lluis Sanchez Gual <[email protected]>
* TemplateControl.cs:
	* Page.cs: Moved Eval and XPath from Page
	to TemplateControl.
	* StateManagedCollection.cs: Avoid saving null state.


svn path=/trunk/mcs/; revision=42645
2005-04-07 16:00:05 +00:00
Gonzalo Paniagua Javier 447590f787 2004-07-16 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: don't include private methods of base classes when
	auto-attaching events. Fixes bug 61569.

svn path=/trunk/mcs/; revision=31203
2004-07-16 04:10:27 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Gonzalo Paniagua Javier aa11211a2a 2004-06-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Handlers/TraceHandler.cs:
	* System.Web.UI/Control.cs:
	* System.Web.UI/Html32TextWriter.cs:
	* System.Web.UI/HtmlTextWriter.cs:
	* System.Web.UI/SimpleWebHandlerParser.cs:
	* System.Web.UI/TemplateControl.cs:
	* System.Web.UI.WebControls/Calendar.cs:
	* System.Web.UI.WebControls/CompareValidator.cs:
	* System.Web.UI.WebControls/ImageButton.cs:
	* System.Web.UI.WebControls/Style.cs:
	* System.Web.UI.WebControls/WebControl.cs:
	Added protected missing members and attributes.

svn path=/trunk/mcs/; revision=28743
2004-06-03 06:17:31 +00:00
Gonzalo Paniagua Javier 972b8ac9ca 2004-03-04 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: fixed typos and added new method names to the set
	of page events.

svn path=/trunk/mcs/; revision=23696
2004-03-04 19:00:55 +00:00
Gonzalo Paniagua Javier 2f300fb212 2004-01-28 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: small speedup for WireUpautomaticEvents. Thanks
	to Eric Lindvall for pointing this out.

svn path=/trunk/mcs/; revision=22556
2004-01-28 00:00:10 +00:00
Gonzalo Paniagua Javier cab270a6d2 2003-10-22 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: added AssemblyLocation property.

	* System.Web.UI/DesignTimeTemplateParser.cs: added FIXME related to
	PageParser.

	* System.Web.UI/PageParser.cs: initialize the parser in the constructor,
	not just before compiling and reference the application assembly.

	* System.Web.UI/SimpleWebHandlerParser.cs: reference the assembly that
	contains the application Type.

	* System.Web.UI/TemplateControl.cs:
	* System.Web.UI/TemplateControlParser.cs: fix BenM #1 bug. Now we pass
	correct virtual path and physical path when compiling a user control.

	* System.Web.UI/TemplateParser.cs: new AddApplicationAssembly ().
	* System.Web.UI/UserControlParser.cs: now we get valid values in the
	ctor.

	Referencing the application assembly fixes bug #49652.

svn path=/trunk/mcs/; revision=19299
2003-10-22 12:06:00 +00:00
Gonzalo Paniagua Javier a18eaf7659 2003-10-18 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/TemplateControl.cs: moved NoParamsInvoker class to its
	own file.

	* System.Web/HttpApplicationFactory.cs: use NoParamsInvoker.
	* System.Web/HttpRequest.cs: support request filters.
	* System.Web/HttpRequestStream.cs: mono-stylized and added new Set
	method.

	* System.Web/NoParamsInvoker.cs: proxy class to invoke user-provided
	methods without parameters that are invoked by EventHandlers.

svn path=/trunk/mcs/; revision=19156
2003-10-18 05:54:18 +00:00
Gonzalo Paniagua Javier d1459321c7 2003-10-13 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Control.cs: removed some debug lines.
	* System.Web.UI/Page.cs: implemented RegisterOnSubmitStatement
	* System.Web.UI/TemplateControl.cs: fixed wire up for methods with no
	parameters.
	* System.Web.UI.HtmlControls/HtmlForm.cs: render the onsubmit attribute.

svn path=/trunk/mcs/; revision=18945
2003-10-13 01:14:56 +00:00
Gonzalo Paniagua Javier 6ff13149b4 2003-10-11 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplicationFactory.cs:
	* System.Web.UI/TemplateControl.cs: support for wiring up events without
	parameters.

	* System.Web.Compilation/AspParser.cs:
	* System.Web.Compilation/TagAttributes.cs: allow duplicated runat=server
	attributes and display error page when duplicated attributes and runat
	is specified.

svn path=/trunk/mcs/; revision=18872
2003-10-11 03:45:07 +00:00
Gonzalo Paniagua Javier b46f9f4e4a 2003-08-11 Gonzalo Paniagua Javier <[email protected]>
* TemplateControl.cs: more Delegate.CreateDelegate fixes.

svn path=/trunk/mcs/; revision=17268
2003-08-11 21:18:07 +00:00
Ravi Pratap M ef0081a565 2003-07-25 Ravi Pratap <[email protected]>
* everywhere: Remove uses of direct invocation of the 'Invoke'
	method on a delegate type - that is error cs1533 now flagged by
	mcs.

svn path=/trunk/mcs/; revision=16681
2003-07-25 17:35:43 +00:00
Andreas N daa87f5920 2003-07-17 Andreas Nahr <[email protected]>
* IUserControlDesignerAccessor.cs: Added and implemented
	* Control.cs: Missing member added, added all attributes
	* Page.cs: Added attributes, fixed signature
	* TemplateControl.cs: Fixed signature, added all attributes
	* UserControl.cs: Added all attributes, added and implemented missing interface

svn path=/trunk/mcs/; revision=16355
2003-07-17 18:59:43 +00:00
Gonzalo Paniagua Javier df578562f2 2003-05-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/CSCompiler.cs: actually add the list of
	referenced assemblies to the compiler options. Throw a
	CompilationException if there's an error.

	* System.Web.Compilation/CachingCompiler.cs: added a method to compile
	directly from a source file.

	* System.Web.UI/TemplateControl.cs: fixed the flags used to find the
	methods that are automatically hooked up on events.

	* System.Web.UI/TemplateParser.cs: don't compile a source file directly.
	Use the cache instead.

svn path=/trunk/mcs/; revision=14231
2003-05-03 13:50:08 +00:00
Gonzalo Paniagua Javier a0a0d602bc 2003-04-30 Gonzalo Paniagua Javier <[email protected]>
* ApplicationFileParser.cs: it works now. Prior to these changes, we
	were using the compiler directly.

	* BaseParser.cs: added some useful properties and methods.

	* CodeBuilder.cs: use ILocation.
	* CodeRenderBuilder.cs: use ILocation.
	* CollectionBuilder.cs: use the RootBuilder to map tag names into Types.

	* ControlBuilder.cs: made it useful.

	* DataBindingBuilder.cs: the control type for data bound text is
	DataBoundLiteralControl now.

	* ObjectTagBuilder.cs: store some object tag attributes.

	* PageParser.cs: handle page-only directives.

	* RootBuilder.cs: bah.
	* SimpleWebHandlerParser.cs: made it dummy.
	* TemplateControl.cs: Modified file.

	* TemplateControlParser.cs: handle directives that are common to pages
	and user controls.

	* TemplateParser.cs: utility methods and handling of directives that
	are common to app, page and user controls.

	* UserControl.cs: added ControlBuilderAttribute.

	* UserControlControlBuilder.cs: builder for user controls.
	* UserControlParser.cs: use the new interfaces.

svn path=/trunk/mcs/; revision=14142
2003-04-30 05:02:54 +00:00
Gonzalo Paniagua Javier 8e91ed0203 2002-12-18 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplicationFactory.cs: add the context as parameter
	when building the application Type.

	* System.Web/HttpCookie.cs: new internal constructor.
	* System.Web/HttpCookieCollection.cs: new internal method to make a
	cookie expire.

	* System.Web/HttpRequest.cs: MapPath fixes.
	* System.Web/HttpResponse.cs: implemented ApplyAppPathModifier.
	* System.Web/HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
	* System.Web.Compilation/AspGenerator.cs: now it uses the current
	HttpContext when creating user controls. TemplateSourceDirectory is no
	longer a dummy value.

	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/UserControlCompiler.cs: set the context which
	will be used to locate the files.

	* System.Web.UI/BaseParser.cs: use MapPath and context to locate files.
	* System.Web.UI/Control.cs: implemented MapPathSecure.
	* System.Web.UI/TemplateControl.cs: use UrlUtils to generate the path.
	* System.Web.UI/TemplateControlParser.cs: use the context and MapPath.
	* System.Web.UI/UserControl.cs: implemented MapPath.
	* System.Web.UI/UserControlParser.cs: added context parameter to
	constructor.
	* System.Web.Util/PathUtil.cs: removed.
	* System.Web.Util/UrlUtils.cs: fixed Combine to handle '~'.

svn path=/trunk/mcs/; revision=9737
2002-12-18 02:17:17 +00:00
Gonzalo Paniagua Javier 31c202887f 2002-12-13 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspGenerator.cs: added support for
	AutoEventWireup attribute in @Page and @Control.

	* System.Web.Compilation/CompilationResult.cs:
	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/UserControlCompiler.cs: store the options.

	* System.Web.UI/Control.cs: added AutoEventWireup internal property.

	* System.Web.UI/Page.cs: removed page events wire up from here.

	* System.Web.UI/TemplateControl.cs: new method WireupAutomaticEvents to
	hook up page and user controls events.

	* System.Web.UI/TemplateControlParser.cs: process the options that are
	applicable once we have the instance of the control.

	* System.Web.UI/TemplateParser.cs: also stores the options.

	* System.Web.UI/UserControl.cs: hook up events before initializing the
	control.

svn path=/trunk/mcs/; revision=9623
2002-12-13 15:57:07 +00:00
Gonzalo Paniagua Javier 06bb07d6d0 forgotten in last commit
svn path=/trunk/mcs/; revision=9595
2002-12-12 20:54:30 +00:00
Gonzalo Paniagua Javier 43d7f24f1c 2002-12-12 Gonzalo Paniagua Javier <[email protected]>
* list: Modified file.
	* System.Web/HttpRuntime.cs: avoid nulls and exception when getting
	resource format strings.

	* System.Web/StaticFileHandler.cs: added file name to error message.
	* System.Web.Compilation/AspElements.cs: new method Tag.GetElements
	used to parse the inner contents of a tag looking for data binding or
	code render tags.

	New property HtmlControlTag.ParseChildren allows
	differentiation of a couple of HtmlControls that has children as
	properties (namely HtmlTable and HtmlTableRow).

	* System.Web.Compilation/AspGenerator.cs: fixed container semantics to
	match BindingContainer one. Implemented Inherits attribute for page and
	control.

	Support HtmlControls that has ChildrenAsProperties.

	Generate code for data binding functions that matches the semantic of
	Container.

	Handle data bound and code render attribute values.

	Set proper value return for TemplateSourceDirectory. Should be relative
	to appPath.

	* System.Web.Compilation/BaseCompiler.cs: moved CompilerOptions and
	References handling here.

	* System.Web.Compilation/CachingCompiler.cs: copy result of compilation.

	* System.Web.Compilation/CompilationException.cs: simple ToString ()
	implementation.

	* System.Web.Compilation/CompilationResult.cs: implemented CopyFrom and
	ToString.

	* System.Web.Compilation/GlobalAsaxCompiler.cs:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/UserControlCompiler.cs: removed
	CompilerOptions as it's now handled in the base class. Get all the
	types in the generated assembly and look for one that derives from
	the correct Type.

	* System.Web.UI/Control.cs: implemented TemplateSourceDirectory.
	* System.Web.UI/TemplateControl.cs: implemented LoadControl and
	LoadTemplate.

	* System.Web.Util/PathUtil.cs: some path handling methods that are not
	available in Path.

svn path=/trunk/mcs/; revision=9583
2002-12-12 03:20:19 +00:00
Gonzalo Paniagua Javier 922dfc4b3d 2002-08-16 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/AspElements.cs:
	* System.Web.Compilation/AspParser.cs:
	* System.Web.Compilation/AspTokenizer.cs:
	* System.Web.Compilation/ChangeLog:
	* System.Web.Compilation/PageCompiler.cs:
	* System.Web.Compilation/TemplateFactory.cs:
	* System.Web.UI/ApplicationFileParser.cs:
	* System.Web.UI/BaseParser.cs:
	* System.Web.UI/PageParser.cs:
	* System.Web.UI/TemplateControl.cs:
	* System.Web.UI/TemplateControlParser.cs:
	* System.Web.UI/TemplateParser.cs: first steps to move xsp into
	System.Web.

svn path=/trunk/mcs/; revision=6668
2002-08-16 05:36:06 +00:00
Duncan Mak 727a100466 2002-05-24 Duncan Mak <[email protected]>
* ListItemCollection.cs (this): Changes the visibility level of
	the indexer.

	* TemplateControl.cs (SetStringResourcePointer): Fixed typo.

svn path=/trunk/mcs/; revision=4915
2002-05-24 20:27:24 +00:00
Duncan Mak b3976280ad 2002-05-17 Duncan Mak <[email protected]>
* System.Web.build: Added new arguments: "/noconfig",
	"/r:System.Drawing.dll" and "/r:System.Xml.dll".

	* AttributeCollection.cs:
	* ControlCollection.cs:
	* CssStyleCollection.cs:
	* DataBindingCollection.cs:
	* EmptyControlCollection.cs: Added missing Collection classes.

	* BaseParser.cs:
	* TemplateParser.cs:  Implemented. BaseParser is weird because
	there is no documentation on what it does.

	* ControlBuilder.cs:

	* DataBinder.cs:
	* DataBinding.cs: Added.

	* DataBoundLiteralControl.cs:
	* Triplet.cs: Added.

	* RenderMethod.cs: Added this delegate for Control.cs

svn path=/trunk/mcs/; revision=4726
2002-05-17 20:54:14 +00:00