* HtmlHead.cs: added code to render description and keywords metas
if the corresponding HtmlMeta controls aren't found and the user
set either Description or Keywords properties.
2010-06-01 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: added new virtual method,
AddStatementsToInitMethodBottom and renamed
AddStatementsToInitMethod to AddStatementsToInitMethodTop.
* PageCompiler.cs: code to set Meta{Description,Keywords}
properties, if present.
2010-06-01 Marek Habersack <[email protected]>
* PageParser.cs: added support for MetaDescription and
MetaKeywords main directive attributes
* Page.cs: implemented MetaDescription and MetaKeywords
4.0 properties.
svn path=/trunk/mcs/; revision=158303
* 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
* HtmlForm.cs: reverted part of the previous patch - action is not
set to the result of calling ResolveClientUrl(action)
anymore. Fixes bug #554324
svn path=/trunk/mcs/; revision=146086
* HttpRequest.cs: added internal property ClientFilePath, which
may have a different value than FilePath when virtual path has
been rewritten, but the caller specified that the client paths
should still be constructed using the original url.
* HttpContext.cs: RewritePath always sets Request.FilePath,
Request.ClientFilePath is set only when setClientFilePath is
true. This makes client urls work correctly when url rewriting is
being used.
2009-10-30 Marek Habersack <[email protected]>
* Control.cs: ResolveClientUrl takes base path from
Request.ClientFilePath, so that it works correctly for rewritten
urls.
2009-10-30 Marek Habersack <[email protected]>
* HtmlForm.cs: action is built using Request.ClientFilePath
(instead of Request.FilePath) and ResolveClientUrl, so that it's
correct even if url rewriting is being used.
svn path=/trunk/mcs/; revision=145069
* HtmlSelectBuilder.cs: <option> allows the value of the 'selected'
attribute to be a boolean or the string "selected", which is treated
as "true".
svn path=/trunk/mcs/; revision=143105
* HtmlForm.cs: if application isn't running on /, make sure we
generate the correct relative path for the action form attribute.
svn path=/trunk/mcs/; revision=134176
* 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
* System.Web.UI.HtmlControls/HtmlImage.cs: Do not render the src
attribute if it is null or empty. An empty src attribute makes
browsers download the current page url as the url of the image.
* Test/System.Web.UI.HtmlControls/HtmlImageTest.cs: Add test to
make sure the src attribute is not rendered when it is empty.
svn path=/trunk/mcs/; revision=115158
* HttpApplication.cs: do not cache handlers which aren't
reusable.
2008-08-29 Marek Habersack <[email protected]>
* HtmlHead.cs: call base.OnInit ()
If Page is null, throw an exception.
svn path=/trunk/mcs/; revision=111939
Removed extra check for target attribute in RenderAttributes. Use
string.Empty instead of "", and check string's Length instead of
comparison with "" or string.Empty. Minor code formatting.
* HtmlAnchorTest.cs: Added RenderAttributes tests for empty or null
HRef, Name, Target and Title.
svn path=/trunk/mcs/; revision=105270
* HtmlMeta.cs: render XHTML compliant tag if not in the Legacy
mode. Fixes bug #3544252008-02-06 Marek Habersack <[email protected]>
svn path=/trunk/mcs/; revision=95013
* 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
* HtmlForm.cs: a small DetermineRenderUplevel optimization - the
result is now cached in a nullable boolean variable.
Render the 'onkeypress' attribute if DefaultButton is used. Fixes
bug #339426.
2007-11-06 Marek Habersack <[email protected]>
* Page.cs: formatting
svn path=/trunk/mcs/; revision=88959
* HtmlHeadBuilder.cs: the <meta> tag should be supported as well.
* HtmlTitle.cs: if the tag has any children, or the render method
delegate has been defined, render the children. Output the
contents of Text otherwise. Fixes bug #82102
svn path=/trunk/mcs/; revision=82025
* HtmlInputButton.cs: button of type 'reset' does not invoke
OnServerClick event.
'reset' buttons clear all the controls in the form to their
default values.
svn path=/trunk/mcs/; revision=76912
2007-05-04 Marek Habersack <[email protected]>
* HtmlAnchor.cs: use ResolveClientUrl when generating
attributes. Necessary if the control is in a master page which is
in a different directory than the current page.
2007-05-04 Marek Habersack <[email protected]>
* AdRotator.cs: use the new GetPhysicalFilePath method to look up
the physical path of the ad file.
2007-05-04 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: do not query the parent for
TemplateSourceDirectory if we are generating code for a Master
Page.
2007-05-04 Marek Habersack <[email protected]>
* Control.cs: added an internal method to resolve a physical path
to a file from its virtual path considering the possibility that a
control is placed in a master page, which in turn is referenced
from a directory another than that of master page itself.
svn path=/trunk/mcs/; revision=76665
* HttpCapabilitiesBase.cs: move the User-Agent code to a separate
internal method.
2007-05-01 Marek Habersack <[email protected]>
* HtmlForm.cs: do not use User-Agent directly, we must take
ClientTarget into account.
2007-05-01 Marek Habersack <[email protected]>
* BaseValidator.cs: do not use User-Agent directly, we must take
ClientTarget into account.
2007-05-01 Marek Habersack <[email protected]>
* PageParser.cs: clientTarget comparisons must be case-insensitive
svn path=/trunk/mcs/; revision=76522
* BaseValidator.cs: for TARGET_J2EE:
used Page.Request.Browser to determine RenderUplevel
2007-04-18 Igor Zelmanovich <[email protected]>
* HtmlForm.cs: for TARGET_J2EE:
used Page.Request.Browser to determine RenderUplevel
svn path=/trunk/mcs/; revision=75870
* culevel/culevel.exe.sources: added
* culevel/Makefile (thisdir): added
* culevel/CompileUplevel.cs: added
* Makefile (thisdir): added the culevel subdirectory to the list.
2007-04-17 Marek Habersack <[email protected]>
* Makefile (thisdir): added tools/culevel to the list of
subdirectories - it must be compiled before compiling the classes
since System.Web depends on it.
2007-04-17 Marek Habersack <[email protected]>
* Makefile (System.Web/UplevelHelper.cs): autogenerate the file if
it doesn't exist.
* System.Web.dll.sources: added the System.Web/UplevelHelper.cs
file. It is autogenerated by the culevel compiler.
* UplevelHelperDefinitions.xml: added default uplevel browsers
definition file. This serves as input to the culevel compiler in
the tools directory at the top of the mcs tree.
2007-04-17 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: added HaveRegexp () function to detect
if the browser supports the RegExp class. Use GetElement ()
everywhere.
* WebUIValidation.js: added HaveRegexp () function to detect if
the browser supports the RegExp class.
* webform.js: use WebForm_GetElementById everywhere.
2007-04-17 Marek Habersack <[email protected]>
* HtmlForm.cs: use the new uplevel browser detection code.
2007-04-17 Marek Habersack <[email protected]>
* BaseValidator.cs: use the new uplevel browser detection code.
svn path=/trunk/mcs/; revision=75818
* HtmlInputHidden.cs:
* HtmlSelect.cs:
* HtmlInputText.cs:
* HtmlSelect.cs:
* HtmlInputText.cs:
* HtmlInputImage.cs:
* HtmlInputFile.cs:
* HtmlInputCheckBox.cs:
* HtmlInputRadioButton.cs:
* HtmlInputImage.cs: do not register the control for post back
processing or if it's disabled.
2007-04-11 Marek Habersack <[email protected]>
* ImageButton.cs: implement the Enable property and do not
register for post back if the control isn't enabled.
2007-04-11 Marek Habersack <[email protected]>
* Page.cs: check whether control passed to
RegisterRequiresPostBack implements the IPostBackDataHandler
interface.
svn path=/trunk/mcs/; revision=75594
* 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: for 2.0: refactoring:
prepare infrastructure for Form.SubmitDisabledControls feature
2007-02-19 Igor Zelmanovich <[email protected]>
* HtmlInputCheckBox.cs:
* HtmlInputControl.cs:
* HtmlInputHidden.cs:
* HtmlInputRadioButton.cs:
* HtmlInputText.cs:
* HtmlSelect.cs:
* HtmlTextArea.cs:
fixed: Form.SubmitDisabledControls feature:
not all HtmlInputControl need to be reenabled on client.
svn path=/trunk/mcs/; revision=73102
* HttpContext.cs (GetGlobalResourceObject): remove unused variable.
* StaticFileHandler.cs (ProcessRequest): remove unused variable.
* HttpApplication.cs (ProcessError): Remove unused variable.
2007-01-20 Miguel de Icaza <[email protected]>
* ClientBuildManager.cs: Remove unused variable (this could be a
real problem, we never use the appPhysicalTargetDir)
* AssemblyBuilder.cs: Remove unused field.
* AppResourceFilesCollection.cs: Remove unused field.
* TemplateControlCompiler.cs (GetExpressionFromString): Remove
unused variable.
* AppResourcesCompiler.cs: Remove unused variable.
* AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
parameter.
* PageCompiler.cs: Put InternalCreatePageProperty inside the
NET_2_0 block to eliminate warnings.
2007-01-20 Miguel de Icaza <[email protected]>
* HandlerFactoryConfiguration.cs (LoadType): remove unused
variable.
(ctor): do not assign parent, we do not use it, keep the code for
reference.
2007-01-20 Miguel de Icaza <[email protected]>
* ApplicationManager.cs: Remove unused variable.
(ShutdownAll) remove unused variables.
* ApplicationHost.cs: Protect create_dir lock
2007-01-20 Miguel de Icaza <[email protected]>
* SqlRoleProvider.cs: comment out unused code.
* SqlMembershipProvider.cs: Removed unused variables.
Remove unused variable.
* AnonymousIdentificationModule.cs (ClearAnonymousIdentifier):
remove unused variable. This might be a real bug.
2007-01-20 Miguel de Icaza <[email protected]>
* SessionStateModule.cs: Removed unused variables.
2007-01-20 Miguel de Icaza <[email protected]>
* SessionDictionary.cs: Removed unused variable (dirty).
2007-01-20 Miguel de Icaza <[email protected]>
* XhtmlTextWriter.cs: comment out unused code.
* ThemeProvider.cs: comment out unused code.
* DataSourceView.cs: Comment unused variable.
* ClientScriptManager.cs: Put the expandoAttributes inside the 2.0
code
* Control.cs: Put _templateControl inside the NET_2_0 ifdef
2007-01-20 Miguel de Icaza <[email protected]>
* HtmlHead.cs: comment out unused code, in particular metadata is
commented out because nothing could have triggered its creation.
* HtmlButton.cs: Move declaration of `csm' inside the 1.1 case.
2007-01-20 Miguel de Icaza <[email protected]>
* DataControlFieldCollection.cs (RemoveAt): remove unused
variable.
* RoleGroupCollection.cs (OnValidate): Flag as protected, as it
should not show up.
* RadioButton.cs (RaisePostDataChangedEvent): This method was not
used in 1.0, so put the whole method in 2.0
2007-01-20 Miguel de Icaza <[email protected]>
* WebPart.cs: Remove
* PersonalizableAttribute.cs: Remove extra API that was wrong as well.
2006-11-28 Miguel de Icaza <[email protected]>
* WebPart.cs:
2007-01-20 Miguel de Icaza <[email protected]>
* FileUtils.cs (CreateTemporaryFile): Remove unused variable.
svn path=/trunk/mcs/; revision=71399