* 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
* 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
* 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
* TreeView.js: removed nodeText parameter from the JS calls.
* TreeView.cs: encode | characters into U+007C, so that
RaiseCallbackEvent doesn't get confused.
Removed nodeText parameter from the JS calls.
svn path=/trunk/mcs/; revision=131196
* TreeNode.cs: reset the path data for all child nodes too.
* TreeView.cs: HtmlAttribute encode the node text. When rebuilding the
node tree, set the correct index for the nodes so that the Path is
correct.
svn path=/trunk/mcs/; revision=131186
* HttpRuntime.cs: added a new internal static property
IsDebuggingEnabled
* HttpContext.cs: IsDebuggingEnabled now calls
HttpRuntime.IsDebuggingEnabled
2009-04-06 Marek Habersack <[email protected]>
* Page.cs: ProcessRaiseCallbackEvent and ProcessGetCallbackResult
now return full exception trace if one is caught and we're running
in debugging mode.
2009-04-06 Marek Habersack <[email protected]>
* TreeView.js: TreeView_ToggleExpand now takes more parameters - a
full definition of treeview's node contents.
Added new function, TreeView_PopulateNode, which partially takes
over role of the PopulateNode function generated in
TreeView.OnPreRender (see below). Fixes bug #492307
* TreeView.cs: RaiseCallbackEvent needs to recreate the event
target's parental tree all the way from the root to the node and
populate only the leaf (requested) node. This avoids calling the
TreeNodePopulate handler more times than needed. Fixes bug #492307
OnPreRender: moved the script code to constants and the script
body is now generated using StringBuilder instead of a series of
String.Format calls.
GetClientExpandEvent: adjusted code for new TreeView JavaScript
API.
svn path=/trunk/mcs/; revision=131137
* 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
* TreeView.cs: when TreeView is displaying a site map and there is
no node selected by the user, select the node corresponding to the
current page, if any.
svn path=/trunk/mcs/; revision=109040
* 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
2007-05-09 Marek Habersack <[email protected]>
* TreeNodeStyleCollection.cs: do not set font's underline flag to
false, set it to its own value instead.
* TreeView.cs: if level style exists and has ChildNodesPadding
set, it takes precedence over the node style setting (if any).
svn path=/trunk/mcs/; revision=77002
* TreeView.cs: children padding is rendered only before and after
the children are rendered, not between them. Also, render padding
only if there are any nodes to follow the current one.
svn path=/trunk/mcs/; revision=76905
* TreeViewTest.cs: revert r76541.
2007-05-03 Marek Habersack <[email protected]>
* TreeView.cs: revert r76488, it wasn't entirely correct. I need
to investigate the special cases it solved a bit more.
svn path=/trunk/mcs/; revision=76597
* Page.cs:
* ClientScriptManager.cs:
fixed RegisterClientScriptInclude: all includes that was registered before
rendering are rendered at begin form.
2007-02-04 Igor Zelmanovich <[email protected]>
* Panel.cs: fixed: reverted r71441.
* TreeView.cs: used internal RegisterWebFormClientScript API
to cause the relevant script be included.
svn path=/trunk/mcs/; revision=72258
* TreeView.cs:
ResolveClientUrl used with LineImagesFolder, ExpandImageUrl,
CollapseImageUrl and NoExpandImageUrl properties.
svn path=/trunk/mcs/; revision=70170