Commit Graph
491 Commits
Author SHA1 Message Date
Chris Toshok 2fdee97cc6 remove unused file
svn path=/trunk/mcs/; revision=57930
2006-03-14 00:07:04 +00:00
Chris Toshok b6274ae5d5 2006-03-13 Chris Toshok <[email protected]>
* UserControl.cs: rework InitializeAsUserControl and
	InitializeAsUserControlInternal - the Internal variety doesn't set
	this.page to null now.

	* MasterPage.cs (CreateMasterPage): map the masterPageFile path,
	and also remove a line of spew.


svn path=/trunk/mcs/; revision=57909
2006-03-13 21:27:00 +00:00
Vladimir Krasnov bc6e1a30f8 * System.Web.vmwcsproj: grasshopper project file fix, added PageParser.jvm.cs, WebServiceParser.jvm.cs
* Added System.Web.UI/PageParser.jvm.cs, System.Web.UI/WebServiceParser.jvm.cs

svn path=/trunk/mcs/; revision=57734
2006-03-09 17:31:40 +00:00
Chris Toshok ca85ad3c1f In System.Web.UI:
2006-03-07  Chris Toshok  <[email protected]>

	* Page.cs (InitializeStyleSheet): load the style sheet theme using
	ThemeDirectoryCompiler.
	(InitializeTheme): load the page's theme using
	ThemeDirectoryCompiler.
	(InternalProcessRequest): call InitializeTheme after OnPreInit.
	(FrameworkInitialize): call InitializeStyleSheet.
	(PageTheme,StyleSheetPageTheme): new properties to get the
	respective themes.

	* Control.cs (ApplyStyleSheetSkin): new method.  Calls ApplySkin
	on the ControlSkin (if there is one) for this control in the
	page's StyleSheetSkin.
	(ApplyThemeRecursively): applies the page's theme recursively to
	the control hierarchy.  Must be done this way because the control
	tree is already present when we apply the theme (it has to be,
	since theme's override settings).

	* PageTheme.cs (GetControlSkin): add internal call to do the
	lookup for us.

	* PageThemeFileParser.cs: the parser object that represents each
	individual skin file.

	* PageThemeParser.cs: the parser object that represents the entire
	theme directory.

	* PageThemeBuilder.cs: this class generates the right exception on
	the right event, but it's not hooked up yet.

In System.Web.UI.WebControls:
2006-03-07  Chris Toshok  <[email protected]>

	* WebControl.cs (EnableTheming): leave the MonoTODO, but implement
	by chaining up to base.EnableTheming.


svn path=/trunk/mcs/; revision=57676
2006-03-07 22:39:43 +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
Chris Toshok d19727e2ed * TemplateControl.cs: corcompare work.
* ExpressionBindingCollection.cs: same.

	* HierarchicalDataSourceControl.cs: same.

	* PostBackOptions.cs: same.

	* ClientScriptManager.cs: same.

	* FilterableAttribute.cs: same.

	* ControlCollection.cs: same.

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

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

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

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

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

	* ThemeProvider: new (stubbed) class.

	* SkinBuilder.cs: same.

	* PageTheme.cs: same.

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

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

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


svn path=/trunk/mcs/; revision=57352
2006-02-27 21:13:03 +00:00
Chris Toshok 200f34ab9a * ListSourceHelper.cs: this class is static.
* Page.cs: add some EditorBrowsable attributes to the 2.0 events.

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


svn path=/trunk/mcs/; revision=57348
2006-02-27 19:47:05 +00:00
Chris Toshok c578941eaf In System.Web.UI:
2006-02-27  Chris Toshok  <[email protected]>

	* DataSourceView.cs: Name isn't virtual.

	* DataSourceControl.cs: beat this class over the head with the
	corcompare stick.

	* DataSourceControlBuilder.cs: new stubbed control builder for
	DataSourceControl.

In System.Web.UI.WebControls:
2006-02-27  Chris Toshok  <[email protected]>

	* SqlDataSource.cs: track change to DataSourceControl's protected
	methods.

	* AccessDataSource.cs: same.


svn path=/trunk/mcs/; revision=57342
2006-02-27 18:25:36 +00:00
Chris Toshok 7b204671cc 2006-02-23 Chris Toshok <[email protected]>
* Page.cs: more corcompare work.


svn path=/trunk/mcs/; revision=57218
2006-02-23 22:01:34 +00:00
Chris Toshok 5cb4398967 In System.Web.UI:
2006-02-23  Chris Toshok  <[email protected]>

	* Page.cs (ProcessCallbackData): track change to
	ICallbackEventHandler iface.

	* ICallbackEventHandler.cs: enable the proper members of this
	interface.

	* DataSourceSelectArguments.cs: reformat getter/setters.
	
In System.Web.UI.WebControls:
2006-02-23  Chris Toshok  <[email protected]>

	* BaseCompareValidator.cs, BaseValidator.cs, Button.cs,
	DataControlField.cs, DetailsView.cs, FormView.cs, GridView.cs,
	HotSpot.cs, LinkButton.cs, Login.cs, SiteMapDataSource.cs,
	SqlDataSourceCommandType.cs, TableSectionStyle.cs,
	TemplateField.cs, TreeNodeCollection.cs, TreeNode.cs, TreeView.cs,
	ValidationSummary.cs, WizardStepBase.cs: fix tons of corcompare
	errors.  most were caused by a property/method being virtual when
	it shouldn't be, or vice versa.


svn path=/trunk/mcs/; revision=57203
2006-02-23 15:21:28 +00:00
César Natarén c5ee436d00 2006-02-22 Cesar Lopez Nataren <[email protected]>
* HtmlTextWriter.cs: Added method WriteEncodedText for the .NET 2.0 profile.

svn path=/trunk/mcs/; revision=57185
2006-02-22 23:40:35 +00:00
César Natarén 5d9dcebf6a 2006-02-22 Cesar Lopez Nataren <[email protected]>
* System.Web.dll.sources: Added System.Web.UI/ChtmlTextWriter.cs
	* System.Web_test.dll.sources: Added System.Web.UI/ChtmlTextWriterTest.cs

svn path=/trunk/mcs/; revision=57184
2006-02-22 23:39:12 +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
César Natarén f4a803dc1a 2006-02-12 Cesar Lopez Nataren <[email protected]>
* System.Web.dll.sources: Added XhtmlTextWriter.
	* System.Web_test.dll.sources: Added System.Web.UI/XhtmlTextWriterTest.cs.

svn path=/trunk/mcs/; revision=56819
2006-02-12 21:57:45 +00:00
César Natarén bd6a8c46ab 2006-02-12 Cesar Lopez Nataren <[email protected]>
* HtmlTextWriter.cs: Implemented IsValidFormAttribute and
	WriterBreak for the .NET 2.0 profile.

svn path=/trunk/mcs/; revision=56817
2006-02-12 21:52:45 +00:00
Gonzalo Paniagua Javier 6be4ffb621 2006-02-10 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Configuration_2.0/Compiler.cs:
	* System.Web.Configuration_2.0/CompilerCollection.cs: removed
	compatibility code.

	* System.Web.Configuration_2.0/BuildProviderCollection.cs: add
	GetProviderForExtension().

	* System.Web.UI/IThemeResolutionService.cs: this is now added to the
	sources file, but some other stuff does not compile yet as the
	interface changed after the beta.

	* System.Web.UI/ObjectConverter.cs: removed extra attribute.

	* System.Web.UI/ObjectStateFormatter.cs: add IStateFormatter for 2.0.

	* System.Web.UI/ICallbackEventHandler.cs: update the interface, but
	commented the 'good' stuff out, since other files need to be fixed
	too.

	* System.Web.dll.sources: add new files.

	* System.Web.Configuration/CompilationConfiguration.cs:
	* System.Web.Configuration/CompilationConfigurationHandler.cs: only
	compile these for pre-2.0 assemblies.

	* System.Web.Hosting/DefaultVirtualPathProvider.cs: add some
	comments/TODO.
	* System.Web.Hosting/HostingEnvironment.cs: initialize the
	default value for VirtualPathProvider.

	* System.Web.Compilation/CompilerType.cs: implemented.

	* System.Web.Compilation/AssemblyBuilder.cs: implemented most of it.

	* System.Web.Compilation/WebServiceCompiler.cs:
	* System.Web.Compilation/CachingCompiler.cs: update 2.0 compiler
	instance creation code.

	* System.Web.Compilation/ClientBuildManager.cs: implemented some of
	its methods. Not yet ready.

	* System.Web.Compilation/BuildManager.cs: the more interesting methods
	are implemented now.

	* System.Web.Compilation/BaseCompiler.cs: delete the temporary files
	in case of error.

	* System.Web.Compilation/BuildProvider.cs: implemented the
	Get*Compiler* protected methods.


svn path=/trunk/mcs/; revision=56781
2006-02-10 23:43:09 +00:00
Chris Toshok 7ad5ba37f4 2006-02-07 Chris Toshok <[email protected]>
* ControlBuilder.cs: rename flushOutputStatements to
	methodStatements to at least reflect that they're in that method.


svn path=/trunk/mcs/; revision=56638
2006-02-07 20:34:47 +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 739ac835fa fix typo
svn path=/trunk/mcs/; revision=56624
2006-02-07 16:56:30 +00:00
Chris Toshok 20ca96da5a 2006-02-07 Chris Toshok <[email protected]>
* MasterPage.cs: rework this file, adding some static methods
	gleaned from MS stack traces, and clear up the propogation of
	content templates between nested master pages.

	* Control.cs (TemplateControl): implement.

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

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

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

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

	* BaseTemplateParser.cs: new (stubbed) class.

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

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


svn path=/trunk/mcs/; revision=56620
2006-02-07 16:49:01 +00:00
Gonzalo Paniagua Javier 1261059ec5 removed classes not in MS API
svn path=/trunk/mcs/; revision=56596
2006-02-06 21:01:47 +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 f958ab101c 2006-01-27 Chris Toshok <[email protected]>
* MasterPage.cs (ContentTemplatesInternal): add get/set for the
	actual Hashtable.

	* Page.cs (SaveExistingContentTemplates): store off the existing
	MasterPage content templates so they can be reapplied when setting
	MasterPageFile to something else.
	(ReapplyExistingContentTemplates): set masterPage's
	ContentTemplates to our saved copy.
	(set_MasterPageFile): save off the current content templates
	before clearing masterPage.
	(get_Master): reapply the saved content templates after we create
	the new MasterPage.


svn path=/trunk/mcs/; revision=56185
2006-01-27 19:36:29 +00:00
Chris Toshok 72d1f9e684 2006-01-25 Chris Toshok <[email protected]>
* ClientScriptManager.cs (RegisterClientScriptResource): last
	patch, I swear.  How can 1 line of code have 3 bugs?


svn path=/trunk/mcs/; revision=56074
2006-01-25 21:51:18 +00:00
Chris Toshok 5f31cb36ce 2006-01-25 Chris Toshok <[email protected]>
* ClientScriptManager.cs (RegisterClientScriptResource): gah, fix
	problem with last commit - unquote "resourceName" so it uses the
	parameter instead of the string constant.


svn path=/trunk/mcs/; revision=56063
2006-01-25 21:13:53 +00:00
Konstantin Triger e339aeb86e refactoring for ColorFormatter Read/Write
svn path=/trunk/mcs/; revision=56033
2006-01-25 08:32:05 +00:00
Chris Toshok ede0bd7512 2006-01-22 Chris Toshok <[email protected]>
* RootBuilder.cs (.cctor): use a 2.0 friendly hashtable ctor to
	quiet mcs.


svn path=/trunk/mcs/; revision=55924
2006-01-23 02:16:58 +00:00
Chris Toshok 99841fa9c7 2006-01-22 Chris Toshok <[email protected]>
* RootBuilder.cs (.cctor): use a 2.0 friendly hashtable ctor to
	quiet mcs.


svn path=/trunk/mcs/; revision=55917
2006-01-22 21:00:41 +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 bec27db5cd 2006-01-22 Chris Toshok <[email protected]>
* BoundPropertyEntry.cs (.ctor): mark as internal to fix
	corcompare.


svn path=/trunk/mcs/; revision=55909
2006-01-22 19:24:24 +00:00
Konstantin Triger caee16f7d1 preserve emptiness in ColorFormatter
svn path=/trunk/mcs/; revision=55711
2006-01-18 08:57:28 +00:00
Konstantin Triger 7c54a369df perform case insensitive compare; return correct key in default case
svn path=/trunk/mcs/; revision=55708
2006-01-18 08:38:04 +00:00
Chris Toshok ec51af0830 2006-01-11 Chris Toshok <[email protected]>
* ClientScriptManager.cs (RegisterClientScriptResource):
	implement.


svn path=/trunk/mcs/; revision=55397
2006-01-11 20:12:52 +00:00
Vladimir Krasnov 76313ccac3 * ObjectStateFormatter.cs: Removed TARGET_JVM parts in
TypeFormatter.Read

svn path=/trunk/mcs/; revision=55375
2006-01-11 15:46:36 +00:00
Chris Toshok f45c0b438d 2006-01-10 Chris Toshok <[email protected]>
* Page.cs (ValidateCollection): in NET_2_0 if event validation is
	off, return true.


svn path=/trunk/mcs/; revision=55334
2006-01-10 19:40:53 +00:00
Chris Toshok 48cd67bd7e 2006-01-09 Chris Toshok <[email protected]>
* Page.cs: fix a lot of indentation, and add the
	EnableEventValidation .net 2.0 property.


svn path=/trunk/mcs/; revision=55273
2006-01-10 00:59:31 +00:00
Vladimir Krasnov 20ac4bb294 * ObjectStateFormatter.cs: Merged TARGET_JVM parts in
TypeFormatter.Read, TypeFormatter.Write from /main/5

svn path=/trunk/mcs/; revision=55246
2006-01-09 17:34:33 +00:00
Konstantin Triger abdf921fc2 make ProcessRequest virtual under TARGET_JVM
svn path=/trunk/mcs/; revision=55232
2006-01-09 15:55:45 +00:00
Chris Toshok c0f2c8766e 2006-01-04 Chris Toshok <[email protected]>
* TemplateParser.cs (.ctor): kinda gross, but handle the
	AddAssembliesInBin case here.
	
	* SimpleWebHandlerParser.cs (.ctor): same.


svn path=/trunk/mcs/; revision=55086
2006-01-04 22:36:40 +00:00
Chris Toshok 2b27715958 2006-01-04 Chris Toshok <[email protected]>
* SimpleWebHandlerParser.cs: Remove the declaration of
	compilationConfig in the CONFIGURATION_2_0 case.  it's
	unnecessary.
	(.ctor): ifdef out the AddAssembliesInBin call in the
	CONFIGURATION_2_0 case.  need to revisit this.
	(CompilationConfig): add a CONFIGURATION_2_0 version.

	* BaseParser.cs: Remove the declaration of compilationConfig in
	the CONFIGURATION_2_0 case.  it's unnecessary.


svn path=/trunk/mcs/; revision=55045
2006-01-04 07:15:30 +00:00
Gonzalo Paniagua Javier cc5d84d39d Patch by D. Moonfire that fixes several issues with 2.0 page attributes.
svn path=/trunk/mcs/; revision=54363
2005-12-14 15:49:16 +00:00
Gonzalo Paniagua Javier fe283242da 2005-12-08 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: use _controls instead of the property wherever possible.


svn path=/trunk/mcs/; revision=54099
2005-12-08 08:17:29 +00:00
Gonzalo Paniagua Javier 1e872ff7f4 2005-12-05 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: use the _controls field instead of the Controls property.
	Fixes bug #76919.


svn path=/trunk/mcs/; revision=53954
2005-12-05 22:37:45 +00:00
Sebastien Pouliot 2b1486b90b 2005-11-30 Sebastien Pouliot <[email protected]>
* KeyedList.cs: Fixed for IOrderedDictionary change in 2.0 final.
	Now internal.
	* KeyedListEnumerator.cs: Now internal.


svn path=/trunk/mcs/; revision=53681
2005-11-30 14:36:10 +00:00
Gonzalo Paniagua Javier c785636df4 2005-11-29 Gonzalo Paniagua Javier <[email protected]>
* Test/System.Web.UI/ControlCollectionTest.cs: new tests.
	* System.Web_test.dll.sources: add new file.
	* System.Web.UI/ControlCollection.cs: allow 'null' in Remove.


svn path=/trunk/mcs/; revision=53659
2005-11-30 01:53:24 +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
Gonzalo Paniagua Javier fe46979e7d 2005-11-22 Gonzalo Paniagua Javier <[email protected]>
* SimpleWebHandlerParser.cs: removed 'codebehind' related stuff.


svn path=/trunk/mcs/; revision=53376
2005-11-23 00:31:37 +00:00
Chris Toshok e8767d99bc 2005-11-09 Chris Toshok <[email protected]>
* ViewStateEncryptionMode.cs: new 2.0 enum.


svn path=/trunk/mcs/; revision=52806
2005-11-09 23:22:51 +00:00
Gonzalo Paniagua Javier 04e7510fe0 2005-11-08 Gonzalo Paniagua Javier <[email protected]>
* TemplateParser.cs: fixes #76423. Not tested properly.


svn path=/trunk/mcs/; revision=52735
2005-11-08 21:01:08 +00:00
Gonzalo Paniagua Javier 131df90526 2005-11-07 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: call LoadViewStateRecursive when the Form collection has
	not been used by a different page (GetTypeHashCode). This fixes problems
	when calling Server.Transfer while preserving Form and QueryString,
	as the page we transfer to used the view state stored in the Form, which
	contained the serialized data for the page calling Server.Transfer
	instead.


svn path=/trunk/mcs/; revision=52677
2005-11-08 02:00:34 +00:00