Before the change the Enabled property wasn't updated when a postback
event was raised.
fixed SelectedIndex property implementation in ListControl.
Prevents throwing ArgumentOutOfRangeException (that should not be thrown),
when the list is empty.
svn path=/trunk/mcs/; revision=26817
* System.Web.dll.sources: added WebConfigurationSettings.
* System.Web/HttpContext.cs: updated GetConfig and GetAppConfig to new
API.
* System.Web/HttpResponse.cs: separate initialization of the HttpWriter,
as it tries to read configuration settings while the config. system is
not available (ie, before the first request).
* System.Web/HttpRuntime.cs: delayed queueManager and response writer
initialization until the configuration system is working.
* System.Web.Configuration/GlobalizationConfiguration.cs: return null
when the configuration is not available.
* System.Web.Util/WebEncoding.cs: use the Default encoding when the
globalization configuration is not available.
* System.Web.Configuration/WebConfigurationSettings.cs: handle
configuration for System.Web. It replaces the default
IConfigurationSystem with itself and handles web.config files
oddities.
* System.Web.UI.WebControls/WebControl.cs: don't create the attributes
when GetAttribute is called.
svn path=/trunk/mcs/; revision=20681
* Calendar.cs (SaveViewState):
- We were allocating a 11 item array, we only used 10 items,
so only allocate 10.
- We only need to save the selected dates if there are any.
* DataGrid.cs (SaveViewState):
* DataGridColumn.cs (SaveViewState):
* DataGridColumnCollection.cs (SaveViewState):
- Only return the array if there is anything in it
* Style.cs (SaveViewState):
- Only save the bits if there were changes.
* WebControl.cs (SaveViewState), (LoadViewState):
- Don't save Enabled into the viewstate here, we already
do it in the property. This just caused *EVERY* control
to have a non-null state, taking up lots of extra room
in the ViewState.
- The style will always be created with this control's
viewstate, so the style will always return null for the
viewstate. As such, we do not need to store it. We can
also reduce the triplet to a pair because of this.
svn path=/trunk/mcs/; revision=20342
* Calendar.cs: apply the calendar style to the new Table, not to itself.
Fixes#49406.
* CheckBox.cs: render the hidden fields if AutoPostBack.
* Style.cs: don't render empty width/height. Small improvement in
CopyFrom.
* Table.cs: fixed condition for border width.
* TableStyle.cs:
(CopyFrom): always call the base class to copy other attributes. Fixes
bug #49408. Don't render empty 'rules' attribute.
* WebControl.cs: track viewstate when enabled. Don't overwrite source
control attributes in CopyBaseAttributes.
* ChangeLog: fixed dates.
svn path=/trunk/mcs/; revision=18878
* CheckBox.cs: render the 'disabled' attribute in the correct tag.
* WebControl.cs: fixed Enabled property and save it in ViewState.
Fixes bug #48802.
svn path=/trunk/mcs/; revision=18323
* Style.cs: the MARKED bit is not send set in ViewState unless something
is changed. Fixed TrackViewState condition.
* WebControl.cs: save the base ViewState *after* ControlStyle is done,
because it uses the same ViewState as the control. Fixes bug #47725.
svn path=/trunk/mcs/; revision=17421
* System.Web.UI/Page.cs: request to render postback script can be
after form started rendering.
* System.Web.UI.WebControls/Calendar.cs: lots of fixes. Render days.
Still left to persist selected days when changing month.
* System.Web.UI.WebControls/Unit.cs: fixed Percentage and Pixel.
* System.Web.UI.WebControls/WebControl.cs: a few properties are now
using ControlStyle instead of ViewState to persist.
svn path=/trunk/mcs/; revision=6258
* 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
* ListControl.cs: fixed a couple of range checks.
* WebControl.cs: MS lies! Not all WebControls must be rendered inside
an HtmlForm (p.e., Label).
svn path=/trunk/mcs/; revision=5785
* CheckBoxList.cs:
* DataGrid.cs:
* DataList.cs:
* DropDownList.cs:
* ListBox.cs:
* PlaceHolder.cs:
* RadioButton.cs:
* RadioButtonList.cs:
* TableRow.cs:
* WebControl.cs:
* Xml.cs: forgot to add using System.ComponentModel.
* BaseValidator.cs: use explicitly
System.ComponentModel.AttributeCollection as there is another class
with the same name under System.Web.UI.
svn path=/trunk/mcs/; revision=5642
* System.Web.UI/Page.cs: implemented more properties using information
we already have in Context.
(OnFormRender):
(OnFormPostRender):
(VerifyRenderingInServerForm): implemented.
* System.Web.UI.HtmlControls/HtmlForm.cs:
(RenderChildren): use OnFormRender and OnFormPostRender.
* System.Web.UI.WebControls/WebControl.cs:
(AddAttributesToRender): call Page.VerifyRenderingInServerForm. All
WebControl derived classes should be rendered inside a HtmlForm.
svn path=/trunk/mcs/; revision=5434
* ImageButton.cs:
(AddAttributesToRender): fixer another stack overflow.
* WebControl.cs:
(TagName): modified to use TagKey instead of tagKey as the property
can be overriden.
svn path=/trunk/mcs/; revision=5258
* System.Web.UI/Page.cs:
(Validators): if the collection is null, create one.
(GetPostBackEventReference 2): don't throw exception.
(GetPostBackClientEvent): return a string with containing the method
name, the control name and the argument.
* System.Web.UI.WebControls/LinkButton.cs: mono-stylized.
(AddParsedSubObject):
(RenderControls): little fixes.
* System.Web.UI.WebControls/WebControl.cs:
(AddAttributesToRender): fixed usage of IEnumerator.
svn path=/trunk/mcs/; revision=5256
* Label.cs: beautified and fixed a couple of 'classic' bugs.
* WebControl.cs: use Span as default tag when no other provided in
constructor. That is what MS renders.
svn path=/trunk/mcs/; revision=5249
* 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/HttpBrowserCapabilities.cs: stubbed out.
* System.Web.Configuration/HttpCapabilitiesBase.cs: New file.
* System.Web.Security/DefaultAuthenticationEventArgs.cs: New file.
* System.Web.SessionState/IReadOnlySessionState.cs: New file.
* System.Web.SessionState/IRequiresSessionState.cs: New file.
* System.Web.SessionState/SessionStateMode.cs: New file.
* System.Web.UI/Page.cs:
(FileDependencies): now is public public.
(EnableViewStateMAC): uncommented and made protected.
(GetTypeHashCode): added method.
* System.Web.UI.HtmlControls/HtmlForm.cs:
(RenderAttributes): changed new by override.
(Name): allow setting the property.
* System.Web.UI.WebControls/WebControl.cs: added attributes
PersistChildrenAttribute and ParseChildrenAttribute.
* System.Web.Configuration/ChangeLog:
* System.Web.Configuration/HttpCapabilitiesBase.cs:
* System.Web.Security/ChangeLog:
* System.Web.Security/DefaultAuthenticationEventArgs.cs:
* System.Web.SessionState/ChangeLog:
* System.Web.SessionState/IReadOnlySessionState.cs:
* System.Web.SessionState/IRequiresSessionState.cs:
* System.Web.SessionState/SessionStateMode.cs: new files.
Now we are able to compile some files generated by xsp with our
System.Web classes.
svn path=/trunk/mcs/; revision=5102
Back from a small vacation due to the exams...
* ListItem.cs, ListItemCollection.cs: Completed
* WebControl.cs -- Minor changes.
* TableStyle.cs, TargetConverter, TemplateColumn -- Fully implemented
* ListBox.cs -- Partial Implementation (See ChangeLog for details)
* ChangeLog -- Verbose details of the work done
* TODO -- Updated list for completed classes.
svn path=/trunk/mcs/; revision=2245
* UI.WebControls/*.cs
--> Got over 100 erros, 50+ warning (with /nowarn:1595). Trying to remove them for first build. Completing uncompleted. Creating new ones.
svn path=/trunk/mcs/; revision=1640
* 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