1186 Commits
Author SHA1 Message Date
Jackson Harper f7154910f2 * Page.cs: If we have a postback that wasn't sent through a
postback script (ie user hit submit on a input type=submit) call
	Validate so page validation occurs. This fixes bug #52770.

svn path=/trunk/mcs/; revision=22105
2004-01-15 09:25:20 +00:00
Jackson Harper 85022c9848 * Page.cs: Set the cache's duration.
svn path=/trunk/mcs/; revision=22102
2004-01-15 06:39:46 +00:00
Jackson Harper 5449c99506 * Page.cs: Don't tell the response to cache anymore. This is done
when the cacheability is modified by a callback.

svn path=/trunk/mcs/; revision=22083
2004-01-15 03:39:30 +00:00
Jackson Harper 10db3b666a * TemplateParser.cs: If varybyparam is set to "none" make it null
so we dont get a param named null in the outputcache key.

svn path=/trunk/mcs/; revision=22081
2004-01-15 01:32:35 +00:00
Jackson Harper c9f9326a2e * BasePartialCachingControl.cs: Use varyby attributes in key
generation.

svn path=/trunk/mcs/; revision=22080
2004-01-15 01:14:19 +00:00
Jackson Harper 0d000aaf52 fix filename
svn path=/trunk/mcs/; revision=22076
2004-01-14 23:06:27 +00:00
Jackson Harper 177ed79ff9 * OutputCache.cs: Add all the outputcache attribute error
messages.

svn path=/trunk/mcs/; revision=22075
2004-01-14 23:01:27 +00:00
Jackson Harper ad6fd34680 * TemplateParser.cs: Add VaryByControls and Shared output cache
properties. These are not assigned yet.
	* TemplateControlParser.cs: Do not ignore the OutputCache
	attribute.
	* BasePartialCachingControl.cs: Initial implementation. Keys are
	still not created properly.
	* StaticPartialCachingControl.cs: Assign properties in base class,
	implement CreateControl.

svn path=/trunk/mcs/; revision=22033
2004-01-13 21:21:27 +00:00
Gonzalo Paniagua Javier 0745d5cd5d 2004-01-12 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added new files in S.W.Configuration.

	* System.Web/HttpContext.cs: add setter for ConfigTimeout.
	* System.Web/HttpException.cs: added Description property and HTML
	encode some unescaped values.

	* System.Web/HttpRequest.cs: support request validation.

	* System.Web/HttpRequestValidationException.cs: added message and
	description.

	* System.Web/HttpServerUtility.cs: implemented ScriptTimeout.

	* System.Web.Compilation/PageCompiler.cs: invoke Request.ValidateInput
	if required.

	* System.Web.Configuration/GlobalizationConfiguration.cs: undo old fix.

	* System.Web.Configuration/PagesConfiguration.cs:
	* System.Web.Configuration/PagesConfigurationHandler.cs: new files for
	processing system.web/pages section.

	* System.Web.UI/ApplicationFileParser.cs: adde DefaultBaseTypeName
	property.

	* System.Web.UI/PageParser.cs: support validateRequest.

	* System.Web.UI/TemplateControlParser.cs: get default values from
	system.web/pages section.

	* System.Web.UI/TemplateParser.cs: added separate method for changing
	base type (Inherits or system.web/pages).

	* System.Web.UI/UserControlParser.cs: support system.web/pages defined
	base type.

svn path=/trunk/mcs/; revision=21971
2004-01-12 07:03:42 +00:00
Andreas N 997d3034f6 2004-01-11 Andreas Nahr <[email protected]>
* UserControl.cs: Added missing attribute, implemented method
	* Page.cs: Added missing attribute, implemented method

svn path=/trunk/mcs/; revision=21943
2004-01-11 14:44:45 +00:00
Jackson Harper 85f10999fc * Page.cs: Handle trace being enabled in the config file.
svn path=/trunk/mcs/; revision=21929
2004-01-11 05:11:54 +00:00
Jackson Harper 15b67acb2e changelog
svn path=/trunk/mcs/; revision=21901
2004-01-10 09:51:18 +00:00
Jackson Harper e924ad8630 * Page.cs: Save trace data before rendering it.
svn path=/trunk/mcs/; revision=21897
2004-01-10 09:07:41 +00:00
Gonzalo Paniagua Javier 1c5bb21c02 2004-01-03 Gonzalo Paniagua Javier <[email protected]>
* Page.cs: removed a couple of MonoTODO on methods we're not gonna
	implement. Applied patch from Jan Jaros ([email protected]) to
	ensure that Unload event is raised. Fixes bug #52555.

