* System.Web/HttpRequest.cs: implemented CurrentExecutionFilePath.
* System.Web.UI/Control.cs: some more tweaks to naming containers stuff.
* System.Web.UI/DataBinder.cs: don't throw exception if the container
is null.
* System.Web.UI/Page.cs: now we can render client scripts, startup
scripts and hidden fields. Only render __VIEWSTATE if there is someone
that will take care of it.
(RaisePostBackEvents): first try the last one that required raise event,
then try __EVENTTARGET.
* System.Web.UI.HtmlControls/HtmlForm.cs: render 'action' attribute.
* System.Web.UI.WebControls/BaseDataList.cs: what can I say for this
one? I spent so many time until I finally found this that I'm gonna
miss this f....g bug... ;-). Farewell. Now we can get events from
image buttons inside Data*.
* System.Web.UI.WebControls/DataList.cs: now the value stored in
ViewState for item count is correct.
svn path=/trunk/mcs/; revision=10627
* 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
* System.Web/HttpApplication.cs: added new state to handle default
authentication.
* System.Web.Configuration/HttpModulesConfigurationHandler.cs: add
a default authentication module at the end of the list.
* System.Web.Configuration/ModuleItem.cs: new constructor.
* System.Web.Security/DefaultAuthenticationModule.cs: implemented. It
just create a default unauthenticated user when no one else provided one.
* System.Web.Security/FormsAuthenticationModule.cs: removed debug output.
* System.Web.UI/Control.cs:
(AddedControl): take the children to the same state of the parent.
(InitRecursive): set the page of the children.
* System.Web.UI/Page.cs: removed one line (it's done a few lines above).
* System.Web.UI/UserControl.cs:
(OnInit): always call InitializeAsUserControl
(InitializeAsUserControl): sets the page for the control.
svn path=/trunk/mcs/; revision=10114
* System.Web/HttpApplicationFactory.cs: add the context as parameter
when building the application Type.
* System.Web/HttpCookie.cs: new internal constructor.
* System.Web/HttpCookieCollection.cs: new internal method to make a
cookie expire.
* System.Web/HttpRequest.cs: MapPath fixes.
* System.Web/HttpResponse.cs: implemented ApplyAppPathModifier.
* System.Web/HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
* System.Web.Compilation/AspGenerator.cs: now it uses the current
HttpContext when creating user controls. TemplateSourceDirectory is no
longer a dummy value.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: set the context which
will be used to locate the files.
* System.Web.UI/BaseParser.cs: use MapPath and context to locate files.
* System.Web.UI/Control.cs: implemented MapPathSecure.
* System.Web.UI/TemplateControl.cs: use UrlUtils to generate the path.
* System.Web.UI/TemplateControlParser.cs: use the context and MapPath.
* System.Web.UI/UserControl.cs: implemented MapPath.
* System.Web.UI/UserControlParser.cs: added context parameter to
constructor.
* System.Web.Util/PathUtil.cs: removed.
* System.Web.Util/UrlUtils.cs: fixed Combine to handle '~'.
svn path=/trunk/mcs/; revision=9737
* System.Web.Compilation/AspGenerator.cs: added support for
AutoEventWireup attribute in @Page and @Control.
* System.Web.Compilation/CompilationResult.cs:
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: store the options.
* System.Web.UI/Control.cs: added AutoEventWireup internal property.
* System.Web.UI/Page.cs: removed page events wire up from here.
* System.Web.UI/TemplateControl.cs: new method WireupAutomaticEvents to
hook up page and user controls events.
* System.Web.UI/TemplateControlParser.cs: process the options that are
applicable once we have the instance of the control.
* System.Web.UI/TemplateParser.cs: also stores the options.
* System.Web.UI/UserControl.cs: hook up events before initializing the
control.
svn path=/trunk/mcs/; revision=9623
* System.Web.UI/Control.cs: new method to set bindingContainer value.
* System.Web.UI/TemplateControl.cs: added controls are not binding
containers.
* System.Web.UI.WebControls/DataList.cs: for header and footer don't
use data source. Instantiate in the DataListItem, not in the DataList.
databind-template.aspx works now.
svn path=/trunk/mcs/; revision=9594
* list: Modified file.
* System.Web/HttpRuntime.cs: avoid nulls and exception when getting
resource format strings.
* System.Web/StaticFileHandler.cs: added file name to error message.
* System.Web.Compilation/AspElements.cs: new method Tag.GetElements
used to parse the inner contents of a tag looking for data binding or
code render tags.
New property HtmlControlTag.ParseChildren allows
differentiation of a couple of HtmlControls that has children as
properties (namely HtmlTable and HtmlTableRow).
* System.Web.Compilation/AspGenerator.cs: fixed container semantics to
match BindingContainer one. Implemented Inherits attribute for page and
control.
Support HtmlControls that has ChildrenAsProperties.
Generate code for data binding functions that matches the semantic of
Container.
Handle data bound and code render attribute values.
Set proper value return for TemplateSourceDirectory. Should be relative
to appPath.
* System.Web.Compilation/BaseCompiler.cs: moved CompilerOptions and
References handling here.
* System.Web.Compilation/CachingCompiler.cs: copy result of compilation.
* System.Web.Compilation/CompilationException.cs: simple ToString ()
implementation.
* System.Web.Compilation/CompilationResult.cs: implemented CopyFrom and
ToString.
* System.Web.Compilation/GlobalAsaxCompiler.cs:
* System.Web.Compilation/PageCompiler.cs:
* System.Web.Compilation/UserControlCompiler.cs: removed
CompilerOptions as it's now handled in the base class. Get all the
types in the generated assembly and look for one that derives from
the correct Type.
* System.Web.UI/Control.cs: implemented TemplateSourceDirectory.
* System.Web.UI/TemplateControl.cs: implemented LoadControl and
LoadTemplate.
* System.Web.Util/PathUtil.cs: some path handling methods that are not
available in Path.
svn path=/trunk/mcs/; revision=9583
* 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
* System.Web.build: added options (commented out) to activate tracing.
* System.Web/HttpResponse.cs: don't throw exception in a couple of
methods not yet implemented.
* System.Web.Compilation/AspComponentFoundry.cs: fixed typo.
* System.Web.Compilation/AspGenerator.cs: don't use FileDependencies
property of base class.
* System.Web.Compilation/TemplateFactory.cs: use csc style options.
* System.Web.UI/Page.cs: set the context in ProcessRequest. Added a
few trace calls.
* System.Web.UI/Control.cs: added some trace information.
svn path=/trunk/mcs/; revision=8527
* Control.cs:
(SaveViewState): save state even when control is not visible.
(SaveViewStateRecursive):
(LoadViewStateRecursive): made internal.
svn path=/trunk/mcs/; revision=6017
* System.Web.UI/Control.cs: uncommented Dispose.
* System.Web.UI/Page.cs:
(DeterminePostBackMode): more checkings.
(GetPostBackClientHyperLink): implemented.
(GetPostBackEventReference): added some comments with the HTML that MS
generates for that.
(ProcessRequest): fixed processing order. The page is unloaded after
a request and regenerated from view state on subsequents posts.
* System.Web.UI.WebControls/DropDownList.cs:
(ToolTip): fixed.
* System.Web.UI.WebControls/ListItem.cs:
(LoadViewState): fixed.
* System.Web.UI.WebControls/ListItemCollection.cs:
(TrackViewState): use items instead of 'this' in foreach.
* System.Web.UI.WebControls/Style.cs:
(LoadViewState): more checking of parameters.
* System.Web.UI.WebControls/WebControl.cs: implemented LoadViewState
and SaveViewState.
svn path=/trunk/mcs/; revision=5945
* Control.cs: fixed related to ViewState. Added RemovedControl.
* ControlCollection.cs: notify owner of control removal.
* CssStyleCollection.cs: almost rewritten to make it render the style
attribute after changes to it.
* Page.cs: follow the guidelines in 'Control execution lifecycle'.
Removed Xml code.
* StateBag.cs: don't use IDictionary.GetEnumerator on the
HybridDictionary: it makes the program give an InvalidCastException at
runtime. Why?
svn path=/trunk/mcs/; revision=5863
* list: updated. Currently mcs cannot compile System.Web because it
cannot find NameObjectCollectionBase.KeysCollection.
* System.Web.build: don't display unused event nor always default value
warnings by now.
* System.Web.UI/Control.cs:
(SaveViewstateRecursive): implemented.
(SaveViewState): fixed.
(IParserAccessor.AddParsedSubObject): don't use 'this'.
* System.Web.UI/Page.cs: added code to save view state to an xml file.
It's not being used right now.
* System.Web.UI.WebControls/AdRotator.cs:
(LoadAdFile): make the dictionary null after every iteration.
* System.Web.UI.WebControls/LinkButton.cs:
* System.Web.UI.WebControls/ListControl.cs:
* System.Web.UI.WebControls/ListItem.cs: fixed warnings.
svn path=/trunk/mcs/; revision=5603
* System.Web/HttpContext.cs:
(Session): return null instead of throwing an exception.
* System.Web/HttpRequest.cs:
(HttpMethod): return RequestType if not set.
(GetRawContent): return QueryString if we don't have a
HttpWorkerRequest.
* System.Web/HttpUtility.cs: fixed Decode and Encode.
* System.Web.UI/Control.cs: reimplemented FindControls.
* System.Web.UI/Page.cs:
(.ctor): set the page for this control.
(IsPostBack): return valid value.
(DeterminePostBackMode): finished.
(OnFormRender): render __VIEWSTATE (uses GetTypeHashCode()).
(ProcessPostData): implemented. Raises change and postback events.
(ProcessRequest): changed to support reuse of the instance.
(RegisterRequiresPostBack): implemented.
* System.Web.UI/ValidatorCollection.cs: implemented all methods.
* System.Web.UI.WebControls/Button.cs:
(.ctor): fixed to render the correct tag.
(IPostBAckEventHandler.RaisePostBackEvent): fixed.
svn path=/trunk/mcs/; revision=5499
* System.Web.UI/Control.cs:
(AddedControl): new function that is called whenever a control is
added to a collection of controls in a container. It sets the defaults
except for Page.
* System.Web.UI/ControlCollection.cs: call AddedControl in Add/AddAt.
* System.Web.UI/DataBoundLiteralControl.cs: implemented constructor,
Text, Render, SetStaticString and SetDataBoundString.
* System.Web.UI/Page.cs: removed SetDefaults.
* System.Web.UI.WebControls/Repeater.cs: implemented
CreateControlHierarchy. Fixed some event processing methods.
svn path=/trunk/mcs/; revision=5357
* System.Web.UI/CompiledTemplateBuilder.cs: new file. Used in the
code generated by xsp.
* System.Web.UI/Control.cs:
(BindingContainer): implemented.
(EnsureChildControls): avoid stack overflow.
* System.Web.UI/DataBinder.cs: implemented Eval and PropertyValue.
* System.Web.UI.WebControls/Repeater.cs:
(Controls):
(OnDataBinding): fixed stack overflow.
Still need more work in Repeater.cs to make it render.
svn path=/trunk/mcs/; revision=5345
* System.Web.Caching/CacheDependency.cs: fixed a couple of typos and
don't throw NotImplementedException in constructors.
* System.Web.UI/Control.cs:
(MapPathSecure): until security is implemented, return the same path
received as argument.
(RenderControl): call OnPreRender before rendering the control. So
AdRotator can read its configuration file.Is there any other place
where this should be done?
* System.Web.UI/HtmlTextWriter.cs:
(AddAttribute): fixed. Now it really stores attributes.
(RenderBeginTag): fixed a couple of bugs (little ones but hard to find).
* System.Web.UI.WebControls/AdRotator.cs: GetData does not work as it
should, but now it returns useful data (only the first ad in the file).
Set the NavigateUrl property in the hyperlink if available.
* System.Web.UI.WebControls/HyperLink.cs: fixed constructor and a
couple of stack overflows.
* System.Web.UI.WebControls/Image.cs: added an attribute and fixed
stack overflow.
* System.Web.UI.WebControls/WebControl.cs:
(RenderBeginTag): fixed.
(TagName): don't call Enum.IsDefined twice.
svn path=/trunk/mcs/; revision=5230
* System.Web.UI/AttributeCollection.cs: don't need a Hastable. StateBag
now works fine and takes care of the details.
* System.Web.UI/Control.cs: added HasChildren property.
* System.Web.UI/StateBag.cs: fixed a couple of nasty bugs.
* System.Web.UI.HtmlControls/HtmlButton.cs: RenderAttributes is an
override, not new.
* System.Web.UI.HtmlControls/HtmlContainerControl.cs: use the new
Render method in HtmlControl.
* System.Web.UI.HtmlControls/HtmlControl.cs: added Render method to
render the tag and its attributes. Works for container and
non-containers.
* System.Web.UI.HtmlControls/HtmlImage.cs: RenderAttributes don't need
to be new. Implemented Height property.
svn path=/trunk/mcs/; revision=5130
* System.Web.UI/Control.cs: don't throw exception in ControlID. By now,
it returns ID.
* System.Web.UI/Page.cs:
(ProcessRequest): implemented.
* System.Web.UI.HtmlControls/HtmlAnchor.cs:
(RenderAttributes): new -> override and fixed little bug that made
it cause an stack overflow.
* System.Web.UI.HtmlControls/HtmlContainerControl.cs: reformatted and
added tag and its attributes rendering.
* System.Web.UI.HtmlControls/HtmlGenericControl.cs: removed TagName,
which is already in HtmlControl.
* System.Web.UI.HtmlControls/HtmlTable.cs:
(RenderEndTag): new -> override.
svn path=/trunk/mcs/; revision=5117
* System.Web.UI/*.cs
* System.Web.UI.WebControls/*.cs
--- Still working hard to make build succesfull. Lots of errors. Really, lots and lots. Not it's 6:00AM and I need to sleep :))
svn path=/trunk/mcs/; revision=1634
* System.Web.UI/*.cs
* System.Web/*.cs -- Looks like I need to take control of this now. Build is otherwise failing
svn path=/trunk/mcs/; revision=1627