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
* RootBuilder.cs: both LINK and META HTML tags must be represented
as instances of HtmlGenericControl. Fixes bug #603541
svn path=/trunk/mcs/; revision=159046
* 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
* PageParser.cs: handle several main directive attributes
specially, as they can have expressions as their values. Fixes bug
#603532
* MainDirectiveAttribute.cs: added - helper class to handle
directive attributes which can take either a value or an
expression.
* BaseParser.cs: IsDirective, IsExpression and IsDataBound methods
moved to here from TemplateControlCompiler.
2010-05-19 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: IsDirective, IsExpression and
IsDataBound methods moved to System.Web.UI.BaseParser.
Made CompileExpression and GetFieldOrProperty methods internal.
* PageCompiler.cs: check several of the Page directive attributes
for expressions. Fixes bug #603532
* AspGenerator.cs, TagAttributes.cs: use IDictionary instead of
Hashtable
svn path=/trunk/mcs/; revision=157519
* AssemblyInfo.cs: this assembly should be signed with winfx.pub
2010-05-15 Marek Habersack <[email protected]>
* HttpResponse.cs: added internal Context property
* HttpRequest.cs: added a setter to the internal Context property
* HttpContext.cs: set request and response Context properties to
'this' in the constructor.
2010-05-15 Marek Habersack <[email protected]>
* Control.cs: implemented 4.0 GetRouteUrl overloads and
GetUniqueIDRelativeTo
2010-05-15 Marek Habersack <[email protected]>
* RouteValueExpressionBuilder.cs: added
* RouteUrlExpressionBuilder.cs: implemented
svn path=/trunk/mcs/; revision=157378
* CollectionBuilder.cs: if a type has more than on indexer, check
all of them for type compliance in GetChildControlType. Fixes bug
#601290. Patch from Kalyanov Dmitry <[email protected]>,
thanks!
svn path=/trunk/mcs/; revision=156714
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* KeyedList.cs: do not implement IStateManager in 4.0
2010-04-28 Marek Habersack <[email protected]>
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* Makefile (LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2010-04-28 Marek Habersack <[email protected]>
* Makefile (common_dirs): added System.Web.ApplicationServices
2010-04-28 Marek Habersack <[email protected]>
* RolePrincipal.cs: class is not sealed in 4.0
* MembershipUser.cs: type forwarded to
System.Web.ApplicationServices in 4.0.
In the 4.0 profile, a MembershipHelper instance is created using
reflection, so that the Membership class and password
encryption/decryption services can be accessed without referencing
System.Web
* MembershipProvider.cs: type forwarded to
System.Web.ApplicationServices in 4.0.
{Encrypt,Decrypt}Password implementations moved to
MembershipHelper.
Added new EncryptPassword overload for 4.0
* MembershipHelper.cs: a helper class to handle password
encryption/decryption and to forward requests for certain
Membership properties in 4.0. It is used also in 2.0 to keep code
cleaner. System.Web.ApplicationServices uses it to access the
Membership class without having to reference System.Web
* MembershipCreateStatus.cs, MembershipCreateUserException.cs,
MembershipPasswordException.cs, MembershipPasswordFormat.cs,
MembershipProviderCollection.cs, MembershipUserCollection.cs,
MembershipValidatePasswordEventHandler.cs, RoleProvider.cs,
ValidatePasswordEventArgs.cs:
types forwarded to System.Web.ApplicationServices in 4.0
* FormsIdentity.cs: class is not sealed in 4.0
svn path=/trunk/mcs/; revision=156264
* PageCompiler.cs: if EnableViewStateMac is set in the page
source, generate relevant code.
2010-04-12 Marek Habersack <[email protected]>
* PageParser.cs: if EnableViewStateMac option is present in the
directive, remember it for later use by the compiler.
* Page.cs: initialize EnableViewStateMac with the default read
from the config.
svn path=/trunk/mcs/; revision=155262
* Control.cs: control cache must be filled using the local
_controls collection instead of the virtual Controls
property. Fixes bug #594238
Check if _controls isn't null before using it.
2010-04-07 Marek Habersack <[email protected]>
* ControlTest.cs: added test for bug #594238
2010-04-07 Marek Habersack <[email protected]>
* Makefile: moved App_* test resources to separate variables -
whatever is contained in those variables is preprocessed before
embedding as resource to include appropriate resource name prefix
(App_Code/, App_GlobalResources/ for now). This is used in WebTest
to automatically populate the relevant directories when running
the test suite.
2010-04-07 Marek Habersack <[email protected]>
* WebTest.cs: introduced concept of prefixed resources and added
an API which handles them - CopyPrefixedResources. All the
manifest resource names are checked for match with the given
prefix, and all the matching ones are copied to the specified
subdirectory of the test directory.
svn path=/trunk/mcs/; revision=154948
* System.Web.UI/PageParser.cs:
* System.Web.UI/Page.cs:
* System.Web.Compilation/PageCompiler.cs: default for
EnableViewStateMac is true. Allow setting it from a @Page
directive.
svn path=/trunk/mcs/; revision=154493
* 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
* ObjectStateFormatter.cs: implemented support for IndexedString
on top of the existing StringFormatter.
* IndexedString.cs: implemented
svn path=/trunk/mcs/; revision=149919
* 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
* TemplateControl.cs: if writer is null in
WriteUTF8ResourceString, use output.Write, not writer.Write. Fixes
bug #547015
svn path=/trunk/mcs/; revision=146199
* TemplateParser.cs: AddImports is called from LoadConfigDefaults
so that it reads configuration from the correct .config file (it
needs to be called after this.VirtualPath has been
initialized). Fixes an issue with MVC apps which put configuration
in Views/web.config etc. Fixes bug #552457
* ControlBuilder.cs, Page.cs: system.web/pages section is not
confined to the top-level web.config
2009-11-10 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: path passed to OpenWebConfiguration
from GetSection does not come from FindWebConfig.
2009-11-10 Marek Habersack <[email protected]>
* BaseCompiler.cs: parser.Imports is a Dictionary <>/Hashtable
now.
* AspComponentFoundry.cs: system.web/pages section is not confined
to the top-level web.config
svn path=/trunk/mcs/; revision=145831
* 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
* ObjectStateFormatter.cs: do not use a type converter to
serialize an object if the converter is an instance of
TypeConverter itself - its reported capability of converting to
string is not useful here.
svn path=/trunk/mcs/; revision=144894
* ObjectStateFormatter.cs: if a type is associated with a type
converter, do not check if the converter can convert FROM the type
in question, as this is implied. Fixes bug #545979
svn path=/trunk/mcs/; revision=143967
2009-10-09 Marek Habersack <[email protected]>
* Control.cs: implemented the LoadViewStateByID property as well
as saving/restoring the view state by control's ID.
svn path=/trunk/mcs/; revision=143855
- 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
* TemplateParser.cs: FindNamespaceInAssembly must catch
ReflectionTypeLoadException so that it doesn't break on invalid
assemblies.
svn path=/trunk/mcs/; revision=141962
* PageParser.cs: 2.0 profile takes advantage of the inputFile
parameter to GetCompiledPageInstance. A check is made whether the
file pointed to by this parameter is inside the application's
virtual path and if not, the compilation request is assumed to
refer to a fake location. Part of fix for bug #463813
2009-08-24 Marek Habersack <[email protected]>
* PageBuildProvider.cs: MapPath now takes a VirtualPath
instance. Part of fix for bug #463813
* BuildManager.cs: public APIs which take virtual path strings as
their parameters got internal counterparts accepting a VirtualPath
instance in place of string. Part of fix for bug #463813
* GenericBuildProvider.cs:
MapPath now takes a VirtualPath instance. Part of fix for bug
#463813
2009-08-24 Marek Habersack <[email protected]>
* SoapDocumentationHandler.cs: get rid of the ugly fake virtual
path hack when creating the helper page. Part of fix for bug
#463813
2009-08-24 Marek Habersack <[email protected]>
* VirtualPath.cs: Added new constructor which takes virtual and
physical paths as well as a boolean marking the instance as
referring to a fake location. Part of fix for bug #463813
svn path=/trunk/mcs/; revision=140548
* ControlBuilder.cs: Location property makes a copy of assigned
ILocation now.
2009-08-20 Marek Habersack <[email protected]>
* ControlAdapter.cs: check if Control isn't null before using it.
CreateChildControls () must forward call to the control. Fixes bug
#517172
2009-08-20 Marek Habersack <[email protected]>
* ControlAdapterTest.cs: added test for bug #517172
svn path=/trunk/mcs/; revision=140299
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/DuplicateControlsInClientComment.aspx
2009-08-18 Marek Habersack <[email protected]>
* ControlBuilder.cs: Location property makes a copy of assigned
ILocation now.
2009-08-18 Marek Habersack <[email protected]>
* AspParser.cs: added a constructor which creates an internal
parser, nested within the outer one, and adjusts its ILocation
members to report correct locations in the outer parser for better
error reporting. Inner parser also returns the outer's FileText,
if available.
* AspGenerator.cs: restored part of r138474 reverted in r138657,
r138658 and r138659 to fix bug #525104
BuilderLocation creates a copy of Location for its own use (since
the ILocation passed is actually AspParser, the line numbers
change between creating a BuilderLocation and using its Location
member).
The end of tag, expression and client comment regular expressions
now use lazy quantifiers. This fixes bugs #525104 and #517656
Client side comment blocks aren't ignored anymore, they are parsed
just as the other parts of the document. Fixes bug #524358
2009-08-18 Marek Habersack <[email protected]>
* JavaScriptSerializer.cs: read converters from the config only if
explicitly requested.
2009-08-18 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added test for bug #525104 and
improved test for bug #517656
svn path=/trunk/mcs/; revision=140161
* ControlBuilder.cs: when CreateSubBuilder is called on a builder
which is supposed to treat its children as properties and the
default property builder is defined, first check if the tag which
has just been parsed isn't a template property. If it is, don't
use the default property builder, instead create a template
property builder directly. Fixes bug #527753
svn path=/trunk/mcs/; revision=139895
* AspGenerator.cs:
Check for duplicate control IDs at the end of parse. Fixes bug
#524358
2009-07-23 Marek Habersack <[email protected]>
* ControlBuilder.cs: added an internal helper property
IsNamingContainer.
2009-07-23 Marek Habersack <[email protected]>
* HttpException.cs: if an exception is processed which refers to
internal "files", don't show the internal name.
svn path=/trunk/mcs/; revision=138521
* SimpleWebHandlerParser.cs: make sure to ignore invalid bin/
assemblies in AddAssembliesInBin and GetTypeFromBin.
svn path=/trunk/mcs/; revision=138245
* TemplateParser.cs: AddAssembliesInBin (1.1 profile) tries to
load every assembly in order to see if it's a valid one. All bad
dll image errors are silently ignored. Fixes bug #315816
svn path=/trunk/mcs/; revision=136089
* VirtualPathUtility.cs: IsValidVirtualPath no longer uses
WebConfigurationManager.GetSection to retrieve the verification
setting. Instead, the setting is retrieved in the static
constructor.
* HttpRequest.cs: ApplyUrlMapping must not use
WebConfigurationManager.GetSection as it would cause a recursive
call loop. Code to detect whether url mappings are in effect has
been moved to a static constructor.
2009-06-05 Marek Habersack <[email protected]>
* Page.cs: InitializeTheme uses WebConfigurationManager.GetSection
to retrieve page theme name. GetWebApplicationSection cannot be
used because the system.web/pages section is valid also in
subdirectories. Fixes bug #510302
2009-06-05 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: OpenWebConfiguration caches
configurations with a key generated from all the parameters passed
to it, not just from path.
Added internal GetSection method which takes HttpContext as its
third parameter - used in calling OpenWebConfiguration.
FindWebConfig is no longer used in GetSection - it breaks handling
of <location> elements in config files. Fixes bug #510302
svn path=/trunk/mcs/; revision=135558
* 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
* ListItem.cs: when tracking view state is turned on after
attributes have been set, make sure that the associated state bag
begins tracking state and that all of its existing items are
marked as dirty. Do the same after loading view state. Fixes bug
#507836
2009-05-29 Marek Habersack <[email protected]>
* StateBag.cs: made SetDirty (bool) available on 1.1 as
internal. Fixes bug #507836
svn path=/trunk/mcs/; revision=135057
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ExpressionInListControl.aspx
2009-05-10 Marek Habersack <[email protected]>
* AspGenerator.cs: keep processing the tag if it is not a server
one and contains expressions and no code render blocks.
2009-05-10 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added a test for expressions in
list control items.
svn path=/trunk/mcs/; revision=133861
* TemplateParser.cs: PageParserFilterType uses
HttpApplication.LoadType so that it is able to load the filter
from App_Code or with not fully qualified type names.
svn path=/trunk/mcs/; revision=133606
* ThemeDirectoryBuildProvider.cs: use new AspGenerator constructor
which takes AspComponentFoundery as its
parameter. AspGenerator.RootBuilder isn't initialized until after
the parser is initialized.
* TemplateControlCompiler.cs: make sure to call
ProcessGeneratedCode on each instance of ControlBuilder after it's
fully generated. Fixes bug #500075
* TemplateBuildProvider.cs: moved the directive regex to
AspGenerator
* BaseCompiler.cs: added two internal properties, BaseType and
DerivedType, which are used in calls to
ControlBuilder.ProcessGeneratedCode. Fixes bug #500075
* AspGenerator.cs: implemented a work around for our parser
limitation which is unable to extract the page/control's base type
before parsing the actual file contents. This is necessary to
support ASP.NET MVC's "generic" Inherits attribute. The reason we
need to find out what the base type is before parsing the file is
that we need to look at the type's custom attributes to see if a
root control builder type is specified (which is what ASP.NET MVC
does) and, if yes, use it instead of the default type. Fixes bug
#500075
2009-05-04 Marek Habersack <[email protected]>
* TemplateParser.cs: take RootBuilder from the associated
generator.
Allow the main page directive to be added twice if the parser
needs it. Used by AspGenerator when extracting the inherited type
name before actual parsing. Fixes bug #500075
* FileLevelControlBuilderAttribute.cs,
FileLevelPageControlBuilder.cs, FileLevelUserControlBuilder.cs:
implemented
* ControlBuilder.cs: added a new internal property,
DataBindingMethod.
Implemented ProcessGeneratedCode.
svn path=/trunk/mcs/; revision=133500