Commit Graph
1169 Commits
Author SHA1 Message Date
Igor Zelmanovich 42b80592d0 merge r97295
svn path=/trunk/mcs/; revision=97296
2008-03-04 13:34:01 +00:00
Marek Habersack a50b2872dd 2008-02-28 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: ignore case when matching
        handler paths.
2008-02-28  Marek Habersack  <[email protected]>

        * HttpHandlerAction.cs: ignore case when matching handler
        paths. Fixes bug #364995
2008-02-28  Marek Habersack  <[email protected]>

        * TemplateControlParser.cs: when registering a control, check for
        the .ascx extension case-insensitively. Fixes bug #364995


svn path=/trunk/mcs/; revision=96870
2008-02-28 13:14:20 +00:00
Igor Zelmanovich d192022d97 2008-02-28 Igor Zelmanovich <[email protected]>
* Control.cs:
	fixed exception propagation in case of multiple control with same id
	were found.	 

svn path=/trunk/mcs/; revision=96858
2008-02-28 11:20:48 +00:00
Marek Habersack a2a7d08ceb 2008-02-26 Marek Habersack <[email protected]>
* TemplateParser.cs: a better error message.

	* ControlBuilder.cs: if one of the parent builders is a
	TemplateBuilder, use it as the naming container and use its
	ContainerType property as the value of the BindingContainerType
	property.
2008-02-26  Marek Habersack  <[email protected]>

	* BuildProviderCollection.cs: be case-insensitive when looking for
	the extension match.
2008-02-26  Marek Habersack  <[email protected]>

	* BuildManager.cs: known file types extensions are now matched
	case-insensitively.

svn path=/trunk/mcs/; revision=96644
2008-02-26 13:56:15 +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
Igor Zelmanovich 48d0023df9 TARGET_J2EE:
merge r96495:96497

svn path=/trunk/mcs/; revision=96498
2008-02-24 08:48:32 +00:00
Marek Habersack 66916dc696 2008-02-21 Marek Habersack <[email protected]>
* ControlBuilder.cs: introduced a new internal property -
	MyNamingContainer used by the public properties
	NamingContainerType and BindingContainerType. This simplifies the
	code in the latter property, as the binding container type must
	almost always be the same as the naming container type. The only
	exception is when we're inside a content builder, in which case we
	return the parent's BindingContainerType. Fixes bug #363665

svn path=/trunk/mcs/; revision=96395
2008-02-21 21:06:57 +00:00
Vladimir Krasnov d4b54817ab * Page.jvm.cs: StateSerializer.readExternal and writeExternal fixed to support viewstate encryption
svn path=/trunk/mcs/; revision=95490
2008-02-12 11:37:20 +00:00
Igor Zelmanovich 86508f5688 merge r95486-95487
svn path=/trunk/mcs/; revision=95488
2008-02-12 10:14:14 +00:00
Vladimir Krasnov 843ac9cfac * ObjectStateFormatter.cs: revert of 91820
svn path=/trunk/mcs/; revision=95484
2008-02-12 09:24:34 +00:00
Igor Zelmanovich 4e966bdfcd make Exception message more informative
svn path=/trunk/mcs/; revision=95481
2008-02-12 08:56:26 +00:00
Konstantin Triger 6026308289 ignore null state in processRestoreState
svn path=/trunk/mcs/; revision=95360
2008-02-10 08:36:04 +00:00
Marek Habersack 5550885197 2008-02-08 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: always return a non-null value from
	the Program property.

svn path=/trunk/mcs/; revision=95265
2008-02-08 15:41:45 +00:00
Marek Habersack dbd1f99732 2008-02-08 Marek Habersack <[email protected]>
* TemplateParser.cs: make sure that the Src attribute is treated
	correctly in the 2.0 profile. Fixes bug #319016

svn path=/trunk/mcs/; revision=95198
2008-02-07 22:27:11 +00:00
Vladimir Krasnov 706b60e587 Removed debug printouts
svn path=/trunk/mcs/; revision=95151
2008-02-07 16:21:59 +00:00
Vladimir Krasnov 56919138c9 * System.Web20.csproj: added ObjectInputStream.cs and ObjectOutputStream.cs
* Page.jvm.cs: added StateSerializer class, fixed processSaveState, processRestoreState
* HttpContext.jvm.cs: added CurrentHandlerInternal property

svn path=/trunk/mcs/; revision=95144
2008-02-07 15:09:21 +00:00
Marek Habersack 296973051b 2008-02-07 Marek Habersack <[email protected]>
* BuildManager.cs: check for virtualPath existence before
	attempting to compile the assemblies. Fixes bug #359465
