Commit Graph
330 Commits
Author SHA1 Message Date
Igor Zelmanovich 0d023ab68e 2006-12-27 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: RegisterRequiresPostBack feature.


svn path=/trunk/mcs/; revision=70136
2006-12-27 17:22:36 +00:00
Igor Zelmanovich da64752dd7 2006-12-11 Igor Zelmanovich <[email protected]>
* Page.cs: fixed and optimized ProcessPostData
	The "second try" used for controls that created at OnLoad.
	fixed for controls that use RgisterRequeresPostBack to handle post data.


svn path=/trunk/mcs/; revision=69301
2006-12-11 08:36:17 +00:00
Igor Zelmanovich 4626a6f944 2006-11-29 Igor Zelmanovich <[email protected]>
* Page.cs: The specified theme must exist as either an application theme. 
	If the theme does not exist, an HttpException exception s thrown.


svn path=/trunk/mcs/; revision=69282
2006-12-10 16:03:02 +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
Igor Zelmanovich 69a9a798ed 2006-11-29 Igor Zelmanovich <[email protected]>
* Page.cs: added missing methods and properties:
	AsyncMode
	AsyncTimeout
	IsAsync
	UniqueFilePathSuffix
	MaxPageStateFieldLength
	ViewStateEncryptionMode
	AddOnPreRenderCompleteAsync
	AddOnPreRenderCompleteAsync
	ExecuteRegisteredAsyncTasks
	CreateHtmlTextWriterFromType
	RegisterRequiresViewStateEncryption

svn path=/trunk/mcs/; revision=68672
2006-11-29 16:43:24 +00:00
Igor Zelmanovich 785cf8899d 2006-11-29 Igor Zelmanovich <[email protected]>
* Page.cs: Master property returns null when no HttpContext.

svn path=/trunk/mcs/; revision=68665
2006-11-29 12:48:59 +00:00
Igor Zelmanovich f27020d1a6 2006-11-29 Igor Zelmanovich <[email protected]>
* Page.cs: InitializeCulture method is called before OnPreInit.


svn path=/trunk/mcs/; revision=68651
2006-11-29 10:23:42 +00:00
Miguel de Icaza 8616a7e405 2006-11-28 Miguel de Icaza <[email protected]>
* Rationalize the user of MonoTODOs.  

		- Removed all the TODOs that were only overwritten methods
		and had no further information.

		- Methods that threw exceptions now have the message "Not
		implemnted".

		- Methods that return some constant are declared like
		that.

		- Removed a bunch of stale MonoTODOs that had not been
		removed. 


svn path=/trunk/mcs/; revision=68620
2006-11-28 22:15:23 +00:00
Igor Zelmanovich 2d0737f93e 2006-11-27 Igor Zelmanovich <[email protected]>
* Page.cs: implemented SetFocus methods.
	* PageLifeCycle.cs: 	


svn path=/trunk/mcs/; revision=68508
2006-11-27 13:22:55 +00:00
Igor Zelmanovich 918bb1d836 2006-11-26 Igor Zelmanovich <[email protected]>
* Page.cs:
	* Control.cs:
	implemented ClearChildState(), ClearChildControlState() and 
	IsChildControlStateCleared	


svn path=/trunk/mcs/; revision=68477
2006-11-26 15:34:53 +00:00
Igor Zelmanovich 047bfafcfe 2006-11-26 Igor Zelmanovich <[email protected]>
* Page.cs:
	* ClientScriptManager.cs:
	implemented RegisterExpandoAttribute feature	


svn path=/trunk/mcs/; revision=68473
2006-11-26 11:38:54 +00:00
Igor Zelmanovich ebfff679cc 2006-11-21 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: PreviousPage property
	when CrossPostBack is processed PreviousPage is initialized 
	only if PreviousPage property is called.	 

svn path=/trunk/mcs/; revision=68251
2006-11-21 14:31:34 +00:00
Igor Zelmanovich 7f254b9857 2006-11-21 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: LoadControlState is called for controls 
	that added on Load and latter


