Commit Graph
236 Commits
Author SHA1 Message Date
Marek Habersack abb3087f1e 2008-05-18 Marek Habersack <[email protected]>
* HierarchicalDataBoundControl.cs: Modified GetData method to check if
	DataSource implements IHierarchicalEnumerable and if so constructs and
	returns a new instance of ReadOnlyDataSourceView. This provides functional
	compatibility with the Microsoft.NET framework. Fixes bug
	#395209. Patch contributed by James Fitzsimons
	<[email protected]>, thanks!

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

	* HierarchicalDataBoundControlTest.cs: Added 
	TestIHierarchicalEnumerableDataSource to test change made to
	GetData method to make functionally compatibile with Microsoft.NET
	framework. Patch contributed by James Fitzsimons
	<[email protected]>, thanks!

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

	* ReadOnlyDataSourceView.cs: added. Patch contributed by James
	Fitzsimons <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=104329
2008-05-28 21:07:04 +00:00
Marek Habersack 64beb8e472 2008-04-18 Marek Habersack <[email protected]>
* Makefile (OTHER_LIB_MCS_FLAGS): remove dependency on
	System.Windows.Forms and define INSIDE_SYSTEM_WEB during
	compilation.

	* System.Web.dll.sources: include
	../Managed.Windows.Forms/System.Resources/ResXResourceReader.cs
	../Managed.Windows.Forms/System.Resources/ResXResourceWriter.cs		
	../Managed.Windows.Forms/System.Resources/ResXFileRef.cs
	../Managed.Windows.Forms/System.Resources/ResXDataNode.cs
	../Managed.Windows.Forms/System.Resources/ResXNullRef.cs
	directly.

svn path=/trunk/mcs/; revision=101079
2008-04-17 22:15:45 +00:00
Marek Habersack a409c4f567 2008-04-09 Marek Habersack <[email protected]>
* System.Web.dll.sources: added System.Web.Compilation/AppWebReferencesCompiler.cs

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

	* HttpApplicationFactory.cs: compile web references. Fixes bug
	#377934

	* VirtualPath.cs: added a method to convert a physical path into a
	virtual one, if the physical path is under the application root.

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

	* BuildManager.cs: refactoring - the SetCommonParameters and
	GetDefaultCompilerTypeForLanguage moved here from BuildProvider,
	and made internal static.

	* AppWebReferencesCompiler.cs: added - support for compiling of
	wsdl files found in the App_WebResources directory. Fixes bug
	#377934

	* BuildProvider.cs: refactoring - moved the SetCommonParameters
	and GetDefaultCompilerTypeForLanguage to BuildManager

	* WsdlBuildProvider.cs: added the CodeCompilerType property
	override.
	Namespace for the generated code is taken from the wsdl path,
	relative to App_Code or App_WebReferences, if the wsdl in question
	is under on of those directories.
	GenerateCode uses OpenReader () so that VirtualPathProvider works
	for wsdl files.

	* AssemblyBuilder.cs: Cope with virtualPath being null in BuildAssembly.
	Reference assemblies specified in web.config when linking.



svn path=/trunk/mcs/; revision=100266
2008-04-09 20:10:08 +00:00
Marek Habersack 1e9e697cc9 2008-04-07 Marek Habersack <[email protected]>
* VirtualPath.cs: added

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

	* System.Web.dll.sources: added System.Web/VirtualPath.cs

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

	* DefaultVirtualDirectory.cs: fixed the constructor - derive
	virtual directory from the original path.
	AddDirectories and AddFiles combine the virtual paths properly
	now.

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

	* TemplateParser.cs: CodeFile/Src handling uses
	HostingEnvironment.VirtualPathProvider to check for file
	existence.

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

	* TemplateParser.cs: CodeFile/Src handling uses
	HostingEnvironment.VirtualPathProvider to check for file
	existence.

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

	* AppCodeCompiler.cs: VirtualPath used in PhysicalToVirtual.

	* BuildManager.cs: switched to VirtualPath instead of a string
	path in several methods.
	Batch compilation is turned off if we have a custom
	VirtualPathProvider which implements only the VirtualFile and
	falls back to DefaultVirtualDirectory implementation for directory
	access.

	* GenericBuildProvider.cs: AddCodeFile accepts a virtual path.

	* BuildProvider.cs: SetVirtualPath accepts a VirtualPath now.

	* AssemblyBuilder.cs: constructors use the new VirtualPath class
	now.
	AddCodeFile can use the VirtualPathProvider if necessary now.
	BuildAssembly overloads accept VirtualPath parameter instead of a
	string path now.

	* TemplateBuildProvider.cs: GetCodeBehindSource returns the
	virtual path now.

