Commit Graph
55 Commits
Author SHA1 Message Date
Marek Habersack 45cccd09d5 2009-01-09 Marek Habersack <[email protected]>
* BaseParser.cs, PageParser.cs, UserControlParser.cs: use
	VirtualPathUtility.GetDirectory instead of UrlUtils.GetDirectory.

svn path=/trunk/mcs/; revision=122893
2009-01-09 14:41:30 +00:00
Marek Habersack d0135f374d 2008-12-10 Marek Habersack <[email protected]>
* MasterPageParser.cs: do not compile anything while
	parsing. MasterType virtual path is not compiled, but stored for
	later. It is compiled when the MasterType property is requested
	from within MasterPageCompiler.

	* PageParser.cs: do not compile anything while
	parsing. MasterPageFile, MasterType and PreviousPageType virtual
	paths aren't compiled but checked for existence and stored for
	later. Actual compilation happens when the MasterType and
	PreviousPageType are requested from within PageCompiler.

	* BaseParser.cs: added a new helper method, ThrowParseFileNotFound.

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

	* ParseException.cs: made serializable.

	* PageCompiler.cs: CreateStronglyTypedProperty calls
	AddReferencedAssembly to add type's assembly to the unit's
	references after the typed property has been created.

	* BaseCompiler.cs: added a new helper method,
	AddReferencedAssembly to be used whenever an assembly location
	needs to be added to the compilation unit's list after the parsing
	is done (e.g. when processing PreviousPageType or MasterPageType
	properties in PageParser)

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

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

	* System.Web_test.dll.sources: added System.Web.UI/PageParserTest.cs

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

	* NunitWebResources/MissingMasterFile.aspx: added

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

	* PageParserTest.cs: added



svn path=/trunk/mcs/; revision=121181
2008-12-10 02:03:35 +00:00
Marek Habersack fa32fdf482 2008-11-25 Marek Habersack <[email protected]>
* System.Web.dll.sources: added
	System.Web.Compilation/AspComponent.cs

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

	* RootBuilder.cs: use new API in AspComponentFoundry to retrieve
	registered control type.

	* TemplateControlParser.cs: AddControlImports () removed. Its
	functionality is now implemented in ControlBuilder.AddChild in a
	more elegant, fine grained and correct way.

	* TemplateParser.cs: replaced some "" with String.Empty

	* ControlBuilder.cs: AddChild now adds an import for child's
	namespace if the control being added has been registered in the
	web.config file. Possible fix for #447896 and #447898

	* PageParser.cs, MasterPageParser.cs: do not call
	AddControlImports, it no longer exists.

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

	* AspComponentFoundry.cs: GetComponentType methods replaced with
	GetComponent returning an instance of AspComponent which fully
	describes the registered item. Components are cached, indexed by
	full tag name.

	* AspComponent.cs: added

svn path=/trunk/mcs/; revision=119893
2008-11-25 00:51:21 +00:00
Marek Habersack d9ffa572e2 2008-10-23 Marek Habersack <[email protected]>
* TemplateControlParser.cs: added internal method
	AddControlImports which adds namespaces named in the
	pages/controls section of web.config

	* MasterPageParser.cs: unconditionally add namespaces named in the
	pages/controls section of web.config.

	* PageParser.cs: add namespaces named in the pages/controls
	section of web.config to the page whenever it uses a master page.

svn path=/trunk/mcs/; revision=116858
2008-10-23 16:09:10 +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
Juraj Skripsky a49df1366f 2008-06-04 Juraj Skrispky <[email protected]>
* PageParser.cs (ProcessMainAttributes): Take value of
	enableEventValidation from web.config into account. Fixes bug #397099.


svn path=/trunk/mcs/; revision=104877
2008-06-04 16:04:31 +00:00
Marek Habersack bf6db8d3c5 2008-04-24 Marek Habersack <[email protected]>
* AspComponentFoundry.cs: added a new GetComponentType overload
	which returns component source and a boolean flag whether the
	control was registered from web.config (2.0).

