* Menu.cs: fixed skip link rendering (no child controls are added
in the process, writing directly to HtmlTextWriter). Fixes tests
for 4.0
If StaticSubMenuIndent equals Unit.Empty on 4.0, default to using
16px as the value of the margin-left CSS attribute.
Fixed all failing tests (both 2.0 and 4.0)
svn path=/trunk/mcs/; revision=160369
* BoundField.cs: implemented HtmlEncodeFormatString property
(3.5+) and modified the way FormatDataValue works accordingly.
svn path=/trunk/mcs/; revision=160312
* ListBox.cs, CheckBoxList.cs, ListControl.cs: VerifyMultiSelect
is not part of the official API. MultiSelect capability validation
is performed using an internal virtual method MultiSelectOk ().
* BaseDataList.cs: OnPagePreLoad is not part of the official API
* BaseDataBoundControl.cs, BaseDataList.cs, DataListItem.cs,
ValidationSummary.cs: implemented 4.0 SupportsDisabledAttribute
property.
svn path=/trunk/mcs/; revision=160305
* Control.cs: moved 4.0 ClientID code to a separate method, so
that the ID_SET flag isn't set when necessary.
2010-07-13 Marek Habersack <[email protected]>
* Wizard.cs: wizard table doesn't contain any instances of
HtmlAnchor or Image controls. Moved rendering of the skip link
anchor to the TableCellNamingContainer class, which does that in
RenderChildren by directly writing to the passed writer. Fixes 4.0
rendering and all the failing Wizard tests.
svn path=/trunk/mcs/; revision=160304
* ImageMap.cs: implemented missing Enabled property (2.0+)
RaisePostBackEvent must be protected and virtual (2.0+)
NavigateUrl is ignored if the control is disabled (4.0)
svn path=/trunk/mcs/; revision=160053
* TreeView.cs:
When using registered CSS classes, the node style must use them in
reverse order.
More 4.0 test updates (disabled some Menu tests until its rendering is updated)
svn path=/trunk/mcs/; revision=160003
* HyperLink.cs: the associated image is not rendered using the
Image control.
4.0 updates for several tests (HTML rendering changes)
svn path=/trunk/mcs/; revision=159995
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
* CheckBoxListTest.cs: added test for bug #600415
2010-04-28 Marek Habersack <[email protected]>
* CheckBoxList.cs: do not modify list item status in LoadPostData
when the list control is disabled.
If an item is selected and it was unchecked by the user, deselect
it. Fixes bug #600415
svn path=/trunk/mcs/; revision=156312
* ImageField.cs, CheckBoxField.cs: OnDataBindField must expect
sender to be something else than DataControlFieldCell. Fixes bug
#595568
2010-04-13 Marek Habersack <[email protected]>
* CheckBoxFieldTest.cs: added test for bug #595568
svn path=/trunk/mcs/; revision=155270
* FormParameter.cs, CookieParameter.cs, ProfileParameter.cs,
QueryStringParameter.cs, SessionParameter.cs: implemented
constructor overloads which take DbType as one of the arguments.
svn path=/trunk/mcs/; revision=154894
* FormView.cs: do not show the pager if PagerSettings.Visible is
false. Fixes bug #578863
2010-04-01 Marek Habersack <[email protected]>
* FormViewTest.cs: added test for bug #578863
svn path=/trunk/mcs/; revision=154631
* GridView.cs: main table must be created and added to the
controls collection before any OnRowCreated event is fired.
svn path=/trunk/mcs/; revision=154386
* XmlDataSource.cs: reload document when one of Data, DataFile,
Transform or TransformFile properties is set. Fixes bug
#585968. Fix based on patch from Jeffrey Alvarez
<[email protected]>, thanks.
svn path=/trunk/mcs/; revision=153167
* BuildManager.cs: do less work in the static constructor
2010-03-04 Marek Habersack <[email protected]>
* RuntimeHelpers.cs: added. Contains methods moved here from
HttpRuntime, so that initialization sequence of various objects is
independent of HttpRuntime.
2010-03-04 Marek Habersack <[email protected]>
* HttpRuntime.cs: do less work in the static constructor. Most of
the code was moved to System.Web.Util.RuntimeHelpers. Properties
which have been moved: MonoVersion, RunningOnWindows,
CaseInsensitive, IsDebuggingEnabled
Also:
- hushed some compiler warnings
- various classes now use RuntimeHelpers instead of HttpRuntime
svn path=/trunk/mcs/; revision=153038
* TreeViewTest.cs: added test for bug #580692
2010-02-18 Marek Habersack <[email protected]>
* TreeView.cs: RegisterStyle must copy CssClass in addition to
other style properties. Fixes bug #580692
svn path=/trunk/mcs/; revision=151964
* Parameter.cs: added missing 3.5 APIs - constructors taking
DbType as one of the parameters, ConvertDbTypeToTypeCode,
ConvertTypeCodeToDbType and GetDatabaseType. Fixes bug #567850
2010-01-18 Marek Habersack <[email protected]>
* ParameterTest.cs: added tests for ConvertDbTypeToTypeCode,
ConvertTypeCodeToDbType and constructors taking DbType as one of
the parameters.
svn path=/trunk/mcs/; revision=149778
* ChangePassword.cs: BaseChangePasswordContainer forwards
EnsureChildControls call to its owner, so that finding controls in
the container works correctly.
2010-01-15 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ChangePasswordContainer_FindControl.aspx
2010-01-15 Marek Habersack <[email protected]>
* ChangePasswordTest.cs: added test for looking for controls in
ChangePassword template containers.
svn path=/trunk/mcs/; revision=149631
* 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
* TreeNodeTest.cs: added test for a situation when a
node already contains children when the PopulateOnDemand property
is set.
2009-11-16 Marek Habersack <[email protected]>
* TreeNodeCollection.cs: whenever a node is added, let the owner
know about it.
* TreeNode.cs: added internal property HadChildrenBeforePopulating
which is used to let TreeView know about an error condition where
a populate-on-demand node contains children added outside the
OnTreeNodePopulate event
* TreeView.cs: if a node has any child nodes and PopulatOnDemand
is set, throw an exception from RenderNode. This is the behavior
of .NET
svn path=/trunk/mcs/; revision=146275
* TableRowCollection.cs: added .NET compatibility NREX throws to
several methods.
Whenever a row is added/removed, its Container property is
set. Fixes bug #551666
* TableRow.cs: introduced an internal property, Container, which
is set by TableRowCollection whenever this row is added/removed
to/from the collection. This allows the row to notify the
collectio and, in consequence, collection owner that TableSection
has been set and thead/tbody/tfoot elements need to be
generated. Fixes bug #551666
2009-11-13 Marek Habersack <[email protected]>
* GridViewTest.cs: added test for bug #551666
2009-11-13 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/TableSections_Bug551666.aspx
Test/mainsoft/NunitWebResources/TableSections_Bug551666.aspx.cs
svn path=/trunk/mcs/; revision=146126
* PasswordRecovery.cs:
{Question,Success,UserName}TemplateContainer must all be populated
the first time the property is accessed, so that calling
FindControl on the container returns valid and expected
results. If the associated template is not defined, though,
populating is postponed till CreateChildControls is called -
that's where default, empty, template will be created. This is
required to fix YetAnotherForum's password recovery control.
Mail template used in SendPasswordByMail must match the one used
in .NET (it has to end with a newline) as YAF parses the message
to retrieve user name and password and breaks if the last line
doesn't end with a newline character.
svn path=/trunk/mcs/; revision=145824
* PasswordRecovery.cs: mail message replacements should include <%
Password %> and <% UserName %> and matching should be
case-insensitive. Fixes bug #545370
svn path=/trunk/mcs/; revision=145109
* ListControl.cs: OnDataBinding must call base implementation
before performing the binding, so that DataSource can be assigned
from within the handler.
svn path=/trunk/mcs/; revision=144947
* WebColorConverter.cs: Delegate ConvertFrom to
ColorTranslator.FromHtml, it is correctly implemented and knows
many more tricks.
svn path=/trunk/mcs/; revision=144016
* WebColorConverter.cs: don't use a dictionary to check for valid
color names, use Color.IsKnownColor instead. Update for bug
#546173 fix.
Added more CSS2 color name mappings.
svn path=/trunk/mcs/; revision=143990
* WebColorConverter.cs: when converting from color name, check if
the returned color's name is a member of the
System.Drawing.KnownColor enumeration to test for error condition,
as some colors might be #000000. Preserve the old error check as a
fallback only.
Map "captiontext" and "background" color names to
"ActiveCaptionText" and "Desktop", respectively, before passing
them to Color.FromName (). Fixes bug #546173
svn path=/trunk/mcs/; revision=143972
- made sure invariant culture is used with String.ToLower, String.ToUpper and String.Compare
- replaced all calls to CultureInfo.InvariantCulture with a reference to a static field System.Web.Util.Helpers.InvariantCulture
svn path=/trunk/mcs/; revision=143587