svn path=/trunk/mcs/; revision=100063
2008-04-07 23:00:16 +00:00
Dean Brettle 23000b3144 ++ Test/mainsoft/ChangeLog (working copy)
* add new resources: 
		PageWithAdapter.aspx for PageTest and PageAdapterTest.
		TestCapability.browser for AppBrowsersTest.

	* NunitWebResources/adapters.browser, 
	NunitWebResources/AppBrowsersTest.browser: modified to support
	testing reference nodes with captures, and adapters.

	* NunitWeb/NunitWeb/WebTest.cs: ensure that, during AppDomain
	unload, no new requests are sent to the app host and any
	pending requests are completed before the the unload occurs.
	Also added WebTest.AppUnloaded event that tests can use to wait
	for the app to unload (e.g. after touching Global.asax), and 
	WebTest.CleanApp() which can be called to restart the app with
	the a skeleton directory structure.  Tests which add files that
	could effect other tests (e.g. App_Browsers/*.browser files) should
	call WebTest.CleanApp() during TearDown to return the app to a 
	pristine environment.
	
++ Test/mainsoft/MainsoftWebTest/ChangeLog	(working copy)

	* HtmlAgilityPack/AssemblyInfo.cs: made assembly delay signed so that 
	tests can access System.Web internals now that System.Web is
	InternalsVisibleTo this assembly.

++ Test/System.Web/ChangeLog	(working copy)

	* AppBrowsersTest.cs: added.  Includes tests for Control.Adapter,
	Control.ResolveAdapter,	Control.TagWriter, and
	Control.CreateHtmlTextWriter, when using App_Browsers/*.browser files.
	AppBrowsersTest is currently tagged [Ignore], pending a fix for 
	bug #351878.
	
	* HttpRuntimeTest.cs: added. Includes test for 
	HttpRuntime.UnloadAppDomain().  Marked [Ignore], pending a fix for
	bug #351878.
	
++ Test/System.Web.UI.Adapters/ChangeLog	(revision 0)

	* PageAdapterTest.cs: added tests for PageAdapter.


	* ControlAdapterTest.cs (ConfigCapabilitiesNotCalled): added test to
	ensure that HttpCapabilitiesBase.ConfigCapabilities() is not called
	during normal page processing if no files are in App_Browsers.
	


	* ControlAdapterTest.cs: added tests for ControlAdapter.
++ Test/System.Web.UI/ChangeLog	(working copy)

	* PageTest.cs: add tests for using a PageAdapter.
	
	* ControlTest.cs: moved commented out ResolveAdapter_1 test to 
	../System.Web/AppBrowsersTest.cs.  Fixed typo in test name.  
	Added Customcontroladapter.Adapter property for use by AppBrowsersTest.

++ Test/System.Web.UI.WebControls.Adapters/ChangeLog	(revision 0)

	* MenuAdapterTest.cs: added


	* WebControlAdapterTest.cs, HierarchicalDataBoundControlAdapterTest.cs,
	DataBoundControlAdapterTest.cs, HideDisabledControlAdapterTest.cs: added
++ Test/System.Web.UI.WebControls/ChangeLog	(working copy)

	* MenuTest.cs (Menu_RenderStaticItems): added tests to check that
	result was the same when using the base MenuAdapter as when using
	no adapter.
	
	* MenuTest.cs (Menu_RenderStaticItemsWithAdapter): added test
	to ensure that MenuAdapter.RenderItem() is called.

	* HierarchicalDataBoundControlTest.cs, WebControlTest.cs, 
	DataBoundControlTest.cs: added test for use of ControlAdapters
	when present.
	
	* WebControl.cs: added test for IsEnabled.

++ System.Web/ChangeLog	(working copy)

	* HttpApplicationFactory.cs: Added support for detecting 
	App_Browsers/*.browser files and using them to determine capabilities.
	Also restart the app if the App_Browsers, App_Code, or App_GlobalResources
	directories are created.

	* BrowserCapabilities.cs (TagWriter): get value via internal virtual
	GetTagWriter() method, which is overridden in nBrowser.Result.

	* HttpRequest.cs (BrowserMightHaveSpecialWriter, BrowserMightHaveAdapters):
	internal properties added to allow Page and Control methods to avoid
	accessing Request.Browser to get browser-specific HtmlTextWriters or 
	ControlAdapters.  Those things only exist when there are App_Browsers
	files.

++ System.Web.UI.Adapters/ChangeLog	(working copy)

	* ControlAdapter.cs: made control field internal so
	derived internal classes can access it without using base.Control
	which can involved several typecasts.


	* PageAdapter.cs: implemented all members.
	

	* ControlAdapter.cs: implemented all members.
	
	* PageAdapter.cs, ControlAdapter.cs: add MonoTODO's.
++ System.Web.UI/ChangeLog	(working copy)

	* Page.cs (SavePageControlState, LoadPageControlState): save/load 
	adapter state in 2.0 profile.
	
	* Page.cs (CreateHtmlTextWriter): call Browser.CreateHtmlTextWriter()
	in 2.0 profile.
	
	* Page.cs (RenderPage): call CreateHtmlTextWriter() to get the writer
	in 2.0 profile.
	
	* Page.cs (DeterminePostBackMode, InitOutputCache, 
	RenderClientScriptFormDeclaration,	InternalProcessRequest,
	PageStatePersister): added support for PageAdapters.

	* Control.cs (Adapter, ResolveAdapter): implemented.  Adapter calls
	ResolveAdapter and remembers result.  ResolveAdapter checks for adapters
	of the Type hierarchy until it finds one.
	
	* Control.cs (SaveViewStateRecursive, LoadViewStateRecursive): save/load
	adapter state in 2.0 profile.
	
	* HtmlTextWriter.cs (BeginRender, EndRender): added empty virtual methods
	required by 2.0 profile.  These are called by corresponding methods of
	System.Web.UI.Adapters.ControlAdapter.
	
	* Page.cs, Control.cs: don't access Request.Browser if it couldn't have
	any adapters/writers because there are no files in App_Browsers/.

++ Assembly/ChangeLog	(working copy)

	* AssemblyInfo.cs: made InternalsVisibleTo System.Web.test_net_2_0.dll
	to support ControlAdapterTest.ConfigCapabilitiesNotCalled().

++ ChangeLog	(working copy)

	* System.Web_test.dll.sources: added
		System.Web.UI.WebControls.Adapters/MenuAdapterTest.cs
		System.Web.UI.WebControls.Adapters/WebControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HierarchicalDataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/DataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HideDisabledControlAdapterTest.cs
		System.Web.UI.Adapters/PageAdapterTest.cs
		System.Web.UI.Adapters/ControlAdapterTest.cs
		
	* Makefile (RESOURCE_FILES_2): added
		System.Web.Configuration_2.0/RandomRoboBotKeywords.txt

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

	* System.Web.dll.sources: added
		System.Web.Configuration_2.0/CapabilitiesBuild.cs
		System.Web.Configuration_2.0/CapabilitiesChecksum.cs
		System.Web.Configuration_2.0/CapabilitiesResult.cs
		System.Web.Configuration_2.0/ICapabilitiesProcess.cs
		System.Web.Configuration_2.0/nBrowser/Result.cs
		System.Web.Configuration_2.0/nBrowser/NodeTypes.cs
		System.Web.Configuration_2.0/nBrowser/Identification.cs
		System.Web.Configuration_2.0/nBrowser/File.cs
		System.Web.Configuration_2.0/nBrowser/Build.cs
		System.Web.Configuration_2.0/nBrowser/Node.cs
		System.Web.Configuration_2.0/nBrowser/Exception.cs
		
++ System.Web.UI.WebControls.Adapters/ChangeLog	(working copy)

	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs: changed to use ControlAdapter.control
	instead of using base.Control or using a new control field.
	
	* MenuAdapter.cs: added	internal constructor that takes a Menu
	parameter.  The constructor is used when writing unit tests.
	
	* MenuAdapter.cs (OnInit, OnPreRender, RenderBeginTag, 
	RenderContents, RenderEndTag): delegate to base instead of
	Control.
	
	* MenuAdapter.cs (LoadAdapterControlState, SaveAdapterControlState,
	RaisePostBackEvent, RenderItem): implemented.
	

	* WebControlAdapter.cs (RenderContents): changed to call 
	control.RenderContents() instead of control.Render().
	
	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs: added
	internal constructor that takes a parameter of the corresponding
	Control type.  The construct is used when writing unit tests.

++ System.Web.Configuration_2.0/ChangeLog	(working copy)

	* nBrowser/Result.cs, nBrowser/NodeTypes.cs, nBrowser/Identification.cs,
	nBrowser/File.cs, nBrowser/Build.cs, nBrowser/Node.cs, 
	nBrowser/Exception.cs: added.  The code under nBrowser handles *.browser
	files.  It is based on Owen "Ocean" Brady's code, with the following 
	changes and improvements.  Replaced Result.Adapter 
	property with AdapterTypeMap property which maps control Type to adapter
	Type.  Added Result.MarkupTextWriter property.  Added overrides for
	Result.GetAdapters and Result.GetTagWriter to return MarkupTextWriter
	and AdapterTypeMap, resp.  Changed tree building algorithm to not
	depend on nodes with id="Default" and to inject defaultBrowser nodes
	as parents of regular nodes with the same ids.  Changed Node.cs to use
	Item instead of Add when adding a capability or sample header, so that
	values get replaced instead of appended.  Added support for reference 
	nodes (ie. nodes with refID="someID").
		
	* CapabilitiesResult.cs: load RandomRoboBotKeywords.txt resource
	using the correct name.
	
	* RandomRoboBotKeywords.txt: added 

	* HttpCapabilitiesBase.cs (CreateHtmlWriter, Adapters): Added
	support for *.browsers.  Adapters property calls internal virtual
	GetAdapters() method which is overrided in nBrowser.Result 
	returned by nBrowser code.  CreateHtmlWriter uses type specified
	by TagWriter property.
	
++ System.Web.UI.WebControls/ChangeLog	(working copy)

	* DetailsView.cs, ListControl.cs, DataBoundControl.cs, 
	FormView.cs, HierarchicalDataBoundControl.cs, WebControl.cs: 
	added support for using ControlAdapters when present.
	
	* WebControl.cs: fixed implementation of IsEnabled to match 
	documentation.

	* Menu.cs (RenderMenuBody): call Adapter.RenderItem() instead of 
	RenderMenuItem() if an adapter is present.  MenuAdapter.RenderItem() 
	calls back to new Menu.RenderItem() internal method which calls
	RenderMenuItem() with the appropriate parameters.

++ System.Web.Configuration/ChangeLog	(working copy)

	* HttpCapabilitiesBase.cs: changed to use nBrowser for *.browser 
	support.  Also added internal GetConfigCapabilities_called
	flag used by ControlAdapterTest.ConfigCapabilitiesNotCalled() to 
	test that GetConfigCapabilities() is not called during normal page
	processing when there are no files in App_Browsers/.


svn path=/trunk/mcs/; revision=97824
2008-03-09 22:55:22 +00:00
Marek Habersack 09c2c620cb 2008-03-01 Marek Habersack <[email protected]>
* HttpRuntime.cs: SettingsMappingManager has been moved to
	Mono.Web.
2008-03-01  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: SettingsMappingManager has been
	moved to Mono.Web.dll
2008-03-01  Marek Habersack  <[email protected]>

	* Makefile: added a dependency on Mono.Web.dll

	* System.Web.dll.sources: removed SystemSettingsMapper public APIs
	and moved them to the Mono.Web assembly.
2008-03-01  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: added
2008-03-01  Marek Habersack  <[email protected]>

	* ISectionSettingsMapper.cs, MembershipSectionMapper.cs,
	RoleManagerSectionMapper.cs, SettingsMapping.cs,
	SettingsMappingManager.cs, SettingsMappingWhat.cs: moved to here
	from System.Web
2008-03-01  Marek Habersack  <[email protected]>

	* Mono.Web.dll.sources: added

	* Makefile: added


svn path=/trunk/mcs/; revision=97035
2008-02-29 23:49:18 +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 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
Vladimir Krasnov c2c3688601 * System.Web.dll.sources: added AspNetDBSchemaChecker.cs
* System.Web20.csproj: added AspNetDBSchemaChecker.cs
* SqlProfileProvider.cs: added db schema checking
* SqliteMembershipProvider.cs, SqlRoleProvider.cs: added chema checking
* added AspNetDBSchemaChecker.cs: schema checker helper class

svn path=/trunk/mcs/; revision=92040
2007-12-30 16:07:38 +00:00
Juraj Skripsky 6486fa984c 2007-12-19 Juraj Skripsky <[email protected]>
* Cache.cs: Replace periodic timer (60s) with per-cache-item expiration
	timers.

2007-12-19  Juraj Skripsky <[email protected]>

	* HttpContext.cs, HttpApplication.cs: Move timeout tracking from
	TimeoutManager into HttpContext. Replace periodic timeout checks with
	separate per-context timeout timers.  
	* HttpRuntime.cs: remove TimeoutManager.

2007-12-19  Juraj Skripsky  <[email protected]>

	* System.Web.dll.sources: removed TimeoutManager.cs


svn path=/trunk/mcs/; revision=91612
2007-12-19 11:27:00 +00:00
Marek Habersack 58eceab2ec 2007-12-08 Marek Habersack <[email protected]>
* TranslationResources.resx: added - string resources for the
	Sqlite providers.
2007-12-08  Marek Habersack  <[email protected]>

	* SQLiteProviders_DatabaseSchema.sql: added
	* Makefile: added support for compiling .resx resources.
	Added SQLiteProviders_DatabaseSchema.sql to EXTRA_DISTFILES.
	Added new resource files to EXTRA_DISTFILES
2007-12-08  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: initialize the Settings Mapping Manager once per
	application, just after initalizing the WebConfigurationManager
2007-12-08  Marek Habersack  <[email protected]>

	* SqliteProfileProvider.cs: added - a Profile Provider for
        Sqlite, based on PostgreSQL Profile Provider code from Daniel
        Nauck <[email protected]>
2007-12-08  Marek Habersack  <[email protected]>

	* TranslationProperties.Designer.cs: added - contains strongly
	typed properties referring to string resources used by the Sqlite
	providers.
2007-12-08  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: GetSection now runs each section
	through a mapper (if any is defined for the section) before
	returning it to the caller.
2007-12-08  Marek Habersack  <[email protected]>

	* SqliteRoleProvider.cs: added - a Role Provider for
	Sqlite, based on PostgreSQL Role Provider code from Daniel
	Nauck <[email protected]>

	* SqliteMembershipProvider.cs: added - a Membership Provider for
	Sqlite, based on PostgreSQL Membership Provider code from Daniel
	Nauck <[email protected]>
2007-12-08  Marek Habersack  <[email protected]>

	* SerializationHelper.cs: added - serialization helper for the
	Sqlite Profile Provider.

	* RoleManagerSectionMapper.cs: added - section settings mapper for
	the RoleManager section.

	* MembershipSectionMapper.cs: added - section settings mapper for
	the Membership section.

	* ISectionSettingsMapper.cs: added - interface definition for
	section settings mappers.

	* SettingsMappingWhat.cs: added - describes a single 'what' tag
	instance inside the mapper definition in the settings.map file.

	* SettingsMapping.cs: added - represents a single mapper entry in
	the settings.map file.

	* SettingsMappingManager.cs: added - manages settings mapping as
	defined in the settings.map file.


svn path=/trunk/mcs/; revision=90972
2007-12-07 23:26:18 +00:00
Daniel Nauck dcd94b8d21 2007-11-23 Daniel Nauck <[email protected]>
* System.Web.dll.sources: added
        System.Web/TraceContextRecord.cs
        * System.Web_test.dll.sources: added
        System.Web/TraceContextRecordTest.cs


svn path=/trunk/mcs/; revision=90226
2007-11-23 15:15:03 +00:00
Marek Habersack 65f9ec2aad 2007-11-23 Marek Habersack <[email protected]>
* IConfigMapPathFactory.cs: added

	* IConfigMapPath.cs: added
2007-11-23  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.Configuration_2.0/IConfigMapPath.cs and
	System.Web.Configuration_2.0/IConfigMapPathFactory.cs


svn path=/trunk/mcs/; revision=90202
2007-11-22 23:38:06 +00:00
Daniel Nauck 552e3e1069 2007-11-22 Daniel Nauck <[email protected]>
* System.Web.dll.sources: added
        System.Web/IPartitionResolver.cs


svn path=/trunk/mcs/; revision=90198
2007-11-22 22:13:51 +00:00
Marek Habersack 2f4bfc457e 2007-11-22 Marek Habersack <[email protected]>
* RequestNotificationStatus.cs: added

	* RequestNotification.cs: added
2007-11-22  Marek Habersack  <[email protected]>

	* System.Web.dll.sources:
	Added System.Web/RequestNotification.cs, System.Web/RequestNotificationStatus.cs


svn path=/trunk/mcs/; revision=90189
2007-11-22 20:15:13 +00:00
Marek Habersack bbad701742 2007-11-22 Marek Habersack <[email protected]>
* AssemblyInfo.cs: make System.Web.Extensions a friend assembly.
2007-11-22  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added System.Web/HttpCacheVaryByContentEncodings.cs
2007-11-22  Marek Habersack  <[email protected]>

	* HttpCacheVaryByContentEncodings.cs: added

	* HttpCachePolicy.cs: added the HttpCacheVaryByContentEncodings
	property.

	* HttpApplication.cs: added 3 new events to the pipeline (for
	compatibility with the 2.0sp1/3.5 version of System.Web)
2007-11-22  Marek Habersack  <[email protected]>

	* HttpCacheVaryByContentEncodingsTest.cs: added

svn path=/trunk/mcs/; revision=90179
2007-11-22 18:25:32 +00:00
Daniel Nauck a7e01a3e50 2007-11-22 Daniel Nauck <[email protected]>
* System.Web.dll.sources: added
        System.Web/WebPageTraceListener.cs

        * WebPageTraceListener.cs: initial checkin (stubs).


svn path=/trunk/mcs/; revision=90158
2007-11-22 15:11:36 +00:00
Marek Habersack e9c28fc584 2007-11-06 Marek Habersack <[email protected]>
* DataGrid.cs: add RenderTable before the DataGridItems, so that
	numbering of children is the same what on MS.NET.
	If there are any data items, require a postback script.
	Fixes bug #319449
	
	* ChildTable.cs: removed DOS EOLs.
2007-11-06  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.UI.WebControls/ChildTable.cs to compilation, for MS.NET
	compatibility.


svn path=/trunk/mcs/; revision=88945
2007-11-06 01:12:02 +00:00
Marek Habersack 6f82e580a4 2007-11-01 Marek Habersack <[email protected]>
* Page.cs, ObjectStateFormatter.cs: use the new
	MachineKeySectionUtils class wherever necessary.
2007-11-01  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added MachineKeySectionUtils.cs
2007-11-01  Marek Habersack  <[email protected]>

	* RolePrincipal.cs, MembershipProvider.cs: use the new
	MachineKeySectionUtils class wherever necessary.

	* FormsAuthentication.cs: use the new MachineKeySectionUtils class
	wherever necessary.
	GetHexString is a private method again.
2007-11-01  Marek Habersack  <[email protected]>

	* MachineKeySection.cs: moved all the internal static methods and
	properties to MachineKeySectionUtils.cs

	* MachineKeySectionUtils.cs: added. This file is included in the
	System.Web.Extensions compilation.
	The old properties from MachineKeySection.cs became methods.
2007-11-01  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: added GetHexString, copied from
	FormsAuthentication.cs. Encryption/decryption routines use methods
	from the new MachineKeySectionUtils class. This is needed for the
	same code to work from both System.Web and System.Web.Extensions.


svn path=/trunk/mcs/; revision=88621
2007-11-01 02:14:52 +00:00
Marek Habersack 511d26cdcc 2007-10-24 Marek Habersack <[email protected]>
* HttpHandlerAction.cs: exact path matching must be done on the
	original string in PathMatches, not on the sliced one. Fixes bug
	#335669.
2007-10-24  Marek Habersack  <[email protected]>

	* HandlerFactoryConfiguration.cs: exact path matching must be done
	on the original string in PathMatches, not on the sliced one.

	* FileMatchingInfo.cs: refactoring - this code used to live in
	both 1.1 and 2.0 profiles. At the same time, fixe the way
	MatchExact is created - the slash is prepended only if the path
	doesn't begin with it.
2007-10-24  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.Configuration/FileMatchingInfo.cs

svn path=/trunk/mcs/; revision=88121
2007-10-24 19:55:36 +00:00
Marek Habersack 28be7561f9 2007-10-01 Marek Habersack <[email protected]>
* AppResourcesCompiler.cs: resources are no longer compiled into a
	single assembly. Instead, the common assembly construction code
	has been moved to AppResourcesAssemblyBuilder to use satellite
	assemblies.

	* AppResourcesAssemblyBuilder.cs: new resource assembly
	construction code which takes care of outputting satellite
	assemblies.

svn path=/trunk/mcs/; revision=86697
2007-10-01 12:30:36 +00:00
Marek Habersack b497743322 2007-08-30 Marek Habersack <[email protected]>
* System.Web.dll.sources: added MachineKeyRegistryStorage.cs

2007-08-30  Marek Habersack  <[email protected]>

            * MachineKeySection.cs: retrieve the keys from the registry before
            falling back to the old method. Fixes bug #76606

2007-08-30  Marek Habersack  <[email protected]>

            * MachineKeyRegistryStorage.cs: added


svn path=/trunk/mcs/; revision=85063
2007-08-30 17:32:52 +00:00
Marek Habersack e1cf022a02 2007-05-15 Marek Habersack <[email protected]>
* WsdlBuildProvider.cs: make the code actually work - get the
	physical path of VirtualPath instead of converting it to absolute
	URI path.
	Do not generate source, add the code unit to assembly builder
	instead.

	* XsdBuildProvider.cs: added
2007-05-15  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.Compilation/XsdBuildProvider.cs


svn path=/trunk/mcs/; revision=77400
2007-05-15 13:26:56 +00:00
Wade Berrier ade0dc14de svn path=/trunk/mcs/; revision=75858 2007-04-18 05:11:50 +00:00
Marek Habersack b08d3647e6 2007-04-17 Marek Habersack <[email protected]>
* culevel/culevel.exe.sources: added

	* culevel/Makefile (thisdir): added

	* culevel/CompileUplevel.cs: added

	* Makefile (thisdir): added the culevel subdirectory to the list.

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

	* Makefile (thisdir): added tools/culevel to the list of
	subdirectories - it must be compiled before compiling the classes
	since System.Web depends on it.

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

	* Makefile (System.Web/UplevelHelper.cs): autogenerate the file if
	it doesn't exist.

	* System.Web.dll.sources: added the System.Web/UplevelHelper.cs
	file. It is autogenerated by the culevel compiler.

	* UplevelHelperDefinitions.xml: added default uplevel browsers
	definition file. This serves as input to the culevel compiler in
	the tools directory at the top of the mcs tree.

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

	* WebUIValidation_2.0.js: added HaveRegexp () function to detect
	if the browser supports the RegExp class. Use GetElement ()
	everywhere.

	* WebUIValidation.js: added HaveRegexp () function to detect if
	the browser supports the RegExp class.

	* webform.js: use WebForm_GetElementById everywhere.

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

	* HtmlForm.cs: use the new uplevel browser detection code.

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

	* BaseValidator.cs: use the new uplevel browser detection code.


svn path=/trunk/mcs/; revision=75818
2007-04-17 13:13:03 +00:00
Vladimir Krasnov 654f07ff11 * System.Web20.csproj:
* System.Web.dll.sources: added HttpParamsCollection.cs
* HttpRequest.cs: fixed Params property to be lazy initialzation collection

svn path=/trunk/mcs/; revision=75640
2007-04-12 12:40:05 +00:00
Vladimir Krasnov 10bac2bec2 * System.Web20.csproj:
* System.Web.dll.sources: HeadersCollection.cs, BaseParamsCollection.cs
* HttpRequest.cs: fixed Headers property to use optimized HeadersCollection
* WebROCollection.cs: used StringComparer.OrdinalIgnoreCase for NET_2_0
* ServerVariablesCollection.cs: used lazy collection fill optimization
* added: HeadersCollection.cs, BaseParamsCollection.cs

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

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

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

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

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

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

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


svn path=/trunk/mcs/; revision=74734
2007-03-21 14:09:18 +00:00
Marek Habersack 7c8648b8ee Implement WebEventCodes
svn path=/trunk/mcs/; revision=74018
2007-03-09 17:59:37 +00:00
Adar Wesley 4b91e3e87b 2007-03-06 Adar Wesley <[email protected]>
* Page.cs: initial implementation of support for Async=true.  Added
        initial support for ViewStateEncryption.  Implemented
        CreateHtmlTextWriterFromType.

        * PageAsyncTask.cs: Created class to support Async pages.

        * ObjectStateFormatter.cs: Added support for ViewState encryption.

        * HtmlTextWriter.cs: Fixed constructor to accept null TextWriter
        to conform to MS behavior.


svn path=/trunk/mcs/; revision=73797
2007-03-06 10:00:18 +00:00
Marek Habersack 9a8d3bbd51 Sources
svn path=/trunk/mcs/; revision=72658
2007-02-12 14:17:49 +00:00
Igor Zelmanovich 0a5741878a 2007-02-07 Igor Zelmanovich <[email protected]>
* FormView.cs:
	* FormViewPagerRow:		
	implemented FormViewPagerRow class	

svn path=/trunk/mcs/; revision=72406
2007-02-07 09:53:27 +00:00
Marek Habersack 0689967a9f Wsdl build provider added
svn path=/trunk/mcs/; revision=71084
2007-01-15 21:02:18 +00:00
Igor Zelmanovich a53f406596 2007-01-09 Igor Zelmanovich <[email protected]>
* Panel.cs:
	* PanelStyle.cs:
	implemented 2.0 features.	

svn path=/trunk/mcs/; revision=70726
2007-01-09 16:34:59 +00:00
Vladimir Krasnov e1d9667f69 added ProfileParameter.cs
svn path=/trunk/mcs/; revision=70591
2007-01-07 15:20:27 +00:00
Marek Habersack 58a60fff88 New app resources handling code
svn path=/trunk/mcs/; revision=70564
2007-01-05 22:42:56 +00:00
Marek Habersack 434e59e4bc Implementation of the 2.0 session state model
svn path=/trunk/mcs/; revision=69828
2006-12-20 18:34:00 +00:00
Marek Habersack 78c82d7d42 Implement the 2.0 page state persister model, and use it internally int the 1.x profile
svn path=/trunk/mcs/; revision=69254
2006-12-09 00:03:31 +00:00
Vladimir Krasnov 55ee9b3146 * System.Web.dll.sources: added PasswordRecovery.cs
* System.Web20.vmwcsproj: added PasswordRecovery.cs
* ChangePassword.cs: implemented functionality
* MailDefinition.cs: implemented CreateMailMessage method
* PasswordRecovery.cs: implemented functionality

svn path=/trunk/mcs/; revision=68382
2006-11-23 08:58:28 +00:00
Marek Habersack 4b42495aac Sources...
svn path=/trunk/mcs/; revision=68215
2006-11-20 20:44:54 +00:00
Marek Habersack 648d00f214 Support for event validation
svn path=/trunk/mcs/; revision=68082
2006-11-17 18:56:07 +00:00
Marek Habersack be8cdfb89c Add two missing build providers
svn path=/trunk/mcs/; revision=68040
2006-11-16 23:03:34 +00:00
Gonzalo Paniagua Javier 89f3305910 2006-11-14 Gonzalo Paniagua Javier <[email protected]>
* CacheDependency.cs:
	* AggregateCacheDependency.cs: implement this one.


svn path=/trunk/mcs/; revision=67856
2006-11-14 17:35:27 +00:00
Marek Habersack 6715a27d28 AggregateCacheDependency isn't approved yet
svn path=/trunk/mcs/; revision=67803
2006-11-13 22:57:28 +00:00
Marek Habersack ffd7cdd5a3 Added a utility class - System.Web.Util.FileUtils - for dealing with temporary file names, and possibly for other common file operations to be added later on
svn path=/trunk/mcs/; revision=67800
2006-11-13 22:47:09 +00:00
Vladimir Krasnov 72e3924240 * System.Web.dll.sources: added DataSourceCasheManager.cs
* System.Web20.vmwcsproj: added DataSourceCasheManager.cs
* ParameterCollection.cs: fixed SetDirtyObject method
* ObjectDataSource.cs, ObjectDataSourceView.cs: removed VievState utilization for control's properties, implemented caching
* SqlDataSource.cs, SqlDataSourceView.cs: implemented caching

svn path=/trunk/mcs/; revision=67593
2006-11-09 13:28:01 +00:00
Marek Habersack b309d37d40 Implementation of the App_Code folder compiler for ASP.NET 2.0
svn path=/trunk/mcs/; revision=67511
2006-11-08 12:08:05 +00:00
Vladimir Krasnov c45a161be5 * System.Web.dll.sources: added System.Web.Profile/ProfileParser.cs
* System.Web20.vmwcsproj: added System.Web.Profile/ProfileParser.jvm.cs* ProfileBase.cs, ProfileGroupBase.cs, ProfileManager.cs, ProfileModule.cs, ProfileProviderCollection.cs, SqlProfileProvider.cs: implemented profile feature
* added: ProfileParser.cs, ProfileParser.jvm.cs stubs for profile helper classes compilation

svn path=/trunk/mcs/; revision=67378
2006-11-05 14:59:23 +00:00
Igor Zelmanovich 02d4fe0413 2006-10-25 Igor Zelmanovich <[email protected]>
* ChangePassword.cs: new class was implemented.


svn path=/trunk/mcs/; revision=66951
2006-10-25 14:02:13 +00:00
Igor Zelmanovich d321befdb2 2006-10-25 Igor Zelmanovich <[email protected]>
* EmbeddedMailObject.cs: new class was implemented.
	* EmbeddedMailObjectsCollection.cs: new class was implemented.
	* MailDefinition.cs: new class was implemented.


svn path=/trunk/mcs/; revision=66950
2006-10-25 13:18:30 +00:00