2008-04-24  Marek Habersack  <[email protected]>

	* RootBuilder.cs: when registering a custom control, add its path
	to the parser dependencies. Fixes bug #377915
	In the 2.0 profile, if the custom control being used was
	registered from web.config and is found in the same directory what
	the file being parsed, throw an exception. This behavior matches
	MS.NET.

	* TemplateParser.cs: added new VirtualPath property, which stores
	the virtual path to the file being parsed.

	* PageParser.cs: set the VirtualPath property in the 2.0 profile
	when constructing the parser.

svn path=/trunk/mcs/; revision=101623
2008-04-23 23:26:04 +00:00
Marek Habersack e71f514f40 2008-01-24 Marek Habersack <[email protected]>
* WebHandlerBuildProvider.cs: derive from the new
	SimpleBuildProvider class.

	* BuildManager.cs: full implementation of the batch compilation
	for the 2.0 profile. The implementation is most probably different
	to MS.NET's but the effects are the same (or nearly the same -
	there are some minor differences). There are missing bits and
	pieces, but minor ones - to be added later.

	* SimpleBuildProvider.cs: new build provider abstract class
	deriving from the GenericBuildProvider that implements common code
	for building web handlers and web services.

	* GenericBuildProvider.cs: new generic abstract class used to
	implement base builder code for all the build provider types and
	maximize code reuse.

	* PageBuildProvider.cs: derive from the new TemplateBuildProvider
	class and implement all the necessary abstract members. 
	Handle "fake" virtual paths, to properly support generating of the
	WSDL helper code.

	* BuildProvider.cs: SetVirtualPath now converts the passed path to
	absolute URL.
	Added internal virtual method GenerateCode, used by derived
	classes.
	SetCommonParameters no longer sets the referenced assemblies, this
	is done in BuildManager now.
	Added an internal virtual property CodeUnit which returns the
	build provider's compilation unit.

	* PageCompiler.cs: fix assignment of base types for asynchronous
	pages, to match MS.NET.
	For asynchronous pages, add the necessary methods generation.

	* BaseCompiler.cs: default namespace is now set using a constant.
	Renamed the Init method into ConstructType, to better reflect its
	purpose and made the method internal - it is used by the build
	providers.
	Added several CreateProvider overloads for easier and more unified
	compilation provider creation.
	Added an internal MainClassType property to enable class type name
	retrieval from other parts of the class hierarchy.

	* ApplicationFileBuildProvider.cs: new build provider deriving
	from the TemplateBuildProvider class to compile the global.asax
	file.

	* AspGenerator.cs: properly handle parsers which have no input
	file path given, but use TextReader instead.
	Dependencies are virtual paths now, convert them to physical ones
	before creating cache dependency.

	* CachingCompiler.cs: parser dependencies are virtual paths now,
	convert them to physical ones before creating cache dependency.

	* AssemblyBuilder.cs: full implementation of the documented
	functionality as well as a lot of internal build code
	added. Produces assemblies using the same style what MS.NET for
	temporary and target file naming. Handles partial type squashing
	if the same partial type is used by several code compile units
	added to the same builder instance.

	* MasterPageBuildProvider.cs: use the new TemplateBuildProvider
	base class and add implementation of all the abstract methods
	required by it.

	* ThemeDirectoryBuildProvider.cs: new build provider to compile
	theme directories. Replaces the old ThemeDirectoryCompiler class.

	* UserControlBuildProvider.cs: use the new TemplateBuildProvider
	base class and add implementation of all the abstract methods
	required by it.

	* TemplateBuildProvider.cs: new internal abstract class which
	implements the common tasks for all the template control build
	providers.

	* WebServiceBuildProvider.cs: use the new SimpleBuildProvider base
	type to implement building.

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

	* PageThemeFileParser.cs: the DefaultBaseType property removed.

	* ApplicationFileParser.cs: added constructor which takes a
	TextReader.
	Removed the DefaultBaseType property.
	Added the Reader property.

	* MasterPage.cs: use BuildManager to create page instance.

	* WebHandlerParser.cs: added a compatibility constructor.

	* TemplateControl.cs: GetTypeFromControlPath uses
	BuildManager.GetCompiledType for the 2.0+ profile.

	* WebServiceParser.cs: added a compatibility internal
	constructor.

	* SimpleWebHandlerParser.cs: properly treat context and
	physicalPath parameters to the constructor, especially for the
	2.0+ profile where they are obsolete.
	Dependencies are added using virtual paths.

	* PageThemeParser.cs: DefaultBaseType property removed.

	* Page.cs: Style sheets and themes are compiled using
	BuildManager.
	Previous page instance is compiled using BuildManager for the 2.0+
	profile.

	* MasterPageParser.cs: Use BuildManager to create instance and
	compile types.
	Dependencies are added using virtual paths.

	* SimpleHandlerFactory.cs: Use
	BuildManager.CreateInstanceFromVirtualPath for the 2.0+ profile.

	* UserControlParser.cs: if the parser is created using a
	TextReader, take the input file path from the virtual path.
	Added a new internal constructor which takes both a TextReader and
	an inputFile parameters.
	Set base type to the default in the constructors.
	Use virtual path when setting master page dependency.
	DefaultBaseTypename doesn't use a literal string in the 2.0+
	profile, it gets the base type from the application
	configuration.

	* TemplateControlParser.cs: Dependency on a control/page mentioned
	in the Reference directive is registered using the virtual path.
	TextReader property is an override now.

	* TemplateParser.cs: RegisterCustomControl adds a dependency on
	the virtual path, not the physical path. The custom control is
	compiled using BuildManager.GetCompiledType for the 2.0+ profile.
	RegisterNamespace does not add a dependency on the assembly.
	LoadType does not add a dependency on the assembly.
	Legacy Src attribute is handled properly now.
	Dependency on code-behind (Src and CodeFile directive attributes)
	is added using the code-behind file's virtual path.
	GetAssemblyFromSource adds a dependency using the virtual path.
	DefaultBaseType implemented here, using DefaultBaseTypeName which
	is implemented in the descendant classes.
	Added internal CodeBehindSource property, used by build
	providers.
	ClassName property works correctly if inputFile is missing
	(e.g. when the parser has been created using a TextReader)
	Added a virtual internal property TextReader to return the readed
	which has been used to create the parser instance.

	* PageHandlerFactory.cs: GetHandler uses
	BuildManager.CreateInstanceFromVirtualPath for the 2.0+ profile.

	* PageParser.cs: set the default base type in the constructors.
	If the input file is not passed to a constructor, take the input
	file path from the virtual path.
	GetCompiledPageInstance uses BuildManager.CreateInstanceFromVirtualPath
	for the 2.0+ profile.
	MasterPage dependency is set using the virtual path of the master
	page.
	MasterPage is compiled into a type using BuildManager.GetCompiledType.
	GetCompiledPageType uses BuildManager.GetCompiledType for the 2.0
	profile.
	DefaultBaseType override removed, it is implemented in the
	TemplateParser class.
	DefaultBaseTypename doesn't use a literal string in the 2.0+
	profile, it gets the base type from the application
	configuration.

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

	* HttpApplicationFactory.cs: use BuildManager.GetCompiledType to
	build the application (global.asax) file.

