Commit Graph
1169 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier d9583a3871 2006-07-21 Gonzalo Paniagua Javier <[email protected]>
* PostBackOptions.cs: default to String.Empty for several field values.
	Patch by Marek Habersack.


svn path=/trunk/mcs/; revision=62862
2006-07-21 14:22:39 +00:00
Gonzalo Paniagua Javier 29f09c9ff8 2006-07-20 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: when ProcessRequest is not called, get the session from
	the current context. Fixes bug #78730.


svn path=/trunk/mcs/; revision=62784
2006-07-20 01:21:28 +00:00
Gonzalo Paniagua Javier 34abb47d68 2006-07-20 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: fix IsPostback for AJAX calls to match MS behavior. Patch
	by Peijen Lin that closes bug #78646.


svn path=/trunk/mcs/; revision=62783
2006-07-20 01:15:41 +00:00
Konstantin Triger cf9bc5dad9 bug fixes found by Test/System.Web.UI.WebControls/BoundFieldTest
svn path=/trunk/mcs/; revision=62314
2006-07-06 13:39:11 +00:00
Gonzalo Paniagua Javier 58d45c375d 2006-06-14 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlParser.cs: fix compilation caching when more than one
	@control is compiled from source. Closes bug #78626.


svn path=/trunk/mcs/; revision=61724
2006-06-15 00:26:17 +00:00
Gonzalo Paniagua Javier d34cf3914e 2006-06-14 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: add the 2.0 Items property. Fixes bug #78467.


svn path=/trunk/mcs/; revision=61720
2006-06-14 22:13:28 +00:00
Gonzalo Paniagua Javier 33e6492932 2006-06-14 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: use the new internal LosFormatter.SerializeToBase64.
	* LosFormatter.cs: always work on base 64 strings even if the
	input/output is on a Stream. Fixes bug #78640.


svn path=/trunk/mcs/; revision=61711
2006-06-14 19:16:58 +00:00
Konstantin Triger 8799f00b45 load themes relative to context root
svn path=/trunk/mcs/; revision=61560
2006-06-08 11:35:11 +00:00
Andrew Skiba 07624f6bb1 move 2.0 stuff into ifdef NET_2_0
svn path=/trunk/mcs/; revision=61106
2006-05-25 11:41:52 +00:00
Andrew Skiba 6a2f9295dd Fix the order of OnInit invocation of controls created via master page content (see http://lists.ximian.com/pipermail/mono-devel-list/2006-May/018585.html ).
svn path=/trunk/mcs/; revision=61098
2006-05-25 07:39:34 +00:00
Andrew Skiba 95fe0dcce6 use LinkedStyleSheets from the PageTheme and from StyleSheetPageTheme to insert links in page header.
svn path=/trunk/mcs/; revision=60577
2006-05-11 07:11:37 +00:00
Andrew Skiba 85eb6f0e76 surround file name with quotes
svn path=/trunk/mcs/; revision=60491
2006-05-10 06:18:58 +00:00
Chris Toshok 2f0daf0e49 78616 -> 76818
svn path=/trunk/mcs/; revision=60421
2006-05-08 19:20:26 +00:00
Chris Toshok 81693a8ae2 2006-05-08 Chris Toshok <[email protected]>
* ControlBuilder.cs (ResetState): set renderIndex to 0 here.  This
	fixes the last thing keeping the test in #78616 from working.


svn path=/trunk/mcs/; revision=60420
2006-05-08 19:19:54 +00:00
Andrew Skiba d4917ba451 read default theme and styleSheetTheme from web.config.
svn path=/trunk/mcs/; revision=60373
2006-05-07 07:19:44 +00:00
Andrew Skiba ab36e5c495 AddAssemblyByFileName that looks more like AddAssemblyByName
svn path=/trunk/mcs/; revision=59967
2006-04-27 06:42:35 +00:00
Chris Toshok 46df37feb7 2006-04-25 Chris Toshok <[email protected]>
* PageThemeParser.cs (LinkedStyleSheets): reformat.


svn path=/trunk/mcs/; revision=59864
2006-04-25 18:44:11 +00:00
Konstantin Triger 5438195147 implementation for IsViewStateEnabled
svn path=/trunk/mcs/; revision=59836
2006-04-25 07:42:57 +00:00
Andrew Skiba 1f0528ada1 test and fix for null pointer exception
svn path=/trunk/mcs/; revision=59834
2006-04-25 06:41:15 +00:00
Andrew Skiba 0a4655895b Scan css files from theme directory and put them into __linkedStyleSheets field of generated theme page
svn path=/trunk/mcs/; revision=59787
2006-04-23 08:12:59 +00:00
Andrew Skiba 4ac1860607 add to the directory parser all the assemblies found by theme file parsers
svn path=/trunk/mcs/; revision=59521
2006-04-16 11:44:14 +00:00
Konstantin Triger ae82a9e97c correctly resolve GACs dependencies
svn path=/trunk/mcs/; revision=59519
2006-04-16 05:52:26 +00:00
Konstantin Triger 6c6fee3811 refactoring implementing Page.GetDataItem()
svn path=/trunk/mcs/; revision=59347
2006-04-11 08:39:47 +00:00
Chris Toshok 74bab7a1a2 2006-04-10 Chris Toshok <[email protected]>
* PageThemeFileParser.cs (AddDirective): allow Register directives
	in skin files.


svn path=/trunk/mcs/; revision=59305
2006-04-10 17:37:39 +00:00
Chris Toshok 21a79cd2e6 2006-04-02 Chris Toshok <[email protected]>
* Control.cs (DesignMode): always return false for now.  Fixes
	#77991.


svn path=/trunk/mcs/; revision=58917
2006-04-02 16:19:50 +00:00
Gonzalo Paniagua Javier 915d986f09 2006-03-24 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/ControlBuilder.cs: when creating a default property
	builder, handle strings specially.

	* System.Web.UI/StringPropertyBuilder.cs: new builder used in
	TextBox 2.0.
	* System.Web.dll.sources: add StringPropertyBuilder.
	* System.Web.Compilation/TemplateControlCompiler.cs: handle the new
	StringPropertyBuilder.

	Fixes bug #77762.


svn path=/trunk/mcs/; revision=58505
2006-03-24 23:11:09 +00:00
Vladimir Krasnov bd749edc47 * ControlCollection.cs: fixed CopyTo method, fixes bug when if target index is not zero
svn path=/trunk/mcs/; revision=58016
2006-03-15 15:25:55 +00:00
Chris Toshok b8c358ef18 * HtmlTextWriterTag.cs: no [Serializable] in 2.0.
* HtmlTextWriterAttribute.cs: same.

	* HtmlTextWriterStyle.cs: same.

	* VirtualReferenceType.cs: new enum.

2006-03-13  Chris Toshok  <[email protected]>


svn path=/trunk/mcs/; revision=57933
2006-03-14 00:41:16 +00:00
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