* 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
* 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
* Control.cs: need to append a "/" to TemplateSourceDirectory
before calling VirtualPathUtility.Combine, in order to get the
correct physical path to the requested file. Combine looks for the
last occurrence of "/" to determine where the relative paths
should be joined.
svn path=/trunk/mcs/; revision=88765
* MinimizableAttributeTypeConverter.cs: don't throw on null value,
call the base class method in that case.
2007-11-03 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: do not call converters specified in
the member custom attributes if 'str' is null in
GetExpressionFromString.
svn path=/trunk/mcs/; revision=88762
* SimpleWebHandlerParser.cs: don't NRE on a null assembly passed
to AddAssembly.
AddAssemblyByName must check the return value of
Assembly.LoadWithPartialName, as the method doesn't throw on
missing assembly, it returns null instead.
svn path=/trunk/mcs/; revision=88761
* 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
* Page.cs, ObjectStateFormatter.cs: use the new
MachineKeySectionUtils class wherever necessary.
2007-11-01 Marek Habersack <[email protected]>
* System.Web.dll.sources: added MachineKeySectionUtils.cs
2007-11-01 Marek Habersack <[email protected]>
* RolePrincipal.cs, MembershipProvider.cs: use the new
MachineKeySectionUtils class wherever necessary.
* FormsAuthentication.cs: use the new MachineKeySectionUtils class
wherever necessary.
GetHexString is a private method again.
2007-11-01 Marek Habersack <[email protected]>
* MachineKeySection.cs: moved all the internal static methods and
properties to MachineKeySectionUtils.cs
* MachineKeySectionUtils.cs: added. This file is included in the
System.Web.Extensions compilation.
The old properties from MachineKeySection.cs became methods.
2007-11-01 Marek Habersack <[email protected]>
* AssemblyResourceLoader.cs: added GetHexString, copied from
FormsAuthentication.cs. Encryption/decryption routines use methods
from the new MachineKeySectionUtils class. This is needed for the
same code to work from both System.Web and System.Web.Extensions.
svn path=/trunk/mcs/; revision=88621
* TemplateParser.cs: add the file pointed to by the Src or
CodeFile attributes to the list of page cache dependencies.
* PageParser.cs, UserControlParser.cs: Add the MasterPage file to
the list of page cache dependencies.
* MasterPageParser.cs: add the source pointed to by VirtualPath to
the list of cache dependencies.
svn path=/trunk/mcs/; revision=88403
* 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
* TemplateParser.cs: removed code that ignored the Async and
AsyncTimeout attributes.
* PageParser.cs: handle the Async and AsyncTimeout attributes
here. Fixes bug #325450
2007-10-17 Marek Habersack <[email protected]>
* PageCompiler.cs: added code to set the AsyncMode and
AsyncTimeout Page properties.
svn path=/trunk/mcs/; revision=87714
* Control.cs: properly configure control visibility in
PreRenderRecursiveInternal. The check must be made by looking at
the Visible value, not at the flags directly. Fixes bug #325303
svn path=/trunk/mcs/; revision=87663
* HttpServerUtility.cs: set a flag when transferring control to
another page.
* HttpContext.cs: added an internal InTransit property to carry
information that HttpServerUtility.Transfer has been used, over to
the target page.
2007-10-01 Marek Habersack <[email protected]>
* Page.cs: do not set IsPostBack to true if we're in transfer from
another page. Fixes bug #329341
svn path=/trunk/mcs/; revision=86716
* RootBuilder.cs: make Foundry settable, but protect the backing
field from being set to null.
2007-09-05 Marek Habersack <[email protected]>
* ThemeDirectoryCompiler.cs: all the skin files compiled in one
batch must share the same component foundry. Under MS.NET if any
earlier .skin file registers a control prefix any later .skin
files may use it without registering.
svn path=/trunk/mcs/; revision=85373
* TemplateParser.cs: don't optimize for case when 'name' is a full
assembly name in AddAssemblyByName. Assembly.Load triggers the
AssemblyResolve event on the current AppDomain if an assembly
isn't found and we use this mechanism to map names like "App_Code"
or "App_GlobalResources" to the real names of those dynamic
assemblies.
svn path=/trunk/mcs/; revision=85322
* TemplateBuilder.cs: check for and store for later use the
TemplateContainerAttribute. Added a nullable property
TemplateInstance to return the value of the attribute.
2007-08-29 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: mark fields corresponding to the
controls as global references.
When control tree is constructed and the parent of the current
builder is a TemplateBuilder marked with the TemplateInstance
attribute set to Single, use the control's ID as the field
name. This makes it possible to refer to controls inside templates
by name instead of by using FindControl.
svn path=/trunk/mcs/; revision=84996
* Page.cs: The following property values are returned from cached
fields instead of looking them up on Context: Application,
Response, Request, Cache (as determined by the tests).
Added a backing field for the Session property.
Session doesn't throw an exception when Context is null - it
silently ignores it and throws a session not available exception.
_context is never used directly, the Context property is used
instead. Fixes bug #82606
2007-08-28 Marek Habersack <[email protected]>
* PageTest.cs: added tests for exceptions that should be thrown
when the following properties are accessed from a Page descendant
that overrides the Context property: Response, Cache, Session. The
Application property test was also added, to check if it is
properly set to null when no request has been served by the page.
svn path=/trunk/mcs/; revision=84951
* Control.cs (InitControlsCache): Make the hash table case insensitive to
make FindControl compatible with MS.net again. Add LAMESPEC note.
svn path=/trunk/mcs/; revision=84694
* ProvidersHelper.cs: HttpApplication.LoadTypeFromPrivateBin
renamed to LoadTypeFromBin.
2007-08-23 Marek Habersack <[email protected]>
* AppCodeCompiler.cs: use HttpApplication.BinDirectoryAssemblies
and HttpApplication.LoadTypeFromBin.
* BuildProvider.cs: use HttpApplication.BinDirectoryAssemblies in
AddAssembliesInBin.
2007-08-23 Marek Habersack <[email protected]>
* ApplicationHost.cs: set AppDomainSetup.PrivateBinPath to "bin"
if running on Windows or with MONO_IOMAP in effect, and to
"Bin:bin" otherwise.
2007-08-23 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: use
HttpApplication.BinDirectoryAssemblies in AddAssembliesInBin and
LoadAssemblyFromBin.
Restore the old logic in GetTypeFromBin, also use
HttpApplication.BinDirectoryAssemblies there.
* TemplateParser.cs: use HttpApplication.BinDirectories to
interate over the list of bin dirs.
Use HttpApplication.BinDirectoryAssemblies in AddAssembliesInBin.
2007-08-23 Marek Habersack <[email protected]>
* HttpApplication.cs: added a static array BinDirs which contains
the common bin directory names we can encounter.
Added internal static property IsRunningOnWindows.
Added internal enumerable property BinDirectories to iterate over
the full paths of the available binary directories.
Added internal enumerable property BinDirectoryAssemblies to
iterate over .dll files in the bin directories.
LoadTypeFromPrivateBin renamed to LoadTypeFromBin.
LoadTypeFromBin uses BinDirectoryAssemblies.
* HttpApplicationFactory.cs: use HttpApplication.BinDirectories to
interate over the list of bin dirs.
svn path=/trunk/mcs/; revision=84684
* ApplicationHostTest.cs: adjust the test for the PrivateBinPath
changes.
2007-08-21 Marek Habersack <[email protected]>
* ProvidersHelper.cs: use HttpApplication.LoadTypeFromPrivateBin
to get the provider settings type.
2007-08-21 Marek Habersack <[email protected]>
* HttpApplicationFactory.cs: watch for changes in all the
private binary directories for the current application domain.
* HttpApplication.cs: turn the PrivateBinPath property into an
internal enumerable, so that code throughout the assembly can
iterate over the list of private bin directories configured for
the application domain.
Added a new internal method LoadTypeFromPrivateBin, for sharing
with other parts of the assembly.
2007-08-21 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: use HttpApplication.PrivateBinPath
enumerator when loading or adding assemblies from binary
directories. Remove unused PrivateBinPath property.
* ControlBuilder.cs: remove unused PrivateBinPath property.
* TemplateParser.cs: use HttpApplication.PrivateBinPath when
adding assemblis and loading types.
2007-08-21 Marek Habersack <[email protected]>
* ApplicationHost.cs: AppDomainSetup.PrivateBinPath should contain
a list of paths relative to AppDomainSetup.ApplicationBase, not a
full path.
We no longer check if the bin directories exist, the user can
create them while the application is running.
2007-08-21 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: get rid of PrivateBinPath property,
it's unused.
2007-08-21 Marek Habersack <[email protected]>
* BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
to look up assemblies in the binary path(s).
svn path=/trunk/mcs/; revision=84589
* MasterPage.cs: use the place holder IDs collection instead of
the placholder collection to see if we have the place holder in
the master page. Fixes bug #82485.
* MasterPageParser.cs: store the content place holder ids in the
internal cache to gain access to them when needed.
2007-08-20 Marek Habersack <[email protected]>
* ContentPlaceHolderBuilder.cs: store place holder id in the
parser's internal place holder id list for later reference. Fixes
bug #82485.
svn path=/trunk/mcs/; revision=84441
* Page.cs: make sure not to ever pass a null value as the value
of the postCollection parameter to control's LoadPostData. The
ProcessPostData's 'data' parameter is no longer passed to
LoadPostData, instead we pass _requestValueCollection or an empty
collection if it is null. The controls should always get all the
request data, no matter if the 'data' parameter is null or
not. Possible fix for bug #82477.
svn path=/trunk/mcs/; revision=84358
* MasterPage.cs: if a ContentPlaceHolder ID is not found in the
associated MasterPage, throw an exception. This is compatible with
what MS.NET does. Fixes bug #82447.
svn path=/trunk/mcs/; revision=84342
* Page.cs: fixed:
- avoid NullRefferenceException from Title property
when Page does not have <head runat="server>,
- scriptManager.ResetEventValidationState () is called from Render.
It allows multiply calling of RenderControl returns the same output.
svn path=/trunk/mcs/; revision=84138
* PagesConfiguration.cs: Use enum for EnableSessionState.
* PagesEnableSessionState.cs: Marked internal on 1.0 profile.
* PageParser.cs: Replace enableSessionState and readOnlySessionState
bools with enum backed field. Move 1.0 profile code for checking value
of EnableSessionState pages config to PagesConfigurationHandler.
Fixes bug #82392 for 1.0 profile.
svn path=/trunk/mcs/; revision=83810
* PageParser.cs: honor web.config enableSessionState
ReadOnly setting instead of overwriting based on default value for
page directive EnableSessionState. Patch from Joel Reed
<[email protected]>, thanks! Fixes bug #82392
svn path=/trunk/mcs/; revision=83807