svn path=/trunk/mcs/; revision=93848
2008-01-24 21:55:44 +00:00
Marek Habersack de1ad2116e 2007-12-15 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: Default value for Debug is taken from
	the compilation config section.

	* TemplateParser.cs: Added LoadConfigDefaults here, loads default
	value for Debug from the compilation section.
	Cache CompilationConfig in methods where it is accessed more than
	once.
	Default value for Debug in ProcessMainAttributes is taken from the
	compilation config.

	* PageParser.cs, TemplateControlParser.cs: LoadPagesConfigDefaults
	renamed to LoadConfigDefaults.
2007-12-15  Marek Habersack  <[email protected]>

	* AppCodeCompiler.cs: do not instantiate CodeDomProvider twice.

	* BaseCompiler.cs: do not use CreateCompiler () in the 2.0
	profile, it's obsoleted. CachingCompiler will use the
	CodeDomProvider methods directly in that case.

	* WebServiceCompiler.cs: Updated GetCompiledType to acquire
	compiler information for the 2.0 profile from system.codeDom.

	* CachingCompiler.cs: the Compile overloads do not use the
	compiler instance, but call appropriate methods on the
	CodeDomProvider instance directly.
	Updated some Compile overloads to acquire compiler information for
	the 2.0 profile from system.codeDom.


