Commit Graph
1169 Commits
Author SHA1 Message Date
Marek Habersack d8838a6414 This commit introduces a few 4.0 rendering changes which break some tests. The broken tests
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
2010-07-02 19:12:31 +00:00
Marek Habersack 7e02dfbdc9 Fixes to a bunch of unit tests which would fail when running on .NET and few updates to
our system.web controls.

svn path=/trunk/mcs/; revision=159495
2010-06-24 12:55:00 +00:00
Marek Habersack 63cc5053cc 2010-06-17 Marek Habersack <[email protected]>
* RootBuilder.cs: both LINK and META HTML tags must be represented
	as instances of HtmlGenericControl. Fixes bug #603541

svn path=/trunk/mcs/; revision=159046
2010-06-17 00:56:12 +00:00
Marek Habersack 4a49acbd3b 2010-06-02 Marek Habersack <[email protected]>
* ViewStateMode.cs: added

	* Control.cs: implemented 4.0 ViewStateMode

svn path=/trunk/mcs/; revision=158368
2010-06-02 21:36:29 +00:00
Marek Habersack 0ada47adf6 2010-06-02 Marek Habersack <[email protected]>
* Page.cs: implemented 4.0 properties AutoPostBackControl and
	RouteData

svn path=/trunk/mcs/; revision=158367
2010-06-02 21:36:20 +00:00
Marek Habersack 6a4765982a Don't link against System.Design
svn path=/trunk/mcs/; revision=158361
2010-06-02 19:24:32 +00:00
Marek Habersack 15e158a0e1 - updated obsolete types/members
- added missing type/member attributes
- use generic types in Page wherever possible

svn path=/trunk/mcs/; revision=158360
2010-06-02 19:04:08 +00:00
Marek Habersack 0b08553dbc 2010-06-01 Marek Habersack <[email protected]>
* 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
2010-06-01 22:01:28 +00:00
Marek Habersack 6193eeb004 2010-05-19 Marek Habersack <[email protected]>
* DataSourceCacheDurationConverter.cs: implemented. Fixes bug
	#603083

svn path=/trunk/mcs/; revision=157547
2010-05-19 12:54:23 +00:00
Marek Habersack 5411dd0e2a 2010-05-19 Marek Habersack <[email protected]>
* 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
2010-05-19 01:28:09 +00:00
Marek Habersack fbbf51a5e4 2010-05-14 Marek Habersack <[email protected]>
* 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
2010-05-15 02:29:09 +00:00
Marek Habersack 36571ed72b 2010-05-05 Marek Habersack <[email protected]>
* 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
2010-05-05 09:34:46 +00:00
Marek Habersack 7b822f7ca7 ChangeLog update
svn path=/trunk/mcs/; revision=156452
2010-04-29 20:57:28 +00:00
Marek Habersack b7c1796077 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]>

	* 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
2010-04-27 22:49:20 +00:00
Marek Habersack 3f81315ae9 2010-04-12 Marek Habersack <[email protected]>
* 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
2010-04-12 19:37:54 +00:00
Marek Habersack ad322714f6 2010-04-07 Marek Habersack <[email protected]>
* 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
2010-04-07 13:14:11 +00:00
Marek Safar 384d53767e 2010-04-06 Marek Safar <[email protected]>
* FileLevelControlBuilderAttribute.cs: Use reference comparison.


svn path=/trunk/mcs/; revision=154830
2010-04-06 09:42:55 +00:00
Gonzalo Paniagua Javier c4b08a1fc0 undo
svn path=/trunk/mcs/; revision=154498
2010-03-30 21:22:16 +00:00
Gonzalo Paniagua Javier 4ac0c2f561 2010-03-30 Gonzalo Paniagua Javier <[email protected]>
* 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
2010-03-30 21:00:21 +00:00
Marek Habersack 4828e79cbd 2010-03-17 Marek Habersack <[email protected]>
* AspGenerator.cs, AspParser.cs, TemplateControlCompiler.cs, TagType.cs, CodeRenderBuilder.cs: implemented the new <%: %> 4.0 html-encoded code render expression.

svn path=/trunk/mcs/; revision=153793
2010-03-17 22:35:23 +00:00
Marek Habersack e105f08673 2010-03-04 Marek Habersack <[email protected]>
* 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
2010-03-04 19:04:13 +00:00
Marek Habersack 5e9719f57c Gotten rid of NET_2_0 ifdefs and 1.1 code from System.Web.UI
svn path=/trunk/mcs/; revision=149929
2010-01-20 21:21:01 +00:00
Marek Habersack 4083fbfc3f 2010-01-20 Marek Habersack <[email protected]>
* ObjectStateFormatter.cs: implemented support for IndexedString
	on top of the existing StringFormatter.

	* IndexedString.cs: implemented

svn path=/trunk/mcs/; revision=149919
2010-01-20 17:48:49 +00:00
Marek Habersack 3d083fe3fe 2009-12-22 Marek Habersack <[email protected]>
* 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
2009-12-22 12:24:19 +00:00
Marek Habersack 4e55bac694 2009-12-18 Marek Habersack <[email protected]>
* ObjectStateFormatter.cs: ObjectFormatter.WriteObject checks
	whether candidate converter can convert from string now. Fixes bug
	#565547

