* WebControl.cs: HasAttributes made available as internal for 1.1
Avoid calling the Attributes getter many times in
CopyBaseAttributes.
If TrackViewState is called and attributes state bag already
exists, mark all items in the latter as dirty.
* CheckBox.cs, Button.cs, ImageButton.cs, LinkButton.cs: do not
create the Attributes collection if not necessary.
svn path=/trunk/mcs/; revision=147094
* ImageMap.cs: added the SupportsEventValidation attribute to the
class.
Validate the event in RaisePostBackEvent ().
Register for event validation in Render ().
* DropDownList.cs, ListBox.cs: validate the event in LoadPostData ().
* TextBox.cs: validate the event in LoadPostData ().
Register for event validation in AddAttributesToRender ().
* HiddenField.cs: validate the event in RaisePostDataChangedEvent.
Register for event validation in Render ().
* RadioButton.cs: validate the event in LoadPostData ().
Register for event validation in InternalAddAttributesToRender.
* CheckBox.cs, RadioButtonList.cs: validate the event in
RaisePostDataChangedEvent.
* Menu.cs: added the SupportsEventValidation attribute to the
class.
Validate the event in RaisePostBackEvent ().
Register for event validation in GetClientEvent ().
* DetailsView.cs, GridView.cs: validate the event in
RaisePostBackEvent ().
Register for validation in GetCallbackScript () and in OnPreRender
* Button.cs, Table.cs, BulletedList.cs, Calendar.cs, LinkButton.cs,
ImageButton.cs, TreeView.cs: validate the event in RaisePostBackEvent ().
2008-10-17 Marek Habersack <[email protected]>
* Control.cs: added the ValidateEvent internal method, used by
classes descending from Control to automatically trigger event
validation.
* Page.cs: removed the CheckForValidationSupport method. It moved
to Control.cs
RaisePostBackEvent no longer validates the events, this
functionality has been moved to Control.ValidateEvent.
2008-10-17 Marek Habersack <[email protected]>
* HtmlInputHidden.cs: validate the event in LoadPostDataInternal.
* HtmlInputButton.cs: validate the event in
RaisePostBackEventInternal ().
Register for event validation in RenderAttributes ()
* HtmlTextArea.cs: validate the event in
RaisePostBackDataChangedEvent ().
* HtmlButton.cs: validate the event in RaisePostBackEvent ().
Register for event validation in RenderAttributes ()
* HtmlAnchor.cs: validate the event in RaisePostBackEvent ().
Register for event validation in RenderAttributes ().
* HtmlInputRadioButton.cs, HtmlSelect.cs: validate the event in
LoadPostData.
* HtmlInputText.cs, HtmlInputImage.cs, HtmlInputCheckBox.cs,
HtmlInputPassword.cs: validate the event in
RaisePostDataChangedEvent ().
2008-10-17 Marek Habersack <[email protected]>
* MenuAdapterTest.cs: work around event validation failure in the
test environment.
2008-10-17 Marek Habersack <[email protected]>
* PageTest.cs: use a custom version of HtmlInputHidden control to
work around the new event validation code which doesn't work in
this instance.
svn path=/trunk/mcs/; revision=116231
* Button.cs:
* ButtonField.cs:
* CommandField.cs:
* DataControlButton.cs:
* DataControlField.cs:
* ImageButton.cs:
* PagerSettings.cs:
Internal classes are used in databound controls for buttons
are derived from right types. It allows to have access to them by casting
to public types. This trick is used in one of starter kits of MS.
2007-02-04 Igor Zelmanovich <[email protected]>
* Page.cs:
VerifyRenderingInServerForm does not fire exception when IsCallback
svn path=/trunk/mcs/; revision=72269
* Button.cs: do something in PostBackUrl.
* Repeater.cs: when creating the RepeaterItemCollection, initialize
'items' if it hasn't been done yet. Fixes bug #78417.
svn path=/trunk/mcs/; revision=61718
2006-02-23 Chris Toshok <[email protected]>
* Page.cs (ProcessCallbackData): track change to
ICallbackEventHandler iface.
* ICallbackEventHandler.cs: enable the proper members of this
interface.
* DataSourceSelectArguments.cs: reformat getter/setters.
In System.Web.UI.WebControls:
2006-02-23 Chris Toshok <[email protected]>
* BaseCompareValidator.cs, BaseValidator.cs, Button.cs,
DataControlField.cs, DetailsView.cs, FormView.cs, GridView.cs,
HotSpot.cs, LinkButton.cs, Login.cs, SiteMapDataSource.cs,
SqlDataSourceCommandType.cs, TableSectionStyle.cs,
TemplateField.cs, TreeNodeCollection.cs, TreeNode.cs, TreeView.cs,
ValidationSummary.cs, WizardStepBase.cs: fix tons of corcompare
errors. most were caused by a property/method being virtual when
it shouldn't be, or vice versa.
svn path=/trunk/mcs/; revision=57203
* System.Web.UI/DesignerDataBoundLiteralControl.cs: changed autoid api.
* System.Web.UI/DataBoundLiteralControl.cs: changed autoid api.
* System.Web.UI/Control.cs: fixlet for UniqueID and weird test case.
Removed PreventAutoID and only use the property to set that value.
* System.Web.UI/LiteralControl.cs: changed autoid api.
* System.Web.UI.WebControls/Button.cs: implemented 2.0
RaisePostBackEvent in terms of the existing code in 1.1 (or viceversa).
RenderContents() does nothing.
* System.Web.UI.WebControls/DataGrid.cs: changed autoid api.
* System.Web.UI.WebControls/EditCommandColumn.cs: only 'Update' causes
validation.
* System.Web.UI.WebControls/TableCell.cs: changed autoid api.
RenderContents checks the number of controls to decide what to do, not
the value of Text in the viewstate.
* System.Web.UI.WebControls/TableRow.cs: changed autoid api.
* System.Web.UI.WebControls/BoundColumn.cs: SelectedItem was missing
when attaching a DataBind event. When we get an EditItem, we need a
TextBox to be created and this one will be the one that gets the event.
Changed ItemDataBinding to deal with a TextBox too.
All tests pass now in the default profile (2 not run).
svn path=/trunk/mcs/; revision=51019
* Button.cs: For 2.0 don't add the "name" attribute unless there's an
id.
* DataGrid.cs: Fix TagKey (table) for 2.0.
* DataList.cs: Revert 2.0 specific stuff that was changed in RC.
* DropDownList.cs: For 2.0 don't add the "name" attribute unless
there's an id.
* ListBox.cs: For 2.0 don't add the "name" attribute unless there's an
id.
* RoleGroupCollection.cs: Fix "extra" exception in Remove method.
* Style.cs: Fixed (2.0) RegisteredCssClass to returns String.Empty
(i.e. not null).
* TextBox.cs: For 2.0 don't add the "name" attribute unless there's an
id.
* TreeView.cs: Added declarative security (Link and Inheritance
demands) for Minimal.
* XmlDataSource.cs: Added declarative security (Link and Inheritance
demands) for Minimal.
svn path=/trunk/mcs/; revision=50583
* AccessDataSource.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added [ToolboxBitmap] on class.
* AdRotator.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Removed extra Page and ViewState properties.
* BulletedList.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
* Button.cs: Added declarative security (Link and Inheritance demands)
for Minimal. Added [SupportsEventValidation] on class (2.0).
* Calendar.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
* CheckBox.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
* CompositeControl.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added new protected RecreateChildControls method.
* DataControlCommands.cs: Added declarative security (LinkDemands) for
Minimal. Added private ctor.
* DataGrid.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Fixed properties for 2.0 (mostly removing
[Bindable]). Added override for TagKey property.
* DataGridColumn.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added [UrlProperty] on HeaderImageUrl (2.0).
* DataGridItem.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added IDataItemContainer interface for 2.0.
* DataGridPagerStyle.cs: Added declarative security (LinkDemands) for
Minimal. Remove [Bindable] from 2.0 and add [Localizable].
* DataList.cs: Removed [Load|Save]ControlState methods.
* DropDownList.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
* EditCommandColumn.cs: Added declarative security (Link and
Inheritance demands) for Minimal. Added missing attributes,
[DefaultValue] and [Localize] for 2.0.
* FontInfo.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Remove [Bindable] and added [RefreshProperties]
for 2.0.
* Login.cs: Added declarative security (Link and Inheritance demands)
for Minimal. Fixed IsStyleEmpty. Removed extra [Themeable] attributes.
* ImageButton.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
* LinkButton.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
* ListBox.cs: Added declarative security (Link and Inheritance demands)
for Minimal. Added [SupportsEventValidation] on class (2.0).
* Literal.cs: Added declarative security (Link and Inheritance demands)
for Minimal. Removed [EditorBrowsable] on CreateControlCollection method.
* LoginStatus.cs: Added missing [Themeable] attributes on properties.
* MenuItemStyle.cs: Changed IsEmpty to public (required to compile -
but will be shown as extra).
* RadioButton.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
* RadioButtonList.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added [SupportsEventValidation] on class (2.0).
* RangeValidator.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Added missing [Themeable] attributes.
* RegularExpressionValidator.cs: Added declarative security (Link and
Inheritance demands) for Minimal. Remove [Bindable] from 2.0 and add
[Localizable].
* RoleGroupCollection.cs: Added declarative security (Link and
Inheritance demands) for Minimal. Fixed base class (changed in RC).
Re-implemented CopyTo. Removed some methods.
* Style.cs: Added declarative security (Link and Inheritance demands)
for Minimal. Remove static IsStyleEmpty and ToString (from 2.0). IsEmpty
is now public in 2.0.
* Table.cs: Added declarative security (Link and Inheritance demands)
for Minimal. Added [SupportsEventValidation] on class (2.0).
* TableCell.cs: Fixed PersistenceMode for 2.0.
* TextBox.cs: Added declarative security (Link and Inheritance demands)
for Minimal. Added [SupportsEventValidation] on class (2.0).
* TreeNodeStyle.cs: Changed IsEmpty to public (required to compile -
but will be shown as extra).
* WebControl.cs: Added declarative security (Link and Inheritance
demands) for Minimal. Removed [EditorBrowsable] on ControlStyleCreated
property.
svn path=/trunk/mcs/; revision=50329
* CalendarTest.cs: Trackview states
2005-08-02 Jordi Mas i Hernandez <[email protected]>
* RadioButtonListTest.cs: test unit
2005-07-29 Jordi Mas i Hernandez <[email protected]>
* SelectedDatesCollectionTest.cs: new unit test
* CalendarDayTest.cs: new unit test
* CalendarTest.cs: more tests for calendar control
2005-07-12 Jordi Mas i Hernandez <[email protected]>
* ButtonTest.cs: add Default constructors tests
* ImageButtonTest.cs: Adds ImageButtonTest
2005-07-11 Jordi Mas i Hernandez <[email protected]>
* ButtonTest.cs: New unit test for Button
2005-08-04 Jordi Mas i Hernandez <[email protected]>
* Calendar.cs: fixes issues with OnDayRender event and others
2005-08-03 Jordi Mas i Hernandez <[email protected]>
* Calendar.cs: fixes Save/Load state
2005-08-03 Jordi Mas i Hernandez <[email protected]>
* Calendar.cs: bug fixes
2005-08-02 Jordi Mas i Hernandez <[email protected]>
* RadioButtonList.cs: bug fixes
2005-08-02 Jordi Mas i Hernandez <[email protected]>
* CheckBox.cs, RadioButton.cs: mecanism to avoid exposing
AddAttributesToRender
* RadioButtonList.cs: Implementation
2005-08-01 Jordi Mas i Hernandez <[email protected]>
* ImageButton.cs: fixes, complete missing parts
2005-07-29 Jordi Mas i Hernandez <[email protected]>
* Calendar.cs: fixes exceptions, bug fixes, new features
* SelectedDatesCollection.cs: Fixes bugs discovered by the tests
* CalendarDay.cs: fixes default value
2005-07-27 Jordi Mas i Hernandez <[email protected]>
* Calendar.cs: get the styles right, honors more properties, fixes, fix
var names style
2005-07-26 Jordi Mas i Hernandez <[email protected]>
* Calendar.cs: selection of dates, state load, save, track, support
for new properties, many fixes.
2005-07-23 Jordi Mas i Hernandez <[email protected]>
* Button.cs: fixes events, adds attributes
2005-07-22 Jordi Mas i Hernandez <[email protected]>
* Calendar.cs: Initial implementation
* CalendarSelectionMode.cs: fix enum order
2005-07-12 Jordi Mas i Hernandez <[email protected]>
* TitleFormat.cs: Add attribute
* TextBoxMode.cs: Add attribute
* CalendarDay.cs: Initial implementation
* ImageButton.cs: Initial implementation
* CalendarSelectionMode.cs:Initial implementation
2005-07-12 Jordi Mas i Hernandez <[email protected]>
* TextBoxMode.cs: simple enum
* TitleFormat.cs: simple enum
2005-07-10 Jordi Mas i Hernandez <[email protected]>
* Button.cs: Initial Button implementation
svn path=/trunk/mcs/; revision=48923
* FormViewDeleteEventArgs.cs:
* FormViewInsertEventArgs.cs:
* FormViewUpdateEventArgs.cs:
* FormViewDeletedEventArgs.cs:
* FormViewUpdatedEventArgs.cs:
* FormViewInsertedEventArgs.cs: Implemented some missing properties.
* LinkButton.cs:
* IButtonControl.cs:
* Button.cs: Removed SoftKey property.
* CheckBox.cs: Don't try to load post back data if the control
is disabled.
* ImageField.cs:
* AutoGeneratedField.cs:
* DataControlField.cs:
* CommandField.cs:
* ButtonFieldBase.cs:
* BoundField.cs:
* CheckBoxField.cs:
* TemplateField.cs:
* ButtonField.cs: Don't bind fields in Insert state.
Implemented CreateField and CopyProperties.
* GridView.cs:
* DetailsView.cs: Removed some unneeded interfaces. Don't
generate the field rows if there are no items in the data source.
Don't get the current keys until the whole control has been
bound.
* DetailsViewInsertedEventArgs.cs:
* DataBoundControl.cs:
* ObjectDataSourceView.cs: Made some methods private.
* MenuItemStyle.cs:
* Menu.cs: Changed some properties from int to Unit.
* DataControlButton.cs: javascript prefix is needed when raising
the postback event from a link.
* PagedDataSource.cs: Some fixes in Count and IsLastPage properties.
The result was wrong when the total data source count was 0.
* FormView.cs: Implemented.
* FormViewRow.cs: Implemented.
* Literal.cs:
* Localize.cs: Fixed base interface.
* BaseDataBoundControl.cs: In DataBind() call the base class
DataBind method, so the binding context is properly set.
svn path=/trunk/mcs/; revision=43410
* Button.cs, ImageButton.cs: Interpret PostBackOptions.ClientSubmit
correctly.
* CommandField.cs: Mostly implemented.
* Menu.cs: Use callback methods moved to ClientScriptManager.
* DataControlButton.cs: Internal control used to implement buttons
for navigating in data bound controls.
* DataControlField.cs, PagerSettings.cs: Use the new DataControlButton
to render the column headers.
* CheckBox.cs, RadioButton.cs, BulletedList.cs, TextBox.cs
DropDownList.cs, Calendar.cs, ListBox.cs, LinkButton.cs, TreeView.cs:
Don't use Page.GetPostBackClientEvent
since it is deprecated in 2.0.
* GridView.cs: Implemented some several interfaces.
Implemented support client sorting and page navigation (using callbacks).
Implemented the autogenerated command column using the new CommandField
class.
* ButtonFieldBase.cs: Implemented.
* GridView.js: New helper script to support client side sorting and
paging in the grid view.
svn path=/trunk/mcs/; revision=41698
* Button.cs: Use validation group when validating page.
* XmlDataSourceView.cs: Implemented ExecuteSelect.
* Menu.cs: Minor fix.
* CheckBox.cs: Added 2.0 properties and methods.
* BaseDataList.cs: Always databind the control if view state
is not enabled.
* DataList.cs: In 2.0, use control state to save the selected index.
* DetailsViewUpdatedEventArgs.cs: Fix typo.
* CustomValidator.cs: Implement IStaticTextControl interface.
* CheckBoxList.cs: Added missing 2.0 methods.
* DropDownList.cs: Added missing 2.0 methods. Implemented ITextControl
interface.
* XmlDataSource.cs: Return childs of DocumentElement, not the root
document.
* DayRenderEventArgs.cs, CompareValidator.cs, DataListItem.cs:
Implemented 2.0 API.
svn path=/trunk/mcs/; revision=40379
* 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/Page.cs:
(GetPostBackClient):
(RegisterRequiresPostBack): don't throw NotImplementedException to
keep going.
(ProcessRequest): set the current page as the Page property for *all*
the controls, not just the direct children of the page.
* System.Web.UI.WebControls/Button.cs:
(AddAttributesToRender): fixed (classic) stack overflow.
* System.Web.UI.WebControls/CheckBox.cs: mono-stylized.
(AutoPostBack): fixed stack overflow.
(Render): fixed alignment issues. Also set the For attribute always
for the label.
svn path=/trunk/mcs/; revision=5239
* Button.cs, ButtonColumn.cs, CheckBoxList.cs -- Completed. Uh!
* HyperLinkColumn.cs -- Started off. But feeling sleepy. Will do it
tomorrow. ;-)
* TODO, ChangeLog -- Properly Updated.
svn path=/trunk/mcs/; revision=1898