svn path=/trunk/mcs/; revision=21632
2004-01-03 15:22:11 +00:00
Zoltan Varga 218d987fcd 2004-01-02 Zoltan Varga <[email protected]>
* KeyedList.cs: 'private' is not allowed on explicit interface
	implementations. Fixes 1.2 build.

	Happy New Year !

svn path=/trunk/mcs/; revision=21594
2004-01-02 14:24:26 +00:00
Jackson Harper 5eac25987d TemplateControlParser.cs: When registering tag prefixs make sure
the file exists and throw the correct error if it does not.

svn path=/trunk/mcs/; revision=21576
2003-12-31 21:23:38 +00:00
Jackson Harper 08c57c25ba * Page.cs: Throw error if the session is accessed when sessions
are disabled.

svn path=/trunk/mcs/; revision=21491
2003-12-25 09:57:49 +00:00
Jackson Harper c0dd83252c * Page.cs: Use the context trace object.
svn path=/trunk/mcs/; revision=21360
2003-12-19 20:15:31 +00:00
Gonzalo Paniagua Javier d97ec8556a forgot cvs add
svn path=/trunk/mcs/; revision=21294
2003-12-18 01:24:03 +00:00
Gonzalo Paniagua Javier a2d15941df 2003-12-18 Gonzalo Paniagua Javier <[email protected]>
* LosFormatter.cs: new ctor for 1.1. The default ctor is public.
	* Page.cs: added ViewStateUserKey and made RegisterclientScriptFile
	internal.
	* PageParser.cs: the ctor is public.
	* PartialCachingAttribute.cs: added new ctor and Shared property.

svn path=/trunk/mcs/; revision=21290
2003-12-18 01:15:58 +00:00
Gonzalo Paniagua Javier ed575c326a 2003-12-17 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added CustomErrorsConfigHandler.cs

	* System.Web/HttpContext.cs: implemented IsCustomErrorEnabled and
	IsDebuggingEnabled. Added internal ErrorPage property.

	* System.Web/HttpRuntime.cs: on error, check if we have a custom error
	page enabled to handle it and redirect.

	* System.Web/HttpResponse.cs: added RedirectCustomError (), which
	actually does the redirection to the error page.

	* System.Web.Compilation/PageCompiler.cs: assign the ErrorPage property
	if provided.

	* System.Web.UI/Page.cs: assign the ErrorPage to the context if we get
	an exception when processing the page which only calls Unload.

	* System.Web.UI/PageParser.cs: handle ErrorPage.

	* System.Web.Configuration/CustomErrorsConfigHandler.cs: handle
	<system.web><customErrors />..

	Closes bug #51979.

svn path=/trunk/mcs/; revision=21286
2003-12-17 17:26:46 +00:00
Gonzalo Paniagua Javier 8a88b9bd57 typo
svn path=/trunk/mcs/; revision=21247
2003-12-16 17:41:03 +00:00
Gonzalo Paniagua Javier e4299678de 2003-12-16 Gonzalo Paniagua Javier <[email protected]>
* ObjectStateFormatter.cs: added formatters for Unit and FontUnit, which
	are not [Serializable]. Fixes bug #52244.

svn path=/trunk/mcs/; revision=21246
2003-12-16 17:36:10 +00:00
Jackson Harper 549afb771d * Page.cs: Render trace data when tracing is enabled.
svn path=/trunk/mcs/; revision=21230
2003-12-16 08:03:57 +00:00
Jackson Harper ea1ef8a270 * PageParser.cs: Add Trace and Trace mode attributes.
svn path=/trunk/mcs/; revision=21220
2003-12-16 03:50:56 +00:00
Jackson Harper 585e37f1c3 * Page.cs: Use the context trace object.
svn path=/trunk/mcs/; revision=21213
2003-12-16 02:33:01 +00:00
Alon Gazit bc4b1aee00 Changed AttributeCollection.Render().
After the change attributes ,that their value is null, aren't rendered.