2008-02-07  Marek Habersack  <[email protected]>

	* HttpException.cs: moved several strings to constants, for easier
	maintenance. 
	Added 3 new constructors which let the caller to set the exception
	description.
	The Description property is now settable.
	The stack trace at the bottom of the file is written after the
	terminating </html>, inside a HTML comment. Format changed to
	match MS.NET.
	Error 404 is handled in a special way, to match the output with
	MS.NET.

	* HttpContext.cs, StaticFileHandler.cs, HttpApplication.cs: use
	the new HttpException constructor for 404.
2008-02-07  Marek Habersack  <[email protected]>

	* PageHandlerFactory.cs: call PageParser.GetCompiledPageInstance
	only - that method calls the appropriate APIs for 1.1 and 2.0
	profiles.

svn path=/trunk/mcs/; revision=95135
2008-02-07 13:18:35 +00:00
Vladimir Krasnov 809ae9ec07 * Control.cs: fixed ResolveClientUrlInternal for portal url prefixes
svn path=/trunk/mcs/; revision=95020
2008-02-06 13:23:22 +00:00
Igor Zelmanovich 82cb8bca7a TARGET_J2EE:
consider 'mainsoft.render.body.content.only'
init parameter.

svn path=/trunk/mcs/; revision=94876
2008-02-05 12:50:22 +00:00
Marek Habersack 4ed3d8ad96 2008-02-04 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: use WebEncoding.FileEncoding when
	reading the source file.

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

	* AssemblyBuilder.cs: do not use WebEncoding.FileEncoding when
	generating source code files. Fixes bug #357053.

	* AspGenerator.cs: set isApplication before parsing. Fixes bug
	#357036.


svn path=/trunk/mcs/; revision=94774
2008-02-04 19:34:09 +00:00
Igor Zelmanovich 6c68136cf8 2008-01-30 Igor Zelmanovich <[email protected]>
* ObjectStateFormatter.cs: 
	ensure ReaderContext.GetCache called with positive arg to prevent from
	ArgumentOutOfRange being thrown.


svn path=/trunk/mcs/; revision=94366
2008-01-30 11:12:53 +00:00
Igor Zelmanovich 2400828235 2008-01-29 Igor Zelmanovich <[email protected]>
* ObjectStateFormatter.cs: has public constructor.


svn path=/trunk/mcs/; revision=94257
2008-01-29 16:01:39 +00:00
Igor Zelmanovich 319bae5d40 add #if TARGET_J2EE
svn path=/trunk/mcs/; revision=94239
2008-01-29 10:47:28 +00:00
Vladimir Krasnov daa359ed97 performance optimizations
svn path=/trunk/mcs/; revision=94233
2008-01-29 08:45:21 +00:00
Igor Zelmanovich 43dd011987 added TARGET_JVM ifdefs
svn path=/trunk/mcs/; revision=94044
2008-01-27 12:24:31 +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
Igor Zelmanovich de966a4039 refactoring
svn path=/trunk/mcs/; revision=93658
2008-01-23 14:08:12 +00:00
Konstantin Triger df4e7231c2 suppress exception and return url as is
svn path=/trunk/mcs/; revision=93342
2008-01-20 10:14:38 +00:00
Igor Zelmanovich f17a851ad5 2008-01-17 Igor Zelmanovich <[email protected]>
* Control.cs: fix ResolveUrl for some cases.


svn path=/trunk/mcs/; revision=93166
2008-01-17 15:34:56 +00:00
Igor Zelmanovich 0751c1ad58 2008-01-17 Igor Zelmanovich <[email protected]>
* BaseCompiler.cs: Assign AppRelativeVirtualPath correctly

2008-01-17 Igor Zelmanovich <[email protected]>

	* Control.cs: consider changes in BaseCompiler.cs.


svn path=/trunk/mcs/; revision=93162
2008-01-17 15:16:39 +00:00
Igor Zelmanovich 46da4135f5 consider args correctly
svn path=/trunk/mcs/; revision=92960
2008-01-15 16:59:37 +00:00
Igor Zelmanovich 35da1a378a refactoring:
call SetupResponseWriter before render phase.

svn path=/trunk/mcs/; revision=92879
2008-01-14 17:12:25 +00:00
Igor Zelmanovich 46f1994852 2008-01-14 Igor Zelmanovich <[email protected]>
* Control.cs: fixed ResolveClientUrl.
	use Context.FilePath instead of Context.CurrentExecutionPath for 
	resolvint app. releative path.	


