Do not invoke Length property twice for seekable MemoryStream.
* LosFormatterTest.cs: Improved test for bug #411115.
svn path=/trunk/mcs/; revision=108506
* 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
* LosFormatter.cs: the exceptions thrown have a 500 httpCode. Really
save the allocation of new MemoryStreams when possible. Thanks to
Sebastien again.
svn path=/trunk/mcs/; revision=50648
* ViewStateOutputHashStream.cs: Removed. It didn't last long.
* Page.cs: almost restored to its previous state, but now that we found
that LosFormatter ctor that takes 'enableMac', moved the logic to
add the hash and validate there. Thanks to Sebastien for his input.
* LosFormatter.cs: implemented the missing ctors and support for
"MAC" validation of the data.
svn path=/trunk/mcs/; revision=50634
* Html32TextWriter.cs: Added LinkDemand and InheritanceDemand for
AspNetHostingPermission with Minimal level. Added new 2.0 properties
(but the generated HTML doesn't use them).
* HtmlTextWriter.cs: Added LinkDemand and InheritanceDemand for
AspNetHostingPermission with Minimal level.
* ImageClickEventArgs.cs: Added LinkDemand for AspNetHostingPermission
with Minimal level.
* LiteralControl.cs: Added LinkDemand and InheritanceDemand for
AspNetHostingPermission with Minimal level. Default Text is null.
* LosFormatter.cs: Added LinkDemand and InheritanceDemand for
AspNetHostingPermission with Minimal level. Stubbed new 2.0 ctor.
* ObjectConverter.cs: Added LinkDemand and InheritanceDemand for
AspNetHostingPermission with Minimal level. Obsoleted ctor for 2.0.
* ObjectTagBuilder.cs: Added LinkDemand for AspNetHostingPermission
with Minimal level. Added check for null id (HttpException).
* Page.cs: Added LinkDemand and InheritanceDemand for
AspNetHostingPermission with Minimal level. Throw some HttpException
when no context is available.
* Pair.cs: Added LinkDemand for AspNetHostingPermission with Minimal
level. InheritanceDemand too for 1.x.
* PageParser.cs: Added LinkDemand for AspNetHostingPermission with
Minimal level.
svn path=/trunk/mcs/; revision=50093
* 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
* list: forgot to add this one.
* System.Web.Compilation/AspGenerator.cs: corrected typo and wrong fix.
* System.Web.UI/Control.cs: have i definitely fixed naming container
stuff this time?
* System.Web.UI/LosFormatter.cs: activated binary serialization code.
* System.Web.UI.WebControls/ButtonColumn.cs: fixed a couple of infinite
loop problems and render correctly the header of the column.
* System.Web.UI.WebControls/DataGridTableInternal.cs: don't assign a
default ID to this control.
* System.Web.UI.WebControls/LinkButton.cs: raise bubble event in
OnCommand.
* System.Web.UI.WebControls/TableCellCollection.cs: fixed the index
returned by Add.
* System.Web.UI.WebControls/TableRowCollection.cs: ditto.
svn path=/trunk/mcs/; revision=11601
* Control.cs: fixes in UniqueID, FindControl, AddedControl,
UnloadRecursive, InitRecursive. Reduced the size of __VIEWSTATE. Made
FindControl work with NamingContainers.
* ControlCollection.cs: notify the parent when clearing the collection.
* LosFormatter.cs: Added debugging output and generate a valid
viewstate even for unknown types.
* Page.cs: GetPostBackEventReference now uses UniqueID. Reduced
viewstate.
svn path=/trunk/mcs/; revision=10569
* LosFormatter.cs: added array serialization support. Disabled binary
serialization and add some debugging code.
* StateBag.cs: the length of the list of value can be less than the
length if the list of keys when remaining values are null.
svn path=/trunk/mcs/; revision=8932
* System.Web/HttpRequest.cs: fixed GetRawContent (). Now it only tries
to read at most ContentLength bytes.
* System.Web/HttpResponse.cs: now it sends the headers. Added
X-Powered-By header :-).
* System.Web/HttpRuntime.cs: fixed typo.
* System.Web/HttpValueCollection.cs: cosmetic changes.
* System.Web.UI/Control.cs: save control names instead of the controls
themselves to the ViewState.
* System.Web.UI/LosFormatter.cs: added support for serializing unknown
types. BinaryFormatter does not work so you better don't store anything
unknown in ViewState.
* System.Web.UI/Page.cs: GetViewStateString works now using
LosFormatter. Complete "Control execution lifecycle" by unloading all
the child controls. Check for null in RaisePostBackEvents.
LoadPageViewStateFromPersistenceMedium uses LosFormatter too.
POST works now!
svn path=/trunk/mcs/; revision=8699