svn path=/trunk/mcs/; revision=21108
2003-12-14 08:39:52 +00:00
Gonzalo Paniagua Javier ba968f7ae8 2003-12-12 Gonzalo Paniagua Javier <[email protected]>
* Control.cs: remove a few dangling ^M, don't set values for fields
	that has the default value. If Visible is modified and we're tracking
	viewstate, save and restore it. Fixes bug #48689.

svn path=/trunk/mcs/; revision=21056
2003-12-12 06:37:08 +00:00
Jackson Harper 8219b8b0e2 * Control.cs: Give null for the ID if it hasn't been explicitly
set. This fixes bug #51520.

svn path=/trunk/mcs/; revision=21055
2003-12-12 06:27:40 +00:00
Jackson Harper e2e2967bf0 * PageParser.cs: Ignore the SmartNavigation attribute for now.
svn path=/trunk/mcs/; revision=20907
2003-12-08 22:11:32 +00:00
Jackson Harper 0cfc23e7ef * DataBinder.cs (GetIndexedPropertyValue): Check if container is
an IList and use a cast instead of reflection to retrieve the item
	if it is. Fixes bug #51759.

svn path=/trunk/mcs/; revision=20810
2003-12-05 19:00:28 +00:00
Alon Gazit d6a770b483 Page.ID should call Control.ID. needed for updating Page.ClientID.
svn path=/trunk/mcs/; revision=20760
2003-12-04 08:14:48 +00:00
Jackson Harper cac132d0e3 * Page.cs: Implemented registered array declarations. Patch by
Benjamin Jemlich <[email protected]>

svn path=/trunk/mcs/; revision=20697
2003-12-02 18:08:51 +00:00
Gonzalo Paniagua Javier d7f82b97ab 2003-12-02 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpApplication.cs: handle FileNotFound and
	DirectoryNotFound exceptions when creating the handler to generate
	a better error page.

	* System.Web/HttpException.cs: display the http_code if available.
	Changed all \n by \r\n to make the hidden stack trace readable.

	* System.Web/StaticFileHandler.cs: don't send the real path in th
	eerror.

	* System.Web.Compilation/AspGenerator.cs: basic checking of ID validity.
	Throw a ParseException when mixing languages.

	* System.Web.UI/TemplateParser.cs: basic check for 'classname' attribute
	and added patch by [email protected] for bug #51568, which fixes automatic
	class names for pages starting with a number.

svn path=/trunk/mcs/; revision=20695
2003-12-02 16:22:05 +00:00
Ben Maurer 8420bd11b0 2003-11-30 Ben Maurer <[email protected]>
* LosFormatter.cs: Use ObjectStateFormatter. Pretty big size
	reduction.

	* ObjectStateFormatter.cs: Comment out tracing.

svn path=/trunk/mcs/; revision=20647
2003-12-01 01:07:45 +00:00
Gonzalo Paniagua Javier f744323f8f 2003-11-30 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Compilation/PageCompiler.cs: assign LCID, Culture and/or
	UICulture in FrameworInitialize() if provided in @Page.

	* System.Web.UI/Page.cs: fixed UICulture, LCID and Culture. Set the
	thread [UI]Culture before processing the request.

	* System.Web.UI/PageParser.cs: read Culture, UICulture and LCID
	attributes. Added properties for these. Partially contributed by
	Mohammad Damt.

	Fixes bug #51511.

svn path=/trunk/mcs/; revision=20633
2003-11-30 18:46:53 +00:00
Jackson Harper 1051c0d09e * TemplateParser.cs: Ignore aspCompat attribute. This fixes bug
51434.

svn path=/trunk/mcs/; revision=20527
2003-11-27 08:31:21 +00:00
Ben Maurer b5010be256 2003-11-26 Ben Maurer <[email protected]>
* Control.cs: Add DataBindChildren for v2. Implement
	glue to make Page.Eval work.
	* Page: use a stack to store the current dataitem
	for Eval. Implement Eval/XPath/XPathSelect
	* DataBinder.cs: implement GetDataItem.