svn path=/trunk/mcs/; revision=92844
2008-01-14 11:45:22 +00:00
Vladimir Krasnov 404e02e76a * Page.jvm.cs: optimized SetupResponseWriter, fixed getChildCount and getChildren methods
* Control.jvm.cs: fixed getChildCount method

svn path=/trunk/mcs/; revision=92792
2008-01-13 13:22:03 +00:00
Konstantin Triger 50f6e99a46 ensure events are wired using public interface
svn path=/trunk/mcs/; revision=92783
2008-01-13 12:17:44 +00:00
Igor Zelmanovich 9020ff705e refactoring
svn path=/trunk/mcs/; revision=92775
2008-01-13 10:00:34 +00:00
Igor Zelmanovich dc5657a2a6 2008-01-13 Igor Zelmanovich <[email protected]>
* webform.js:
	make scripts compatible with MicrosoftAjaxLibrary.		


svn path=/trunk/mcs/; revision=92773
2008-01-13 09:38:32 +00:00
Igor Zelmanovich 04661ec92e refactoring:
renamed methods if internal IScriptManager.

svn path=/trunk/mcs/; revision=92583
2008-01-10 13:35:21 +00:00
Konstantin Triger b6bfc1276f TARGET_JVM: wireup auto events only if user did not add them manually
svn path=/trunk/mcs/; revision=92581
2008-01-10 11:21:52 +00:00
Konstantin Triger 49848695bd refactoring: add internal modifier to event keys, so they can be accessed from TemplateControl
svn path=/trunk/mcs/; revision=92580
2008-01-10 11:20:12 +00:00
Igor Zelmanovich 9d9bc5d816 2008-01-10 Igor Zelmanovich <[email protected]>
* webform.js:
	make scripts compatible with MicrosoftAjaxLibrary.		


svn path=/trunk/mcs/; revision=92579
2008-01-10 11:18:40 +00:00
Igor Zelmanovich ec71de5bf5 2008-01-09 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	refactoring.		


svn path=/trunk/mcs/; revision=92511
2008-01-09 15:27:42 +00:00
Igor Zelmanovich 92bbabe175 TARGET_J2EE:
refactoring,  do not use TLS for Context and getFacesContext().

svn path=/trunk/mcs/; revision=92432
2008-01-08 09:54:28 +00:00
Igor Zelmanovich 26024a3c36 2008-01-07 Igor Zelmanovich <[email protected]>
* Page.cs: added internal API
	* IScriptManager.cs: added new internal interface.	

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

	* BaseCompareValidator.cs:
	* BaseValidator.cs:
	* CompareValidator.cs:
	* CustomValidator.cs:
	* RangeValidator.cs:
	* RegularExpressionValidator.cs:
	* RequiredFieldValidator.cs:
	refactoring: If page contents instance of IScriptManager, validators call 
	it's API instead Page.ClientScript.									


svn path=/trunk/mcs/; revision=92389
2008-01-07 14:24:43 +00:00
Igor Zelmanovich 0c60815207 fixed CreateActionUrl
svn path=/trunk/mcs/; revision=92388
2008-01-07 14:06:27 +00:00
Igor Zelmanovich d305e47234 2008-01-07 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs:
	* Control.jvm.cs:			
	* Page.cs:
	* Page.jvm.cs:
	for TARGET_J2EE ensure page life cycle is completed in CrossPagePostBack.
	
2007-01-07 Igor Zelmanovich <[email protected]>

	* Button.cs:
	* ImageButton.cs:
	* LinkButton.cs:
	for TARGET_J2EE used CreateActionUrl instead ResolveClientUrl
	in GetPostBackOptions.			

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

	* HtmlForm.cs: refactoring.


svn path=/trunk/mcs/; revision=92387
2008-01-07 13:38:38 +00:00
Marek Habersack f63737933c 2008-01-07 Marek Habersack <[email protected]>
* CachingCompiler.cs: added an overload to the Compile method
	which accepts a flag whether or not to include debug information
	in the generated assembly.
2008-01-07  Marek Habersack  <[email protected]>

	* TemplateParser.cs: handle legacy 'src' attribute in the 2.0
	profile in the correct way. Fixes bug #319016
	BaseType is global by default.

svn path=/trunk/mcs/; revision=92380
2008-01-07 11:50:21 +00:00
Igor Zelmanovich ba95967aae typo fix
svn path=/trunk/mcs/; revision=92338
2008-01-06 12:06:55 +00:00
Igor Zelmanovich 975de1b3d3 fixed exception handling for TARGET_J2EE
svn path=/trunk/mcs/; revision=92332
2008-01-06 10:19:09 +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