svn path=/trunk/mcs/; revision=68241
2006-11-21 10:01:19 +00:00
Marek Habersack 630edf9eff Support for automatic culture detection
svn path=/trunk/mcs/; revision=68216
2006-11-20 21:02:22 +00:00
Marek Habersack 648d00f214 Support for event validation
svn path=/trunk/mcs/; revision=68082
2006-11-17 18:56:07 +00:00
Gonzalo Paniagua Javier 0380534ed8 revert r67514
svn path=/trunk/mcs/; revision=68019
2006-11-16 18:03:27 +00:00
Igor Zelmanovich a9251bd9cc 2006-11-09 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: LoadControlState is called for controls 
	that added on Load and latter, for 1.x refactoring only


svn path=/trunk/mcs/; revision=67514
2006-11-08 12:57:58 +00:00
Igor Zelmanovich cb81f25bac 2006-10-12 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: for 2.0 only
	When Page processes Callback IsPostBack = false, but it still needs
	LoadViewState/ControlState and ProcessPostData


svn path=/trunk/mcs/; revision=66600
2006-10-12 14:40:14 +00:00
Igor Zelmanovich ee08dc1458 * Page.cs: fixed: Cross-page postback feature in ASP.NET 2.0
When page is invoked by cross-page posting, PreviousPage processed all live-cycle up to OnLoadComplite included.
IsPostBack, IsCallBack and IsCrossPagePostBack returns relevant values.

svn path=/trunk/mcs/; revision=65879
2006-09-25 11:26:45 +00:00
Igor Zelmanovich 50ea672254 * Page.cs: fixed: Title property works properly
svn path=/trunk/mcs/; revision=65569
2006-09-18 10:29:06 +00:00
Igor Zelmanovich fa30f3d51f implemented ValidationGroup feature on client side
svn path=/trunk/mcs/; revision=65387
2006-09-14 13:00:26 +00:00
Robert Jordan 0b3829be28 2006-09-08 Robert Jordan <[email protected]>
* Page.cs: assure that RenderTrace is called even if an
	exception occurred. Fixes bug #78930.


svn path=/trunk/mcs/; revision=65135
2006-09-08 21:09:37 +00:00
Lluis Sanchez 29bfd8efee 2006-09-07 Lluis Sanchez Gual <[email protected]>
* Page.cs: Use lowercase getElementById in the javascript that
	checks the browser.


svn path=/trunk/mcs/; revision=65045
2006-09-07 09:27:51 +00:00
Gonzalo Paniagua Javier 28718b99ec 2006-09-06 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: don't use the Browser object, as it slows down process
	request time *a lot*. Fixes bug #79206.


svn path=/trunk/mcs/; revision=65007
2006-09-06 14:33:10 +00:00
Konstantin Triger eb37ccc7ff * Page.cs: Imlemented InitOutputCache(OutputCacheParameters cacheSettings).
* OutputCacheParameters.cs: added an implementation.

svn path=/trunk/mcs/; revision=64919
2006-09-05 08:25:10 +00:00
Igor Zelmanovich e59831c330 * ImageButton.cs: implemented 2.0 features
OnClientClick attached to onclick attribute.
PostBackUrl, CausesValidation, ValidationGroup - used PostBackOptions generate onclick attribute.

svn path=/trunk/mcs/; revision=64547
2006-08-30 12:01:51 +00:00
Vladimir Krasnov a0558270ff * Page.cs: fixed ApplyMasterPage, masterPageFile can be empty string if compiled with .net aspx parser
fixed OnInit, GetStyleSheets may return null if no css files found by .net aspx parser

svn path=/trunk/mcs/; revision=64298
2006-08-24 11:05:18 +00:00
Vladimir Krasnov 50ff3ed7f4 * Page.cs: added stubs to run aspx files compiled by .net
svn path=/trunk/mcs/; revision=63897
2006-08-17 11:24:57 +00:00
Andrew Skiba a9221254d5 render CSS path as a virtual path
svn path=/trunk/mcs/; revision=63576
2006-08-10 08:32:56 +00:00
Igor Zelmanovich cb9515a93d implemented MaintainScrollPositionOnPostBack feature
svn path=/trunk/mcs/; revision=63469
2006-08-08 11:07:48 +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
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 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 d4917ba451 read default theme and styleSheetTheme from web.config.
svn path=/trunk/mcs/; revision=60373
2006-05-07 07:19:44 +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 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 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
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 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
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 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