svn path=/trunk/mcs/; revision=91343
2007-12-15 03:42:00 +00:00
Igor Zelmanovich f8dac948dc 2007-11-07 Igor Zelmanovich <[email protected]>
* TraceContext.cs:
	* TraceData.cs: implemented TraceMode feature.	

2007-11-07 Igor Zelmanovich <[email protected]>

	* PageParser.cs: fixed initial value of tracemode.


svn path=/trunk/mcs/; revision=89102
2007-11-07 13:55:05 +00:00
Marek Habersack cc4155bff0 2007-10-29 Marek Habersack <[email protected]>
* TemplateParser.cs: add the file pointed to by the Src or
	CodeFile attributes to the list of page cache dependencies.

	* PageParser.cs, UserControlParser.cs: Add the MasterPage file to
	the list of page cache dependencies.

	* MasterPageParser.cs: add the source pointed to by VirtualPath to
	the list of cache dependencies.

svn path=/trunk/mcs/; revision=88403
2007-10-29 19:23:20 +00:00
Marek Habersack 96c7b2864d 2007-10-17 Marek Habersack <[email protected]>
* 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
2007-10-17 21:17:41 +00:00
Gert Driesen b857f8cee5 * PagesConfigurationHandler.cs: Use enum for EnableSessionState.
* PagesConfiguration.cs: Use enum for EnableSessionState.
* PagesEnableSessionState.cs: Marked internal on 1.0 profile.
* PageParser.cs: Replace enableSessionState and readOnlySessionState
bools with enum backed field. Move 1.0 profile code for checking value
of EnableSessionState pages config to PagesConfigurationHandler.       
Fixes bug #82392 for 1.0 profile.

svn path=/trunk/mcs/; revision=83810
2007-08-10 12:43:23 +00:00
Marek Habersack 36382adfe5 2007-08-09 Marek Habersack <[email protected]>
* PageParser.cs: honor web.config enableSessionState
	ReadOnly setting instead of overwriting based on default value for 
	page directive EnableSessionState. Patch from Joel Reed
	<[email protected]>, thanks! Fixes bug #82392

svn path=/trunk/mcs/; revision=83807
2007-08-10 10:32:25 +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 8f217b10af 2007-05-01 Marek Habersack <[email protected]>
* HttpCapabilitiesBase.cs: move the User-Agent code to a separate
	internal method.

2007-05-01  Marek Habersack  <[email protected]>

	* HtmlForm.cs: do not use User-Agent directly, we must take
	ClientTarget into account.

2007-05-01  Marek Habersack  <[email protected]>

	* BaseValidator.cs: do not use User-Agent directly, we must take
	ClientTarget into account.

2007-05-01  Marek Habersack  <[email protected]>

	* PageParser.cs: clientTarget comparisons must be case-insensitive


