Commit Graph
187 Commits
Author SHA1 Message Date
Vladimir Krasnov 79fbfcfa07 * PageTheme.cs: implemented
* Page.cs: fixed InitializeTheme, added PageTheme page initialization
* TemplateControl.cs, 
* TemplateControl.jvm.cs: added XPath, XPathSelect overloads with IXmlNamespaceResolver parameter
* XPathBinder.cs: added Eval, Select overloads with IXmlNamespaceResolver parameter, refactored

svn path=/trunk/mcs/; revision=70661
2007-01-08 16:24:50 +00:00
Igor Zelmanovich 7aa1179b46 2007-01-07 Igor Zelmanovich <[email protected]>
* Page.cs: refactoring: used RegisterHiddenField for _VIEWSTATE field.


svn path=/trunk/mcs/; revision=70587
2007-01-07 12:49:29 +00:00
Igor Zelmanovich 90f9be5ab5 2007-01-04 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: InitializeCulture should be called 
	before creating controls.

svn path=/trunk/mcs/; revision=70460
2007-01-04 10:27:20 +00:00
Marek Habersack f98d7a83ba JavaScript validation fix
svn path=/trunk/mcs/; revision=70440
2007-01-03 22:16:40 +00:00
Konstantin Triger 2a60bdfeaa Add missing IdSeparator propoerty
svn path=/trunk/mcs/; revision=70348
2007-01-02 12:06:24 +00:00
Gonzalo Paniagua Javier 05bc32c8ea 2006-12-31 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs: 
	* System.Web.UI.WebControls/LinkButton.cs: show the validation summary
	when client validation and linkbuttons are used. Patch by Juraj
	Skripsky.


svn path=/trunk/mcs/; revision=70294
2006-12-31 19:59:05 +00:00
Igor Zelmanovich 0380ac6627 2006-12-31 Igor Zelmanovich <[email protected]>
* Page.cs: fixed: EventValidation is not performed for CallBack request.


svn path=/trunk/mcs/; revision=70282
2006-12-31 14:25:15 +00:00
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