fail to work on .NET 4.0 as well, for the most part. I will fix them next week.
2010-07-02 Marek Habersack <[email protected]>
* TemplateControlParser.cs: added support for ClientIDMode
property
* Control.cs: implemented 4.0 features - ClientIDMode and
RenderingCompatibility.
* ClientIDMode.cs, IDataKeysControl.cs: added
2010-07-02 Marek Habersack <[email protected]>
* Menu.cs: 4.0 API updates.
* GridView.cs: implemented 4.0 properties -
SortedAscendingCellStyle, SortedAscendingHeaderStyle,
SortedDescendingCellStyle, SortedDescendingHeaderStyle,
ClientIDRowSuffix, ClientIDRowSuffixDataKeys, ShowHeaderWhenEmpty
along with associated rendering changes.
* DetailsView.cs, FormView.cs, GridView.cs: 4.0 API changes -
renamed ShowPage to SetPageIndex and made it public.
Added 4.0 interfaces to inheritance list and implemented them.
* DataKeyArray.cs: added internal constructor which accepts IList
instead of ArrayList. Changed the 'keys' field type to IList.
* ContainedTable.cs: the 'id' attribute must be rendered last.
* CheckBox.cs, CheckBoxList.cs, SiteMapPath.cs, Table.cs,
TableStyle.cs, TextBox.cs, WebControl.cs: 4.0 rendering changes.
* Calendar.cs, CompositeControl.cs, DropDownList.cs, HyperLink.cs,
Image.cs, ImageButton.cs, Label.cs, LinkButton.cs, LoginName.cs,
Panel.cs, Table.cs, TableCell.cs, TableRow.cs:
added new 4.0 property, SupportsDisabledAttribute.
2010-07-02 Marek Habersack <[email protected]>
* VersionConverter.cs: added support for checking whether the
passed version is equal or more than a specified minimal version.
* PagesSection.cs: added two 4.0 properties - ClientIDMode and
ControlRenderingCompatibilityVersion
2010-07-02 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: added support for ClientIDMode 4.0
property
* PageCompiler.cs, UserControlCompiler.cs: AddStatementsToInitTop
must call the base implementation.
svn path=/trunk/mcs/; revision=159826
* 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
* NunitWebResources/adapters.browser,
NunitWebResources/TestCapability.browser: modified to work and
support tests of browser defs in
etc/mono/2.0/Browsers/Compat.browser.
++ class/System.Web/Test/System.Web/ChangeLog (working copy)
* AppBrowsersTest.cs: added tests to ensure browscap.ini
etc/mono/2.0/Browsers/Compat.browser are being used when there
are App_Browser/*.browser files.
++ class/System.Web/Test/System.Web.UI/ChangeLog (working copy)
* PageTest.cs: added tests to ensure that using a
ControlAdapter that is not of the type corresponding to the
control doesn't cause a cast error.
++ class/System.Web/Test/System.Web.UI.WebControls/ChangeLog (working copy)
* DataBoundControlTest.cs, HierarchicalDataBoundControlTest.cs,
WebControlTest.cs: added tests to ensure that using a
ControlAdapter that is not of the type corresponding to the
control doesn't cause a cast error.
++ class/System.Web/System.Web/ChangeLog (working copy)
* HttpApplicationFactory.cs (CapabilitiesProcessor): changed to
use etc/mono/2.0/Browser/*.browser files in addition to
~/App_Browsers/*.browser files.
++ class/System.Web/System.Web.UI/ChangeLog (working copy)
* Page.cs (PageAdapter): fixed cast error when a ControlAdapter that
wasn't a PageAdapter was used.
++ class/System.Web/System.Web.Configuration_2.0/ChangeLog (working copy)
* CapabilitiesBuild.cs (Process), ICapabilitiesProcess.cs (Process),
nBrowser/Build.cs (Process): Added initialCapabilities argument to
facilitate using browscap.ini capabilities.
* CapabilitiesResult.cs (ctor), nBrowserResult.cs (ctor): Change
items arg to IDictionary to facilitate using browscap.ini capabilities.
* nBrowser/Node.cs (Reset): Removed code which checked prohibited
non-alphanumerics in id attributes because .NET is not that strict.
* nBrowser/Node.cs (MergeFrom): Fixed NullReferenceExceptions that
occurred when the source or destination node did not have any
capabilities or adapters.
* nBrowser/Result.cs (AddAdapter): Fixed to allow types in other
assemblies.
++ class/System.Web/System.Web.UI.WebControls/ChangeLog (working copy)
* DataBoundControl.cs (InternalPerformDataBinding),
HierarchicalDataBoundControl.cs (InternalPerformDataBinding),
WebControl.cs (Render): fixed cast errors when a ControlAdapter
that wasn't of the type corresponding to the control was used.
++ class/System.Web/System.Web.Configuration/ChangeLog (working copy)
* HttpCapabilitiesBase.cs (GetConfigCapabilities): changed to use
browscap.ini for default capabilities when *.browser files are
present, so we don't need to maintain browser capabilities in two
places.
svn path=/trunk/mcs/; revision=100150
* add new resources:
PageWithAdapter.aspx for PageTest and PageAdapterTest.
TestCapability.browser for AppBrowsersTest.
* NunitWebResources/adapters.browser,
NunitWebResources/AppBrowsersTest.browser: modified to support
testing reference nodes with captures, and adapters.
* NunitWeb/NunitWeb/WebTest.cs: ensure that, during AppDomain
unload, no new requests are sent to the app host and any
pending requests are completed before the the unload occurs.
Also added WebTest.AppUnloaded event that tests can use to wait
for the app to unload (e.g. after touching Global.asax), and
WebTest.CleanApp() which can be called to restart the app with
the a skeleton directory structure. Tests which add files that
could effect other tests (e.g. App_Browsers/*.browser files) should
call WebTest.CleanApp() during TearDown to return the app to a
pristine environment.
++ Test/mainsoft/MainsoftWebTest/ChangeLog (working copy)
* HtmlAgilityPack/AssemblyInfo.cs: made assembly delay signed so that
tests can access System.Web internals now that System.Web is
InternalsVisibleTo this assembly.
++ Test/System.Web/ChangeLog (working copy)
* AppBrowsersTest.cs: added. Includes tests for Control.Adapter,
Control.ResolveAdapter, Control.TagWriter, and
Control.CreateHtmlTextWriter, when using App_Browsers/*.browser files.
AppBrowsersTest is currently tagged [Ignore], pending a fix for
bug #351878.
* HttpRuntimeTest.cs: added. Includes test for
HttpRuntime.UnloadAppDomain(). Marked [Ignore], pending a fix for
bug #351878.
++ Test/System.Web.UI.Adapters/ChangeLog (revision 0)
* PageAdapterTest.cs: added tests for PageAdapter.
* ControlAdapterTest.cs (ConfigCapabilitiesNotCalled): added test to
ensure that HttpCapabilitiesBase.ConfigCapabilities() is not called
during normal page processing if no files are in App_Browsers.
* ControlAdapterTest.cs: added tests for ControlAdapter.
++ Test/System.Web.UI/ChangeLog (working copy)
* PageTest.cs: add tests for using a PageAdapter.
* ControlTest.cs: moved commented out ResolveAdapter_1 test to
../System.Web/AppBrowsersTest.cs. Fixed typo in test name.
Added Customcontroladapter.Adapter property for use by AppBrowsersTest.
++ Test/System.Web.UI.WebControls.Adapters/ChangeLog (revision 0)
* MenuAdapterTest.cs: added
* WebControlAdapterTest.cs, HierarchicalDataBoundControlAdapterTest.cs,
DataBoundControlAdapterTest.cs, HideDisabledControlAdapterTest.cs: added
++ Test/System.Web.UI.WebControls/ChangeLog (working copy)
* MenuTest.cs (Menu_RenderStaticItems): added tests to check that
result was the same when using the base MenuAdapter as when using
no adapter.
* MenuTest.cs (Menu_RenderStaticItemsWithAdapter): added test
to ensure that MenuAdapter.RenderItem() is called.
* HierarchicalDataBoundControlTest.cs, WebControlTest.cs,
DataBoundControlTest.cs: added test for use of ControlAdapters
when present.
* WebControl.cs: added test for IsEnabled.
++ System.Web/ChangeLog (working copy)
* HttpApplicationFactory.cs: Added support for detecting
App_Browsers/*.browser files and using them to determine capabilities.
Also restart the app if the App_Browsers, App_Code, or App_GlobalResources
directories are created.
* BrowserCapabilities.cs (TagWriter): get value via internal virtual
GetTagWriter() method, which is overridden in nBrowser.Result.
* HttpRequest.cs (BrowserMightHaveSpecialWriter, BrowserMightHaveAdapters):
internal properties added to allow Page and Control methods to avoid
accessing Request.Browser to get browser-specific HtmlTextWriters or
ControlAdapters. Those things only exist when there are App_Browsers
files.
++ System.Web.UI.Adapters/ChangeLog (working copy)
* ControlAdapter.cs: made control field internal so
derived internal classes can access it without using base.Control
which can involved several typecasts.
* PageAdapter.cs: implemented all members.
* ControlAdapter.cs: implemented all members.
* PageAdapter.cs, ControlAdapter.cs: add MonoTODO's.
++ System.Web.UI/ChangeLog (working copy)
* Page.cs (SavePageControlState, LoadPageControlState): save/load
adapter state in 2.0 profile.
* Page.cs (CreateHtmlTextWriter): call Browser.CreateHtmlTextWriter()
in 2.0 profile.
* Page.cs (RenderPage): call CreateHtmlTextWriter() to get the writer
in 2.0 profile.
* Page.cs (DeterminePostBackMode, InitOutputCache,
RenderClientScriptFormDeclaration, InternalProcessRequest,
PageStatePersister): added support for PageAdapters.
* Control.cs (Adapter, ResolveAdapter): implemented. Adapter calls
ResolveAdapter and remembers result. ResolveAdapter checks for adapters
of the Type hierarchy until it finds one.
* Control.cs (SaveViewStateRecursive, LoadViewStateRecursive): save/load
adapter state in 2.0 profile.
* HtmlTextWriter.cs (BeginRender, EndRender): added empty virtual methods
required by 2.0 profile. These are called by corresponding methods of
System.Web.UI.Adapters.ControlAdapter.
* Page.cs, Control.cs: don't access Request.Browser if it couldn't have
any adapters/writers because there are no files in App_Browsers/.
++ Assembly/ChangeLog (working copy)
* AssemblyInfo.cs: made InternalsVisibleTo System.Web.test_net_2_0.dll
to support ControlAdapterTest.ConfigCapabilitiesNotCalled().
++ ChangeLog (working copy)
* System.Web_test.dll.sources: added
System.Web.UI.WebControls.Adapters/MenuAdapterTest.cs
System.Web.UI.WebControls.Adapters/WebControlAdapterTest.cs
System.Web.UI.WebControls.Adapters/HierarchicalDataBoundControlAdapterTest.cs
System.Web.UI.WebControls.Adapters/DataBoundControlAdapterTest.cs
System.Web.UI.WebControls.Adapters/HideDisabledControlAdapterTest.cs
System.Web.UI.Adapters/PageAdapterTest.cs
System.Web.UI.Adapters/ControlAdapterTest.cs
* Makefile (RESOURCE_FILES_2): added
System.Web.Configuration_2.0/RandomRoboBotKeywords.txt
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/PageWithAdapter.aspx
* System.Web.dll.sources: added
System.Web.Configuration_2.0/CapabilitiesBuild.cs
System.Web.Configuration_2.0/CapabilitiesChecksum.cs
System.Web.Configuration_2.0/CapabilitiesResult.cs
System.Web.Configuration_2.0/ICapabilitiesProcess.cs
System.Web.Configuration_2.0/nBrowser/Result.cs
System.Web.Configuration_2.0/nBrowser/NodeTypes.cs
System.Web.Configuration_2.0/nBrowser/Identification.cs
System.Web.Configuration_2.0/nBrowser/File.cs
System.Web.Configuration_2.0/nBrowser/Build.cs
System.Web.Configuration_2.0/nBrowser/Node.cs
System.Web.Configuration_2.0/nBrowser/Exception.cs
++ System.Web.UI.WebControls.Adapters/ChangeLog (working copy)
* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
DataBoundControlAdapter.cs: changed to use ControlAdapter.control
instead of using base.Control or using a new control field.
* MenuAdapter.cs: added internal constructor that takes a Menu
parameter. The constructor is used when writing unit tests.
* MenuAdapter.cs (OnInit, OnPreRender, RenderBeginTag,
RenderContents, RenderEndTag): delegate to base instead of
Control.
* MenuAdapter.cs (LoadAdapterControlState, SaveAdapterControlState,
RaisePostBackEvent, RenderItem): implemented.
* WebControlAdapter.cs (RenderContents): changed to call
control.RenderContents() instead of control.Render().
* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs: added
internal constructor that takes a parameter of the corresponding
Control type. The construct is used when writing unit tests.
++ System.Web.Configuration_2.0/ChangeLog (working copy)
* nBrowser/Result.cs, nBrowser/NodeTypes.cs, nBrowser/Identification.cs,
nBrowser/File.cs, nBrowser/Build.cs, nBrowser/Node.cs,
nBrowser/Exception.cs: added. The code under nBrowser handles *.browser
files. It is based on Owen "Ocean" Brady's code, with the following
changes and improvements. Replaced Result.Adapter
property with AdapterTypeMap property which maps control Type to adapter
Type. Added Result.MarkupTextWriter property. Added overrides for
Result.GetAdapters and Result.GetTagWriter to return MarkupTextWriter
and AdapterTypeMap, resp. Changed tree building algorithm to not
depend on nodes with id="Default" and to inject defaultBrowser nodes
as parents of regular nodes with the same ids. Changed Node.cs to use
Item instead of Add when adding a capability or sample header, so that
values get replaced instead of appended. Added support for reference
nodes (ie. nodes with refID="someID").
* CapabilitiesResult.cs: load RandomRoboBotKeywords.txt resource
using the correct name.
* RandomRoboBotKeywords.txt: added
* HttpCapabilitiesBase.cs (CreateHtmlWriter, Adapters): Added
support for *.browsers. Adapters property calls internal virtual
GetAdapters() method which is overrided in nBrowser.Result
returned by nBrowser code. CreateHtmlWriter uses type specified
by TagWriter property.
++ System.Web.UI.WebControls/ChangeLog (working copy)
* DetailsView.cs, ListControl.cs, DataBoundControl.cs,
FormView.cs, HierarchicalDataBoundControl.cs, WebControl.cs:
added support for using ControlAdapters when present.
* WebControl.cs: fixed implementation of IsEnabled to match
documentation.
* Menu.cs (RenderMenuBody): call Adapter.RenderItem() instead of
RenderMenuItem() if an adapter is present. MenuAdapter.RenderItem()
calls back to new Menu.RenderItem() internal method which calls
RenderMenuItem() with the appropriate parameters.
++ System.Web.Configuration/ChangeLog (working copy)
* HttpCapabilitiesBase.cs: changed to use nBrowser for *.browser
support. Also added internal GetConfigCapabilities_called
flag used by ControlAdapterTest.ConfigCapabilitiesNotCalled() to
test that GetConfigCapabilities() is not called during normal page
processing when there are no files in App_Browsers/.
svn path=/trunk/mcs/; revision=97824
* ClientScriptManager.cs, MasterPageParser.cs, Control.cs,
Page.cs: speed optimization - use String.Concat instead of
String.Format in some cases.
2007-12-13 Marek Habersack <[email protected]>
* Menu.cs, TreeView.cs: optimize use of String.Format in
OnPreRender.
Speed optimization - use String.Concat instead of String.Format in
some cases.
* GridView.cs, DetailsView.cs: optimize use of String.Format in
OnPreRender.
* CheckBox.cs, AccessDataSource.cs, WebColorConverter.cs,
WebControl.cs,TextBox.cs, DropDownList.cs, ValidationSummary.cs,
ListBox.cs, Panel.cs, BaseValidator.cs, LinkButton.cs: speed
optimization - use String.Concat instead of String.Format in some cases.
2007-12-13 Marek Habersack <[email protected]>
* HtmlForm.cs, HtmlButton.cs: speed optimization - use String.Concat
instead of String.Format in some cases.
2007-12-13 Marek Habersack <[email protected]>
* AssemblyResourceLoader.cs: speed optimization - use String.Concat
instead of String.Format in some cases.
2007-12-13 Marek Habersack <[email protected]>
* SessionId.cs:
speed optimization - use String.Concat
instead of String.Format in some cases.
2007-12-13 Marek Habersack <[email protected]>
* SqlProfileProvider.cs, ProfileParser.cs: speed optimization -
use String.Concat instead of String.Format in some cases.
2007-12-13 Marek Habersack <[email protected]>
* ApplicationManager.cs, ApplicationHost.cs,
DefaultVirtualPathProvider.cs: speed optimization - use
String.Concat instead of String.Format in some cases.
svn path=/trunk/mcs/; revision=91230
* Image.cs: fixed management state of Enabled property.
* WebControl.cs: refactoring in management state of Enabled property.
2007-10-30 Igor Zelmanovich <[email protected]>
* ImageTest.cs:
* WebControlTest.cs:
Added new tests.
svn path=/trunk/mcs/; revision=88457
* WebControl.cs: added an internal method, BuildScriptAttribute,
which merges the specified JavaScript code in an attribute, with
the value of that attribute specified by the user.
* CheckBox.cs, DropDownList.cs: AutoPostBack handling makes sure to
preserve user-specified attribute value, if present.
* ListBox.cs, TextBox.cs: AddAttributesToRender calls the base
after doing its job. AutoPostBack handling makes sure to preserve
user-specified attribute value, if present. Fixes bug #327816.
svn path=/trunk/mcs/; revision=86294
* WebControl.cs: Revert r80368, as it wasn't the correct
fix. Fixes bug #81945.
* ListControl.cs: if there are no items in the collection, do not
return an empty ArrayList from GetSelectedIndicesInternal. Fixes
bug #81945 and properly fixes bug #78533.
* ListItemCollection.cs: if there are no items in collection,
return null.
svn path=/trunk/mcs/; revision=81170
* WebControl.cs: if savedState is a Triplet, take the actual state
data from savedState.First. Also make sure that the data is a
Pair. Fixes bug #78533.
svn path=/trunk/mcs/; revision=80368
* Rationalize the user of MonoTODOs.
- Removed all the TODOs that were only overwritten methods
and had no further information.
- Methods that threw exceptions now have the message "Not
implemnted".
- Methods that return some constant are declared like
that.
- Removed a bunch of stale MonoTODOs that had not been
removed.
svn path=/trunk/mcs/; revision=68620
* UI/UserControl.cs: fixed ParseChildren attribute to be compliant to .net
* WebControls/Content.cs:
* WebControls/Label.cs:
* WebControls/ListControl.cs:
* WebControls/MultiView.cs:
* WebControls/WebControl.cs: fixed ParseChildren attribute to be compliant to .net
* HtmlControls/HtmlTable.cs:
* HtmlControls/HtmlTableRow.cs: fixed ParseChildren attribute to be compliant to .net
svn path=/trunk/mcs/; revision=63490
2006-03-07 Chris Toshok <[email protected]>
* Page.cs (InitializeStyleSheet): load the style sheet theme using
ThemeDirectoryCompiler.
(InitializeTheme): load the page's theme using
ThemeDirectoryCompiler.
(InternalProcessRequest): call InitializeTheme after OnPreInit.
(FrameworkInitialize): call InitializeStyleSheet.
(PageTheme,StyleSheetPageTheme): new properties to get the
respective themes.
* Control.cs (ApplyStyleSheetSkin): new method. Calls ApplySkin
on the ControlSkin (if there is one) for this control in the
page's StyleSheetSkin.
(ApplyThemeRecursively): applies the page's theme recursively to
the control hierarchy. Must be done this way because the control
tree is already present when we apply the theme (it has to be,
since theme's override settings).
* PageTheme.cs (GetControlSkin): add internal call to do the
lookup for us.
* PageThemeFileParser.cs: the parser object that represents each
individual skin file.
* PageThemeParser.cs: the parser object that represents the entire
theme directory.
* PageThemeBuilder.cs: this class generates the right exception on
the right event, but it's not hooked up yet.
In System.Web.UI.WebControls:
2006-03-07 Chris Toshok <[email protected]>
* WebControl.cs (EnableTheming): leave the MonoTODO, but implement
by chaining up to base.EnableTheming.
svn path=/trunk/mcs/; revision=57676
2006-03-02 Chris Toshok <[email protected]>
* Control.cs (ApplyStyleSheetTheme): remove the exception, and add
a MonoTODO.
* Page.cs (Theme): implement setter/getter.
(StyleSheetTheme): same.
* PageParser.cs (ProcessMainAttributes): parse the Theme and
StyleSheetTheme attributes.
In System.Web.UI.WebControls:
2006-03-02 Chris Toshok <[email protected]>
* WebControl.cs (SkinID): implement setter/getter, and have them
just chain up to base.SkinID.
In System.Web.Compilation:
2006-03-02 Chris Toshok <[email protected]>
* TemplateControlCompiler.cs (InitMethod): emit an assignment for
SkinID just after the creation of our object, and right after that
call "_ctrl.ApplyStyleSheetSkin (page)".
(CreateAssignStatementsFromAttributes): split out the majority of
this code to CreateAssignStatementFromAttribute, and change this
method to simply a loop over the attribute keys. In the 2.0 case,
skip the SkinID property, since that's handled explicitly in
InitMethod.
* PageCompiler.cs (AddStatementsToInitMethod): emit assignments
for Theme and StyleSheetTheme.
svn path=/trunk/mcs/; revision=57516
* Calendar.cs: remove Console.
* ListBox.cs: the name is the UniqueID, not the ClientID.
* WebControl.cs: Attributes is case insensitive.
svn path=/trunk/mcs/; revision=51148
* 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
* Various places: make sure that the DefaultValue matches the
type. Thanks to Michael for pointing this out.
In future audits, you might want to use the following awk command:
awk '/DefaultValue/ { v=$0; looking = 1; } /public/ && looking &&
!/string/ && !/ int / && !/ bool / { print FILENAME; print v;
print $0; looking = 0; } /public/ && looking { looking = 0; } '
*.cs
The above skips bools, strings and ints as those were fine as we
set them. The bug was on the other ones.
svn path=/trunk/mcs/; revision=49274
* StyleTest.cs: Added tests for CssRegisteredStyle
2005-08-03 Peter Dennis Bartok <[email protected]>
* EditCommandColumnTest.cs: Updated; InitializeCell() passes except
for the missing footer; InitializeCellEdit() has a problem with
the name given to the TextBox controls
2005-08-03 Peter Dennis Bartok <[email protected]>
* EditCommandColumnTest.cs: Enable tests
2005-08-03 Peter Dennis Bartok <[email protected]>
* DataGridPagerStyleTest.cs: Added testcase
2005-07-27 Peter Dennis Bartok <[email protected]>
* StyleTest.cs: Added font-related tests to check for special
Name/Names behaviour
2005-07-27 Peter Dennis Bartok <[email protected]>
* EditCommandColumnTest.cs: Added tests; marked some as NotWorking
until PagedDataSource is not throwing NotImpl
2005-07-27 Peter Dennis Bartok <[email protected]>
* CustomValidatorTest.cs: Added tests
2005-07-27 Peter Dennis Bartok <[email protected]>
* DataGridPagerStyleTest.cs: Added tests
2005-07-26 Peter Dennis Bartok <[email protected]>
* DataGridItemTest.cs: Added tests
2005-07-26 Peter Dennis Bartok <[email protected]>
* DataGridItemCollectionTest.cs: Added tests
2005-07-25 Peter Dennis Bartok <[email protected]>
* StyleTest.cs: Refined tests
2005-07-21 Peter Dennis Bartok <[email protected]>
* CustomValidatorTest.cs: Added
2005-07-21 Peter Dennis Bartok <[email protected]>
* RangeValidatorTest.cs: More test cases
2005-07-20 Peter Dennis Bartok <[email protected]>
* DropDownListTest.cs: Added [ExpectedException] for double select
test
2005-07-20 Peter Dennis Bartok <[email protected]>
* ValidationSummaryTest.cs: Added rendering tests
2005-07-19 Peter Dennis Bartok <[email protected]>
* DropDownListTest.cs: Testcases added
* RangeValidatorTest.cs: Added
* ValidatedControlConverterTest.cs: Added
* ValidationSummaryTest.cs: Added
2005-07-15 Peter Dennis Bartok <[email protected]>
* DropDownListTest.cs: Testcases added
2005-07-14 Peter Dennis Bartok <[email protected]>
* WebColorConverter.cs: Testcases added
2005-07-14 Peter Dennis Bartok <[email protected]>
* TargetConverterTest.cs: Testcases added
2005-07-13 Peter Dennis Bartok <[email protected]>
* FontNamesConverterTest.cs: Testcases added
2005-07-13 Peter Dennis Bartok <[email protected]>
* ListItemCollectionTest.cs: Added
* ListBoxTest.cs: Marked test as not working since it dependes on
ListControl making a call to an obsolete internal method
2005-07-12 Peter Dennis Bartok <[email protected]>
* WebControlTest.cs: Added test for loading/saving of state. Switched
to use Sebastiens GetWriter method
2005-07-11 Peter Dennis Bartok <[email protected]>
* WebControlTest.cs: Added test.
2005-07-07 Peter Dennis Bartok <[email protected]>
* StyleTest.cs: Added test.
2005-07-21 Peter Dennis Bartok <[email protected]>
* PageTest.cs: Added new test file, added exception test for
Request property
2005-07-18 Peter Dennis Bartok <[email protected]>
* ControlTest.cs: Added test file for Control class, initially
contains only IDataBindingsAccessor test
2005-07-26 Peter Dennis Bartok <[email protected]>
* HtmlSelect.cs: Added missing attributes
2005-07-25 Peter Dennis Bartok <[email protected]>
* HtmlForml.cs: Implemented UniqueID (new in sp1)
* HtmlButton.cs, HtmlInputButton.cs, HtmlInputImage.cs: Attribute fixes
2005-07-21 Peter Dennis Bartok <[email protected]>
* Page.cs: Need to throw exception when accessing Request but no
context exists
2005-07-18 Peter Dennis Bartok <[email protected]>
* Control.cs: Added IDataBindingsAccessor interface methods
2005-07-18 Peter Dennis Bartok <[email protected]>
* Control.cs: Added missing IParserAccessor.AddParsedSubObject
interface method
2005-07-18 Peter Dennis Bartok <[email protected]>
* Control.cs:
- Default name for controls on MS.Net is "_ctl" not "_ctrl"
- MS does not append 'a' for auto-generated names
2005-07-11 Peter Dennis Bartok <[email protected]>
* AttributeCollection.cs:
- Changes to match MS behaviour, the "style" attribute is always
added to the list, in addition to being added to the
CssStyleCollection. Also added check for "style" attribute when
setting via index setter
- When "Style" attribute is added, CssStyleCollection is
automatically created
- The style keyword needs to be lowercase
2005-08-25 Peter Dennis Bartok <[email protected]>
* Style.cs: Implemented 2.0 CopyTextStylesFrom(), SetRegisteredCssClass()
and RegisteredCssClass property
2005-08-25 Peter Dennis Bartok <[email protected]>
* Style.cs, TableStyle.cs, TableItemStyle.cs, DataGridPagerStyle.cs:
Load ViewState for derived classes; no public LoadViewState override
exists in those classes
* Style.cs: Added 2.0 IsStyleEmpty method
2005-08-04 Peter Dennis Bartok <[email protected]>
* ListBox.cs: Use WriteXXXX to render HTML, this way it matches MS output
* ListControl.cs: Clear item list before adding data (again)
2005-08-04 Peter Dennis Bartok <[email protected]>
* DataGrid.cs(CreateControlHierarchy): Consider the EditItemIndex when
creating rows
* ListControl.cs(OnDataBinding): Only apply DataTextFormatString to text
if DataTextField is bound
* EditCommandColumn.cs(InitializeCell): MS inserts a between the
two controls in edit mode, lets do the same
2005-08-03 Peter Dennis Bartok <[email protected]>
* EditCommandColumn.cs: No need to offer edit when in edit mode.
Flipped output
2005-08-03 Peter Dennis Bartok <[email protected]>
* WebControl.cs(CopyBaseAttributes): Use Enabled setter to also
set tracking var
2005-08-03 Peter Dennis Bartok <[email protected]>
* DataGridPagerStyle.cs(PageButtonCount): Throw exception on
negative value
2005-08-01 Peter Dennis Bartok <[email protected]>
* WebControl.cs: Track enabled state across sessions
2005-08-01 Peter Dennis Bartok <[email protected]>
* ListControl.cs(OnDatabinding): Value is equivalent to text if
by default
2005-07-27 Peter Dennis Bartok <[email protected]>
* FontInfo.cs:
- Name property now throws exception when set to null
- Names now handles situation where our bit tells us we have
a font, but it's not in the StateBag (null removal)
* RangeValidator.cs: Removed unused vars
2005-07-27 Peter Dennis Bartok <[email protected]>
* EditCommandColumn.cs: Implemented
2005-07-27 Peter Dennis Bartok <[email protected]>
* CustomValidator.cs: Bug fixes (Thanks to Chris for creating the
client side code)
2005-07-27 Peter Dennis Bartok <[email protected]>
* DataGrid.cs: DataGridPagerStyle does not need DataGrid as argument
for it's constructor, so remove it
* DataGridPagerStyle.cs: Removed DataGrid argument from constructor
2005-07-27 Peter Dennis Bartok <[email protected]>
* DataGridPagerStyle.cs: Implemented
* TableItemStyle.cs (MergeWith): Now only sets style bits it owns
* Style.cs: Added Styles enum values for DataGridPagerStyle
2005-07-26 Peter Dennis Bartok <[email protected]>
* DataGridItem.cs: Implemented
2005-07-26 Peter Dennis Bartok <[email protected]>
* DataGridItemCollection.cs: Implemented
2005-07-26 Peter Dennis Bartok <[email protected]>
* FontInfo.cs, CheckBox.cs, RadioButton.cs, ListItemCollection.cs:
Fixed use of literal strings, instead using Consts
* Xml.cs, RegularExpressionValidator.cs, TemplateColumn.cs,
TextBox.cs, RequiredFieldValidator.cs, Repeater.cs, RepeaterItem.cs,
Panel.cs, Literal.cs: Added attributes
* BaseValidator.cs: Added missing override
2005-07-25 Peter Dennis Bartok <[email protected]>
* BaseValidator.cs: Added AssociateControlID (new in sp1), fixed
attributes
* Xml.cs: Fixed base class, attributes
* Button.cs, DataGridColumnCollection.cs, HyperLinkColumn.cs,
Label.cs, ListItem.cs, ListControl.cs, CustomValidator.cs,
CheckBoxList.cs, AdRotator.cs, DropDownList.cs, HyperLink.cs,
DataGrid.cs, ButtonColumn.cs, CompareValidator.cs, Calendar.cs,
ListBox.cs, ImageButton.cs, LinkButton.cs: Attribute fixes
2005-07-25 Peter Dennis Bartok <[email protected]>
* DataGridSortCommandEventArgs: Sealed class
* ButtonColumn.cs, Calendar.cs: Added Attributes
2005-07-25 Peter Dennis Bartok <[email protected]>
* Button.cs, Style.cs, BaseCompareValidator.cs, RangeValidator.cs,
BaseValidator.cs, AdRotator.cs, BoundColumn.cs: Added Attributes
2005-07-25 Peter Dennis Bartok <[email protected]>
* FontInfo.cs, Style.cs, RangeValidator.cs, ListItemCollection.cs,
DropDownList.cs, WebControl.cs, ValidationSummary.cs: Added Attributes
2005-07-22 Peter Dennis Bartok <[email protected]>
* Style.cs (CopyFrom): Reset must go, MS doesn't do it (See tests)
2005-07-22 Peter Dennis Bartok <[email protected]>
* Style.cs (CopyFrom): Reset our styles and don't set bits from
target explicitly, properties will set them
2005-07-21 Peter Dennis Bartok <[email protected]>
* CustomValidator.cs: Initial implementation, still work in progress
2005-07-20 Peter Dennis Bartok <[email protected]>
* DropDownList.cs:
- Implemented RaisePostDataChangedEvent()
- Spewing postback command if AutoPostBack is true
2005-07-20 Peter Dennis Bartok <[email protected]>
* ListItemCollection.cs: Removed obsolete method that's no longer
referenced
2005-07-20 Peter Dennis Bartok <[email protected]>
* DropDownList.cs: Oops. Forgot to implement LoadPostData
* ListItemCollection.cs: Added convenience method to have faster
PostData handling
2005-07-20 Peter Dennis Bartok <[email protected]>
* DropDownList.cs:
- Automatically select the first item if none are selected
- Throw exception if more than one item is selected
2005-07-20 Peter Dennis Bartok <[email protected]>
* ValidationSummary.cs: Implemented rendering
2005-07-19 Peter Dennis Bartok <[email protected]>
* ValidationSummaryTest.cs: Started implementation
* RangeValidator.cs: Implemented
* ValidatedControlConverter.cs: Implemented
* DropDownList.cs: Implemented
2005-07-14 Peter Dennis Bartok <[email protected]>
* WebColorConverter.cs:
- Alpha of 255 is only set if the hex number is exactly 6 digits
- Ben didn't like the catch { throw; } (even though MS documents to
do so)
- Use Invariant Culture for parsing (thanks, Ben)
2005-07-14 Peter Dennis Bartok <[email protected]>
* WebColorConverter.cs: Implemented
2005-07-14 Peter Dennis Bartok <[email protected]>
* TargetConverter.cs: Implemented
2005-07-13 Peter Dennis Bartok <[email protected]>
* FontNamesConverter.cs: Implemented
2005-07-13 Peter Dennis Bartok <[email protected]>
* ListItemCollection.cs: Count can be derived from the array, which
allows us to use a Pair instead of a Triplet and save some space
2005-07-13 Peter Dennis Bartok <[email protected]>
* ListItemCollection.cs: Implemented
* WebControl.cs: Added check for enumeration validity (thanks Jackson)
2005-07-13 Peter Dennis Bartok <[email protected]>
* FirstDayOfWeek.cs: Added
2005-07-13 Peter Dennis Bartok <[email protected]>
* Style.cs (AddAttributesToRender): Don't render attributes if they
contain only their default value
2005-07-12 Peter Dennis Bartok <[email protected]>
* WebControl.cs (AddAttributesToRender): Added ID to rendered
attributes
2005-07-12 Peter Dennis Bartok <[email protected]>
* Style.cs(MergeWith): Handle null styles
2005-07-12 Peter Dennis Bartok <[email protected]>
* Style.cs: Only render font elements if fontinfo object exists
* WebControl.cs:
- Implemented SaveViewState()
- Added loading of Style to LoadViewState
- Implemented IAttributeAccessor methods
2005-07-12 Peter Dennis Bartok <[email protected]>
* WebControl.cs:
- Implemented methods
- Fixed brackets
2005-07-12 Peter Dennis Bartok <[email protected]>
* WebControl.cs: Implemented properties
2005-07-11 Peter Dennis Bartok <[email protected]>
* FontInfo.cs: Now using BenM's fancy internal StateBag methods
2005-07-11 Peter Dennis Bartok <[email protected]>
* FontUnit.cs: Added TypeConverter attribute to class
* FontUnitConverter.cs: Implemented
2005-07-11 Peter Dennis Bartok <[email protected]>
* Style.cs: Handle null constructor argument for bag
2005-07-07 Peter Dennis Bartok <[email protected]>
* FontInfo.cs: Fixed behaviour discrepancies showed by tests
2005-07-07 Peter Dennis Bartok <[email protected]>
* FontInfo.cs: Added and implemented.
* Style.cs: Fixed behaviour discrepancies showed by tests
2005-07-06 Peter Dennis Bartok <[email protected]>
* Style.cs: Added and implemented.
2005-07-06 Peter Dennis Bartok <[email protected]>
* WebControl.cs: Added stub
svn path=/trunk/mcs/; revision=48922
* WebControl.cs: correctly use TagName in RenderBeginTag, ie, if TagKey
is zero, use the TagName no matter its value. Fixes bug #72415.
svn path=/trunk/mcs/; revision=41125
Unit.cs : changed GetTypeFromString() and GetStringFromPixel() to use
switch statements in order to improve performance.
svn path=/trunk/mcs/; revision=31499
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