svn path=/trunk/mcs/; revision=76522
2007-05-01 11:01:22 +00:00
Marek Habersack b261b168d2 ignore case and use invariant culture on comparison
svn path=/trunk/mcs/; revision=75477
2007-04-06 10:42:49 +00:00
Marek Habersack 88c1522436 adjust for the 1.x profile
svn path=/trunk/mcs/; revision=75476
2007-04-06 10:38:27 +00:00
Marek Habersack b723df471e 2007-04-06 Marek Habersack <[email protected]>
* PagesSection.cs: provide appropriate default value for the
	asyncTimeout setting.

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

	* Page.cs: defaults for ViewStateEncrptionMode and AsyncTimeout
	are read from the pages section, if found.

	* TemplateControlParser.cs: added support for loading
	pages/controls defaults from web.config even if the page/control
	does not have its corresponding directive.
	Added support for reading the CompilationMode attribute.

	* PageParser.cs: added support for loading pages/controls defaults
	as above. Fixes bug #80915.
	Added support for reading the maxPageStateFieldLength setting.
	Added support for reading the pageParserFilter setting.
	

svn path=/trunk/mcs/; revision=75475
2007-04-06 10:29:38 +00:00
Marek Habersack 0f6913f8a5 Make the enableSesionState <pages> attribute values case-sensitive. Fixes bug 80913
svn path=/trunk/mcs/; revision=73770
2007-03-06 00:40:11 +00:00
Marek Habersack fb27421ce2 Support a few more Page directive attributes
svn path=/trunk/mcs/; revision=73660
2007-03-03 15:26:40 +00:00
Marek Habersack 630edf9eff Support for automatic culture detection
svn path=/trunk/mcs/; revision=68216
2006-11-20 21:02:22 +00:00
Gonzalo Paniagua Javier aeae1b7019 2006-09-18 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/PageParser.cs:
	* System.Web.Compilation/PageCompiler.cs: support the
	EnableEventValidation attribute.


svn path=/trunk/mcs/; revision=65610
2006-09-18 21:42:21 +00:00
Chris Toshok 9cd26e2c03 In System.Web.UI:
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
2006-03-02 19:30:08 +00:00
Gonzalo Paniagua Javier f269a83e07 2006-02-14 Gonzalo Paniagua Javier <[email protected]>
* 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
2006-02-14 22:02:15 +00:00
Chris Toshok b5cb597758 2006-02-07 Chris Toshok <[email protected]>
* MasterPage.cs (CreateMasterPage): don't nullref on null
	contentTemplateCollection.

	* ControlBuilder.cs: add a flushOutputStatements field.

	* PageParser.cs (ProcessMainAttributes): handle Title attribute.
	(Title): add getter.
	
	* Page.cs (Title): implement getter/setter.
	(InternalProcessRequest): after calling ApplyMasterPage, apply the
	page's Title directive if there is one.
	(AddContentTemplate): make the EditorBrowsable attribute apply to
	the method, not the field.


svn path=/trunk/mcs/; revision=56634
2006-02-07 20:04:15 +00:00
Chris Toshok 6550ae7c10 2006-02-01 Chris Toshok <[email protected]>
* TemplateParser.cs: CONFIGURATION_2_0 => NET_2_0, and replace
	calls to GetWebApplicationSection with GetSection.

	* SimpleWebHandlerParser.cs: same.

	* Page.cs: same.

	* PageParser.cs: same.

	* BaseParser.cs: same.


svn path=/trunk/mcs/; revision=56415
2006-02-01 20:00:39 +00:00
Chris Toshok ef9c382df3 2006-01-22 Chris Toshok <[email protected]>
* PageParser.cs (ProcessMainAttributes): i missed a
	CONFIGURATION_2_0 block.


svn path=/trunk/mcs/; revision=55911
2006-01-22 20:05:32 +00:00
Chris Toshok 2fd12039bd 2005-11-28 Chris Toshok <[email protected]>
* Page.cs (GetFormatter): CONFIGURATION_2_0 work.

	* TemplateParser.cs (..ctor): CONFIGURATION_2_0 work.
	(PagesConfig): add a CONFIGURATION_2_0 version that returns a
	PagesSection.

	* PageParser.cs (ProcessMainAttributes): CONFIGURATION_2_0 work.

	* BaseParser.cs (CompilationConfig): add a CONFIGURATION_2_0
	version that returns a CompilationSection.


