* HtmlForm.cs: RenderChildren is slightly more efficient now.
2009-12-22 Marek Habersack <[email protected]>
* Page.cs: form javascript declaration block is rendered only if
necessary. Fixes bug #566541
* ClientScriptManager.cs: added internal property ScriptsPresent
used to determine if it is necessary to render form javascript
declaration block.
Hidden fields block is output without indenting the controls and
without rendering trailing empty line.
Made Write{Begin,End}ScriptBlock slightly faster.
svn path=/trunk/mcs/; revision=148840
- 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
* ClientScriptManager.cs: WriteHiddenFields doesn't add the id
attribute to generated input element in the 1.1 profile. Fixes bug
#508167. Patch from Hubert FONGARNAND
<[email protected]>, thanks!
svn path=/trunk/mcs/; revision=135134
* 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
* 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
* ClientScriptManager.cs: EventStateFieldName is a constant now.
* Page.cs: use full control ids when processing post data. Fixes
bug #317615
svn path=/trunk/mcs/; revision=88932
* ClientScriptManager.cs: eventValidationArray is serialized in an
optimized fashion, so that its serialized form occupies only as
many slots as were actually used. It may result in that an array
of 0 entries will be serialized and then
restored. EnsureEventValidationArray takes that into consideration
now.
svn path=/trunk/mcs/; revision=88759
* ClientScriptManager.cs: added two constants to define start/end
script block comments rendering. 1.1 uses HTML comments, while 2.0
uses a CDATA block.
* Page.cs: render script blocks with start/end comments taken from
the ClientScriptManager constants above.
svn path=/trunk/mcs/; revision=87979
* webform.js:
* WebUIValidation_2.0.js:
refactoring: provide possibility to define relevant functions in different
scopes. (global=window or form element). thus providing a solution for
multi form environment.
2007-07-24 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs:
* Page.cs:
* Page.jvm.cs:
added new internal property IsMultiForm which returns false under
!TARGET_J2EE (Portal). All client scripts are rendered
according this property.
2007-07-24 Igor Zelmanovich <[email protected]>
* BaseValidator.cs: All client scripts are rendered
according IsMultiForm property.
svn path=/trunk/mcs/; revision=82648
* Page.cs:
* ClientScriptManager.cs:
scripts, registered using RegisterClientScriptInclude,
RegisterClientScriptResource and RegisterClientScriptBlock appear on Page
in order matches the order in which the scripts were registered.
svn path=/trunk/mcs/; revision=82189
* ClientScriptManager.cs: render the 'type' attribute in
WriteScript and do not render the 'language' attribute when in
NET_2_0+ mode.
2007-04-06 Marek Habersack <[email protected]>
* HttpUtility.cs: added a constant that contains the default query
parameter character.
ParseQueryString supports queries with both '&' and ';' parameter
separators.
2007-04-06 Marek Habersack <[email protected]>
* HtmlForm.cs: render the 'name' attribute only when in non-xhtml
compliant mode.
2007-04-06 Marek Habersack <[email protected]>
* AssemblyResourceLoader.cs: use the correct query parameter
separator char for the current platform version. Fixes bug
#80633.
svn path=/trunk/mcs/; revision=75480
* Page.cs:
* ClientScriptManager.cs:
refactoring: 'theForm' variable is always declared on client.
'__EVENTTARGET' and '__EVENTARGUMENT' hidden fields is rendered using
RegisterHiddenField API. 'WebForm_OnSubmit' declared as function of form.
svn path=/trunk/mcs/; revision=72830
* WebUIValidation_2.0.js: added SetValidatorContext function, refactored evaluation function init ValidatorOnLoad and Page_ClientValidate
* ClientScriptManager.cs: added array declaration also as member of form in TARGET_J2EE for j2ee portal support.
Added validators context init for GetClientValidationEvent under TARGET_J2EE for j2ee portal support.
* Page.cs: fixed OnFormPostRender, render array declarations after postback script.
svn path=/trunk/mcs/; revision=72465
* Page.cs:
* ClientScriptManager.cs:
client scripts (webform.js, callback.js and
MaintainScrollPositionOnPostBack.js) were merged into one resource file.
2007-02-04 Igor Zelmanovich <[email protected]>
* MaintainScrollPositionOnPostBack.js:
* webform.js:
* callback.js:
merged into one resource file.
svn path=/trunk/mcs/; revision=72408
* 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