* DataSourceView.cs: refactoring: Update, Insert methods:
exception is re-thrown from catch scope.
It allows actual call stack be shown
svn path=/trunk/mcs/; revision=77740
* TemplateControl.cs: implemented the 3-parameter overloads of
GetLocalResourceObject and GetGlobalResourceObject.
svn path=/trunk/mcs/; revision=77440
* TemplateParser.cs: refactoring - use HttpApplication.LoadType to
actually look up types.
* ControlBuilder.cs: as above
2007-05-15 Marek Habersack <[email protected]>
* BuildProviderCollection.cs: refactoring - use
HttpApplication.LoadType to actually look up the type.
* HttpHandlerAction.cs: as above
* WebConfigurationHost.cs: refactoring - moved the LoadType to
HttpApplication to share the code between 1.1 and 2.0 profiles.
2007-05-15 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: refactoring - use
HttpApplication.LoadType to look up types.
2007-05-15 Marek Habersack <[email protected]>
* HttpApplication.cs: refactoring - moved LoadType from
WebConfigurationHost here and made it internal static, in order to
make the code avaliable from all the places where extended type
loading is required.
svn path=/trunk/mcs/; revision=77396
* Table.cs: render rows, not controls
* HyperLink.cs: RenderContents must check if the render method
delegate is present and, if yes, call the base RenderContents.
* LinkButton.cs: as above.
* Label.cs: as above.
* TableCell.cs: as above.
This change makes the HeaderTemplate in the Wizard control work.
2007-05-10 Marek Habersack <[email protected]>
* Control.cs: small formatting change
svn path=/trunk/mcs/; revision=77164
* CollectionBuilder.cs: formatting changes
* ControlBuilder.cs: if a control enables children as properties,
has a default property and parser encounters a child tag/container
with the default property name, discard the default property
builder in order to avoid invalid sub builder invocation. An
example is: <asp:DropDownList><Items></Items></asp:DropDownList>
Formatting changes.
When checking for empty string, use Length not comparison with ""
svn path=/trunk/mcs/; revision=76995
* CssStyleCollection.cs: put the style in the bag each time a key
is set, otherwise resetting of a key has no effect on rendered
style.
svn path=/trunk/mcs/; revision=76930
* TemplateParser.cs: added support for implicit language
detection. If the language isn't set explicitly in the Page
directive, the language value taken from the configuration
considered to be implicit - that is, it can be overwritten by the
first <script> with the runat="server" and language="xx" sets the
language for the parser. This makes it possible to have the
default language set to "C#" and the inline code in, e.g.,
VisualBasic.
2007-05-07 Marek Habersack <[email protected]>
* AspGenerator.cs: if the parser's language is implicit (i.e. set
from the default configuration), the first script with the
language attribute present sets the language of the parser.
svn path=/trunk/mcs/; revision=76870
* ControlBuilder.cs: when mapping types, catch casses of missing
original and mapped types.
If mapped type doesn't derive from the original type, throw an
exception. Fixes bug #81553.
svn path=/trunk/mcs/; revision=76855
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
* CssStyleCollection.cs: optimization:
used StringBuilder instead string to hold value.
When added key that not exists in collection, value is recalculated by
appending required key to existing value.
svn path=/trunk/mcs/; revision=76619
* Control.cs: ResolveClientUrl: optimization.
if basePath is the same as TemplateSourceDirectory
releativeUrl is returned as is.
* ControlTest.cs: added new test.
svn path=/trunk/mcs/; revision=76564
* 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
* AspComponentFoundry.cs: formatting changes.
AssemblyFoundry looks for the specified namespace+type in the
top-level assemblies if necessary.
2007-04-27 Marek Habersack <[email protected]>
* TemplateControlParser.cs: 2.0 allows 'Namespace' without the
'Assembly' attribute on tag prefix registration.
* TemplateParser.cs: do not rely on assembly name being not null.
svn path=/trunk/mcs/; revision=76364
attribute. Fixed part of bug #81399.
* BaseCompiler.cs: On 2.0, when ClassName attribute contains namespace
then use it instead of the default ASP namespace. Fixes part of bug
#81399.
svn path=/trunk/mcs/; revision=75909
* 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
* PagesSection.cs: provide appropriate default value for the
asyncTimeout setting.
2007-04-06 Marek Habersack <[email protected]>
* Page.cs: defaults for ViewStateEncrptionMode and AsyncTimeout
are read from the pages section, if found.
* TemplateControlParser.cs: added support for loading
pages/controls defaults from web.config even if the page/control
does not have its corresponding directive.
Added support for reading the CompilationMode attribute.
* PageParser.cs: added support for loading pages/controls defaults
as above. Fixes bug #80915.
Added support for reading the maxPageStateFieldLength setting.
Added support for reading the pageParserFilter setting.
svn path=/trunk/mcs/; revision=75475
* TemplateControl.cs: make local resources work with master
pages - use the AppRelativeVirtualPath for resource resolution.
svn path=/trunk/mcs/; revision=74976
* TemplateParser.cs: support the meta:resourcekey attribute in
Page and Control directives. Fixes bug #81204.
2007-03-26 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: refactor assining properties from
resources a bit to support pages and user controls. Fixes bug
#81204.
svn path=/trunk/mcs/; revision=74972
* TemplateParser.cs: Added support for the CodeFileBaseClass directive. Fixes bug #81132
2007-03-21 Marek Habersack <[email protected]>
* BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
AssignAppRelativeVirtualPath if the attribute was defined.
svn path=/trunk/mcs/; revision=74764
* TemplateControlCompiler.cs: added support for setting custom
attributes of a base class from the Page or Control directive
attributes.
2007-03-21 Marek Habersack <[email protected]>
* UnknownAttributeDescriptor.cs: an internal helper class for
custom directive attributes support.
* BaseParser.cs: ThrowParseException can now take variadic
parameters, for convenience.
* TemplateParser.cs: add support for custom attributes for the
Page and Control directives.
2007-03-21 Marek Habersack <[email protected]>
* System.Web.dll.sources: added UnknownAttributeDescriptor.cs
svn path=/trunk/mcs/; revision=74734