svn path=/trunk/mcs/; revision=53582
2005-11-28 20:54:41 +00:00
Sebastien Pouliot d3e07dd1e4 2005-09-15 Sebastien Pouliot <[email protected]>
* Html32TextWriter.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Added new 2.0 properties
	(but the generated HTML doesn't use them).
	* HtmlTextWriter.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level.
	* ImageClickEventArgs.cs: Added LinkDemand for AspNetHostingPermission
	with Minimal level.
	* LiteralControl.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Default Text is null.
	* LosFormatter.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Stubbed new 2.0 ctor.
	* ObjectConverter.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Obsoleted ctor for 2.0.
	* ObjectTagBuilder.cs: Added LinkDemand for AspNetHostingPermission 
	with Minimal level. Added check for null id (HttpException).
	* Page.cs: Added LinkDemand and InheritanceDemand for 
	AspNetHostingPermission with Minimal level. Throw some HttpException 
	when no context is available.
	* Pair.cs: Added LinkDemand for AspNetHostingPermission with Minimal 
	level. InheritanceDemand too for 1.x.
	* PageParser.cs: Added LinkDemand for AspNetHostingPermission with 
	Minimal level.


svn path=/trunk/mcs/; revision=50093
2005-09-15 16:58:32 +00:00
Gonzalo Paniagua Javier 78b524222f 2005-06-14 Gonzalo Paniagua Javier <[email protected]>
* PageParser.cs: don't try to compile the master page if it wan't
	provided. Use MapPath from the base classes instead of the long
	version. Fixes bug #75269 that prevented xsp2 from working properly.


svn path=/trunk/mcs/; revision=46006
2005-06-15 03:16:20 +00:00
Lluis Sanchez f3846ab1a8 2005-06-13 Lluis Sanchez Gual <[email protected]>
* PageParser.cs: Added MasterType property. Get the type from the
	MasterType directive.
	* MasterPageParser.cs: Added GetCompiledMasterType method.


svn path=/trunk/mcs/; revision=45884
2005-06-13 16:55:11 +00:00
Lluis Sanchez 5064e23220 2005-01-21 Lluis Sanchez Gual <[email protected]>
* PageParser.cs: Read the MasterPageFile attribute.
	* UserControlParser.cs: Not sealed any more since we need to inherit from
	it. Added new constructor with an additional "type" parameter.
	* MasterPageParser.cs: Parser for master pages.
	* Page.cs: Added support for master pages.
	* MasterPage.cs: Implemented.


svn path=/trunk/mcs/; revision=39318
2005-01-21 18:03:15 +00:00
Gonzalo Paniagua Javier 8432e31ff8 2004-07-02 Gonzalo Paniagua Javier <[email protected]>
* System.Web/TraceContext.cs: added internal HaveTrace property whose
	value is true when the page has a Trace attribute.

	* System.Web.Handlers/TraceHandler.cs: check that trace is enabled or
	throw.

	* System.Web.UI/Page.cs: added additional checks for saving/displaying
	trace data.

	* System.Web.UI/PageParser.cs: removed checks for trace enabled in
	configuration files.

	Thanks to David Taylor for most of these patch and the tests.

svn path=/trunk/mcs/; revision=30638
2004-07-02 01:54:48 +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 193970990d 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* PageParser.cs:
	* UserControlParser.cs: set the page/user control base type even when no
	default directive provided. Fixes bug #60572.

svn path=/trunk/mcs/; revision=30227
2004-06-23 17:55:50 +00:00
Gonzalo Paniagua Javier 7371e09828 2004-06-23 Gonzalo Paniagua Javier <[email protected]>
* PageParser.cs: use default trace settings from web.config and check
	if trace is only requested for local connections. Fixes bug #60180.

svn path=/trunk/mcs/; revision=30206
2004-06-23 15:02:35 +00:00
Gonzalo Paniagua Javier 042a08443a 2004-06-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web/TraceContext.cs: don't check if HttpRuntime.TraceManager
	is enabled when writing.

	* System.Web.Compilation/PageCompiler.cs: fixed Trace and add support
	for Buffer.

	* System.Web.UI/Page.cs: removed obsolete TODO. Only check if Trace is
	enabled, not HttpRutime.TraceManager.

	* System.Web.UI/PageParser.cs: for 'trace' we have 2 variables now.
	Added support for 'buffer' attribute.

	Fixes bug #58481.

svn path=/trunk/mcs/; revision=28873
2004-06-05 15:47:26 +00:00
Gonzalo Paniagua Javier e404b1b70d 2004-06-04 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs: added ClientTarget internal property.

	* System.Web.Compilation/PageCompiler.cs: override CreateConstructor
	to add assignment for ClientTarget.

	* System.Web.Configuration/HttpCapabilitiesBase.cs: ClientTarget takes
	precedence over UserAgent.

	* System.Web.UI/Page.cs: implemented ClientTarget.
	* System.Web.UI/PageParser.cs: support for clientTarget and check for
	validity.

svn path=/trunk/mcs/; revision=28811
2004-06-04 04:01:07 +00:00
Gonzalo Paniagua Javier 0745d5cd5d 2004-01-12 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added new files in S.W.Configuration.

	* System.Web/HttpContext.cs: add setter for ConfigTimeout.
	* System.Web/HttpException.cs: added Description property and HTML
	encode some unescaped values.

	* System.Web/HttpRequest.cs: support request validation.

	* System.Web/HttpRequestValidationException.cs: added message and
	description.

	* System.Web/HttpServerUtility.cs: implemented ScriptTimeout.

	* System.Web.Compilation/PageCompiler.cs: invoke Request.ValidateInput
	if required.

	* System.Web.Configuration/GlobalizationConfiguration.cs: undo old fix.

	* System.Web.Configuration/PagesConfiguration.cs:
	* System.Web.Configuration/PagesConfigurationHandler.cs: new files for
	processing system.web/pages section.

	* System.Web.UI/ApplicationFileParser.cs: adde DefaultBaseTypeName
	property.

	* System.Web.UI/PageParser.cs: support validateRequest.

	* System.Web.UI/TemplateControlParser.cs: get default values from
	system.web/pages section.

	* System.Web.UI/TemplateParser.cs: added separate method for changing
	base type (Inherits or system.web/pages).

	* System.Web.UI/UserControlParser.cs: support system.web/pages defined
	base type.

svn path=/trunk/mcs/; revision=21971
2004-01-12 07:03:42 +00:00
Gonzalo Paniagua Javier a2d15941df 2003-12-18 Gonzalo Paniagua Javier <[email protected]>
* LosFormatter.cs: new ctor for 1.1. The default ctor is public.
	* Page.cs: added ViewStateUserKey and made RegisterclientScriptFile
	internal.
	* PageParser.cs: the ctor is public.
	* PartialCachingAttribute.cs: added new ctor and Shared property.

svn path=/trunk/mcs/; revision=21290
2003-12-18 01:15:58 +00:00
Gonzalo Paniagua Javier ed575c326a 2003-12-17 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added CustomErrorsConfigHandler.cs

	* System.Web/HttpContext.cs: implemented IsCustomErrorEnabled and
	IsDebuggingEnabled. Added internal ErrorPage property.

	* System.Web/HttpRuntime.cs: on error, check if we have a custom error
	page enabled to handle it and redirect.

	* System.Web/HttpResponse.cs: added RedirectCustomError (), which
	actually does the redirection to the error page.

	* System.Web.Compilation/PageCompiler.cs: assign the ErrorPage property
	if provided.

	* System.Web.UI/Page.cs: assign the ErrorPage to the context if we get
	an exception when processing the page which only calls Unload.

	* System.Web.UI/PageParser.cs: handle ErrorPage.

	* System.Web.Configuration/CustomErrorsConfigHandler.cs: handle
	<system.web><customErrors />..

	Closes bug #51979.

svn path=/trunk/mcs/; revision=21286
2003-12-17 17:26:46 +00:00
Jackson Harper ea1ef8a270 * PageParser.cs: Add Trace and Trace mode attributes.
svn path=/trunk/mcs/; revision=21220
2003-12-16 03:50:56 +00:00
Jackson Harper e2e2967bf0 * PageParser.cs: Ignore the SmartNavigation attribute for now.
svn path=/trunk/mcs/; revision=20907
2003-12-08 22:11:32 +00:00
Gonzalo Paniagua Javier f744323f8f 2003-11-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/PageCompiler.cs: assign LCID, Culture and/or
	UICulture in FrameworInitialize() if provided in @Page.

	* System.Web.UI/Page.cs: fixed UICulture, LCID and Culture. Set the
	thread [UI]Culture before processing the request.

	* System.Web.UI/PageParser.cs: read Culture, UICulture and LCID
	attributes. Added properties for these. Partially contributed by
	Mohammad Damt.

	Fixes bug #51511.

svn path=/trunk/mcs/; revision=20633
2003-11-30 18:46:53 +00:00
Gonzalo Paniagua Javier 817a717054 2003-11-05 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRequest.cs:
	* System.Web/HttpResponse.cs:
	* System.Web/HttpUtility.cs:
	* System.Web/HttpValueCollection.cs: encoding fixes/updates.

	* System.Web/HttpWriter.cs: when updating the encoding, flush the
	existing stream. Encoding updates.

	* System.Web.Compilation/AspGenerator.cs: use fileEncoding from
	configuration files.

	* System.Web.Compilation/PageCompiler.cs: add assign statements for
	ContentType, ResponseEncoding and CodePage if supplied.

	* System.Web.Configuration/GlobalizationConfiguration.cs: added
	GetInstance method.

	* System.Web.Configuration/GlobalizationConfigurationHandler.cs: warn
	about unsupported encodings and provide reasonable defaults.

	* System.Web.Security/FormsAuthentication.cs: encoding updates.
	* System.Web.UI/LosFormatter.cs: encoding updates.
	* System.Web.UI/Page.cs: implemented CodePage and ContentType.
	* System.Web.UI/PageParser.cs: handle CodePage, ContentEncoding and
	ResponseEncoding attributes.

	* System.Web.Util/WebEncoding.cs: added properties to access
	configuration files encoding.

svn path=/trunk/mcs/; revision=19641
2003-11-05 07:49:02 +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 b4f5170b44 2003-10-13 Gonzalo Paniagua Javier <[email protected]>
* PageParser.cs: ignore ValidateRequest by now.

svn path=/trunk/mcs/; revision=18944
2003-10-13 00:24:32 +00:00
Gonzalo Paniagua Javier f18a91c800 2003-10-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/PageParser.cs:
	* System.Web.UI/TemplateControlParser.cs: honour the input file given
	as argument.

svn path=/trunk/mcs/; revision=18537
2003-10-03 04:01:08 +00:00
Andreas N 137c68e961 2003-07-27 Andreas Nahr <[email protected]>
* ApplicationFileParser.cs: Fixed signature
	* DesignTimeParseData.cs: Added missing properties, implemented
	* Page.cs: Added attributes
	* PageParser.cs:
	* TemplateControlParser.cs:
	* TemplateParser.cs:
	* UserControlParser.cs: Fixed signature

svn path=/trunk/mcs/; revision=16745
2003-07-27 13:48:44 +00:00