2009-12-18  Marek Habersack  <[email protected]>

	* System.Web_test.dll.sources: added
	mainsoft/NunitWeb/NunitWeb/Tests/Author.cs
	mainsoft/NunitWeb/NunitWeb/Tests/AuthorConverter.cs
	mainsoft/NunitWeb/NunitWeb/Tests/Book.cs
	mainsoft/NunitWeb/NunitWeb/Tests/BookType.cs

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/StateFormatter_CorrectConverter.aspx
	Test/mainsoft/NunitWebResources/StateFormatter_CollectionConverter.aspx
	Test/mainsoft/NunitWebResources/StateFormatter_CollectionConverter.aspx.cs

2009-12-18  Marek Habersack  <[email protected]>

	* ObjectStateFormatterTest.cs: added.

svn path=/trunk/mcs/; revision=148743
2009-12-18 11:07:34 +00:00
Marek Habersack fa8a9e3ca8 2009-11-14 Marek Habersack <[email protected]>
* TemplateControl.cs: if writer is null in
	WriteUTF8ResourceString, use output.Write, not writer.Write. Fixes
	bug #547015

svn path=/trunk/mcs/; revision=146199
2009-11-14 01:21:19 +00:00
Marek Habersack 80e56d75c4 Removed 1.x code and NET_2_0 ifdefs
svn path=/trunk/mcs/; revision=145834
2009-11-10 14:00:01 +00:00
Marek Habersack 8b4e17d0d2 2009-11-10 Marek Habersack <[email protected]>
* 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
2009-11-10 13:49:01 +00:00
Marek Habersack 1201ed9a1d 2009-10-30 Marek Habersack <[email protected]>
* 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
2009-10-30 00:52:53 +00:00
Marek Habersack 521f2a3598 2009-10-27 Marek Habersack <[email protected]>
* 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
2009-10-27 09:55:47 +00:00
Marek Habersack 3a170ffe7d 2009-10-12 Marek Habersack <[email protected]>
* 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-12 12:51:30 +00:00
Marek Habersack f1d1180ca0 Not fully tested, so no backport to 2.4/2.6 branches yet.
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
2009-10-09 12:16:01 +00:00
Marek Habersack 5c59801fff Performance improvements:
- 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
2009-10-07 00:10:03 +00:00
Marek Habersack 74981d7e5f 2009-09-22 Marek Habersack <[email protected]>
* WebServiceParser.cs: GetCompiledType uses BuildManager on the
	2.0 profile. Fixes bug #533166

svn path=/trunk/mcs/; revision=142386
2009-09-22 12:15:04 +00:00
Marek Habersack 7c2b88b9fe 2009-09-15 Marek Habersack <[email protected]>
* TemplateParser.cs: FindNamespaceInAssembly must catch
	ReflectionTypeLoadException so that it doesn't break on invalid
	assemblies.

svn path=/trunk/mcs/; revision=141962
2009-09-15 13:04:06 +00:00
Marek Habersack b6969f355f 2009-08-24 Marek Habersack <[email protected]>
* 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
2009-08-24 20:34:57 +00:00
Marek Habersack fa1c79515f 2009-08-18 Marek Habersack <[email protected]>
* 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
2009-08-19 22:33:52 +00:00
Marek Habersack b68b65ad17 2009-08-18 Marek Habersack <[email protected]>
* 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
2009-08-18 13:31:49 +00:00
Marek Habersack bbd9577d71 2009-08-14 Marek Habersack <[email protected]>
* 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
2009-08-14 02:01:12 +00:00
Marek Habersack 0460df3566 2009-07-23 Marek Habersack <[email protected]>
* 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
2009-07-23 10:16:54 +00:00
Marek Habersack 8175b977ad 2009-07-21 Marek Habersack <[email protected]>
* SimpleWebHandlerParser.cs: make sure to ignore invalid bin/
	assemblies in AddAssembliesInBin and GetTypeFromBin.

svn path=/trunk/mcs/; revision=138245
2009-07-20 23:32:03 +00:00
Miguel de Icaza 0c48a2f633 Found with Umbraco, this method ignores null pages
svn path=/trunk/mcs/; revision=137744
2009-07-11 16:56:38 +00:00
Marek Habersack 563da7386f 2009-06-15 Marek Habersack <[email protected]>
* 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
2009-06-15 07:28:44 +00:00
Marek Habersack 6a261e04ad 2009-06-05 Marek Habersack <[email protected]>
* 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
2009-06-05 20:53:26 +00:00
Marek Habersack e39f408251 2009-06-01 Marek Habersack <[email protected]>
* 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
2009-06-01 18:22:04 +00:00
Marek Habersack 540708a71f 2009-05-29 Marek Habersack <[email protected]>
* 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
2009-05-29 10:25:35 +00:00
Marek Habersack 9a0870f6a1 Hush compilation warnings
svn path=/trunk/mcs/; revision=135050
2009-05-29 07:48:14 +00:00
Marek Habersack 44bca195b9 2009-05-10 Marek Habersack <[email protected]>
* 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
2009-05-10 20:29:01 +00:00
Marek Habersack b3a66935ff 2009-05-05 Marek Habersack <[email protected]>
* 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
2009-05-05 20:47:02 +00:00
Marek Habersack 8aa3c10397 2009-05-04 Marek Habersack <[email protected]>
* 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
2009-05-04 13:29:32 +00:00