svn path=/trunk/mcs/; revision=20508
2003-11-26 23:31:41 +00:00
Gonzalo Paniagua Javier 6162bd2ef5 fix build on windows.
svn path=/trunk/mcs/; revision=20381
2003-11-24 13:14:56 +00:00
Ben Maurer ad8bbec4ba 2003-11-22 Ben Maurer <[email protected]>
* ObjectStateFormatter.cs: Fix bug when reading small ints.
	Add some tracing so we can see what is going on.

svn path=/trunk/mcs/; revision=20343
2003-11-22 22:04:38 +00:00
Jackson Harper dde5f46fc1 * Page.cs: Set vary by params when cache location is Server.
svn path=/trunk/mcs/; revision=20330
2003-11-22 06:50:21 +00:00
Ben Maurer 46a2f42592 2003-11-21 Ben Maurer <[email protected]>
* ObjectStateFormatter.cs: v2 file. In v1.x this will be
	internal as LosFormatter will eventually use it to save
	the view state.

svn path=/trunk/mcs/; revision=20329
2003-11-22 04:31:31 +00:00
Gonzalo Paniagua Javier 5d84bef5d3 2003-11-21 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added new files.

	* System.Web/HttpApplication.cs:
	* System.Web/HttpContext.cs:
	* System.Web/HttpRuntime.cs: add timeout handling.
	* System.Web/TimeoutManager.cs: new class that takes care of aborting
	threads on timeout.

	* System.Web.Configuration/CompilationConfiguration.cs: don't throw
	an HttpException.
	* System.Web.Configuration/HttpRuntimeConfig.cs:
	* System.Web.Configuration/HttpRuntimeConfigurationHandler.cs: handle
	system.web/httpRuntime configuration section.

	* System.Web.UI/PersistChildrenAttribute.cs:
	* System.Web.UI/PersistenceModeAttribute.cs: implemented.

	* System.Web.UI/TODO: Removed file.
	* System.Web.UI/OutputCacheLocation.cs:
	* System.Web.UI/TemplateControlParser.cs:
	* System.Web.UI.HtmlControls/HtmlInputFile.cs:
	* System.Web.UI.WebControls/Xml.cs: class status based fixes.

svn path=/trunk/mcs/; revision=20291
2003-11-21 00:26:20 +00:00
Jackson Harper 72dad0ad49 * Page.cs: Always set the cache expire time. Tell the response to
cache itself for server side cached pages.

svn path=/trunk/mcs/; revision=20269
2003-11-20 11:48:55 +00:00
Jackson Harper 9b8336664c * Control.cs: Remove ResolveBaseUrl. ResolveUrl does the same
thing, some corner cases still need work though. Was this the
	shortest lived method in the history of mono?

svn path=/trunk/mcs/; revision=20267
2003-11-20 11:30:38 +00:00
Jackson Harper 8ecdf4a863 * Control.cs: New method for resolving urls that use ~/ to denote
the applications base directory.

svn path=/trunk/mcs/; revision=20264
2003-11-20 10:41:26 +00:00
Jackson Harper 2eeda6f463 * TemplateParser.cs: Fix typo in error message.
svn path=/trunk/mcs/; revision=20262
2003-11-20 06:12:54 +00:00
Gonzalo Paniagua Javier 361104c1ec 2003-11-19 Gonzalo Paniagua Javier <[email protected]>
* TemplateControlParser.cs: support @Reference. Fixes bug #49572. Thanks
	to Sanjay Gupta.

svn path=/trunk/mcs/; revision=20221
2003-11-19 12:24:23 +00:00
Todd Berman cdfc1a0f22 2003-11-19 Todd Berman <[email protected]>
* KeyedList.cs:
        * KeyedListEnumerator.cs: New v2 implementations.

svn path=/trunk/mcs/; revision=20212
2003-11-19 04:36:57 +00:00
Ben Maurer d0ac8392d4 2003-11-17 Ben Maurer <[email protected]>
* StateManagedCollection.cs: Implement.

2003-11-17 Ben Maurer  <[email protected]>

	* ControlParameter.cs:
	* CookieParameter.cs:
	* FormParameter.cs:
	* Parameter.cs:
	* QueryStringParameter.cs: New v2 files. Mostly
	implemented, still need a few methods.

svn path=/trunk/mcs/; revision=20146
2003-11-17 23:03:01 +00:00