1186 Commits
Author SHA1 Message Date
Marek Habersack 83876018b4 [asp.net] Fix for bug #643298. A typo prevented the EnableViewStateMac from being recognized in the Page directive. 2010-10-05 08:04:16 +02:00
Marek Habersack 8fd3e7fae6 [asp.net] Fix for bug #636709. ClientID must be reset when ID is assigned. 2010-09-07 23:20:28 +02:00
Marek Habersack e5ec9150cb [asp.net] Fix for bug #633756. Children processed as properties must be instantiated before using.
When a server-side control processes its children (in the markup) as properties, it needs to instantiate
an object of the property type and assign it to the appropriate property of the control. Failing to do so
will cause markup which references properties to fail in certain cases (for instance when the control's
property type is a class and it is not instantiated by the control's constructor).
2010-08-24 01:02:47 +02:00
Marek Habersack 51e6b86309 [asp.net,4.0] Added support for setting default base types for various kinds of resources.
ASP.NET 4.0 allows one to set base types for Pages, User Controls, Application and PageParserFilter
from the pre-application start method(s). This commit implements support for this mechanism.

* ApplicationFileParser.cs: added override of DefaultBaseType property which checks whether
  PageParser.DefaultApplicationBaseType is set and, if yes, uses it to set application base type
  if there's no custom Global.asax
* PageParser.cs: implemented the EnableLongStringsAsResources, DefaultPageBaseType, DefaultApplicationBaseType,
  DefaultPageParserFilterType and DefaultUserControlBaseType properties.
* TemplateParser.cs: if PageParser.DefaultPageParserFilterType is set, use it as the default type to create instance
  of the page parser filter
* Added tests for the new properties.
* Added support in standalone runner for setting custom application domain data on domain creation, just before
  the test is ran.
2010-08-06 22:27:08 +02:00
Marek Habersack 3a84414136 [asp.net] Made TemplateParser.CompileIntoType internal
This method was present only in 1.0 and 1.1 profiles. It's made internal because
we use it throughout our code.
2010-08-06 22:27:08 +02:00
Marek Habersack 8731e553a7 [asp.net,4.0] Added support for declarative per-user control output cache provider selection
This adds support for the ProviderName attribute of the OutputCache directive in user controls.
Also implemented missing support for SqlDependency attribute.

* TemplateControlCompiler.cs: StaticPartialCachingControl instantiation now uses the constructor overloads
  which accept sqlDependency (2.0+) and providerName (4.0+)
* UserControlCompiler.cs: added code to output PartialCachingAttribute which accepts sqlDependency (2.0+) and
  ProviderName (4.0+) arguments
* PartialCachingAttribute.cs added the 4.0 ProviderName property
* StaticPartialCachingControl.cs: implemented two missing constructors (one 2.0 and the other 4.0)
  Added a missing BuildCachedControl overload which accepts providerName (4.0)
* TemplateParser.cs: factored out OutputCache attribute processing to a separate internal virtual method.
* UserControlParser.cs: added support for the ProviderName attribute of the OutputCache directive.
2010-08-06 01:27:34 +02:00
Marek Habersack 80244984a0 [asp.net,4.0] added ability to store cached user controls in specified output cache provider
This commit implements the ability to programmatically set the name of the output cache provider
to hold cached control data.

* OutputCache.cs: added DefaultProvider internal property to return whatever default provider is
  configured.
  Added GetProvider() method to return instance of a named provider
* BasePartialCachingControl.cs: cache key and cached data are store in instance fields.
  Added 4.0 internal property ProviderName which names the output cache provider to use for storage.
  Removed OnInit from 4.0 profile, replaced with an override of Control's InitRecursive. Control is
  created only when cached data is not found in the provider.
* Control.cs: made InitRecursive virtual for the benefit of BasePartialCachingControl above.
* ControlCachePolicy.cs: added 4.0 property ProviderName
2010-08-06 01:27:34 +02:00
Marek Habersack 2b02fff231 [asp.net] use auto-generated backing fields for all properties 2010-08-05 15:24:49 +02:00
Marek Habersack 6ab66d483e [asp.net] implemented several missing properties in BoundPropertyEntr
* BoundPropertyEntry.cs: implemented the ControlID, ControlType, ExpressionBuilder, FieldName,
  FormatString, ParsedExpressionData, ReadOnlyProperty and TwoWayBound properties (2.0+)
2010-08-05 15:19:37 +02:00
Marek Habersack b0f59ebc86 [asp.net] implemented BaseTemplateParser.{GetReferencedType,GetUserControlType} methods
* BuildProvider.cs: factored out build provider type retrieval code to a separate method
* BuildProviderCollection.cs: factored out build provider type retrieval code to a separate method
* BuildManagerDirectoryBuilder.cs: system.web/compilation section is not an application section - it can
  be defined in web.config on any level.
2010-08-04 21:50:33 +02:00
Marek Habersack 4e74254594 2010-07-23 Marek Habersack <[email protected]>
* ClientScriptManager.cs: 4.0 adds a class="aspNetHidden"
	attribute to the div element surrounding the hidden elements.
2010-07-23 18:40:02 +02:00
Marek Habersack 84cf768d2d 2010-07-21 Marek Habersack <[email protected]>
* Wizard.cs: made rendering 100% compliant with .NET (button IDs,
	2.0+)
	Implemented LayoutTemplate (4.0+)

	* LinkButton.cs: render id first

	* CreateUserWizard.cs: CreateUserNavigationContainer.UpdateState
	doesn't add a previous button if we're on the first step.

svn path=/trunk/mcs/; revision=160657
2010-07-21 12:58:22 +00:00
Marek Habersack f9aca58e82 4.0/2.0 metadata updates + some test updates
svn path=/trunk/mcs/; revision=160378
2010-07-14 19:46:01 +00:00
Marek Habersack 3e86dae309 2010-07-13 Marek Habersack <[email protected]>
* Control.cs: moved 4.0 ClientID code to a separate method, so
	that the ID_SET flag isn't set when necessary.

2010-07-13  Marek Habersack  <[email protected]>

	* Wizard.cs: wizard table doesn't contain any instances of
	HtmlAnchor or Image controls. Moved rendering of the skip link
	anchor to the TableCellNamingContainer class, which does that in
	RenderChildren by directly writing to the passed writer. Fixes 4.0
	rendering and all the failing Wizard tests.

svn path=/trunk/mcs/; revision=160304
2010-07-13 16:34:23 +00:00
Marek Safar d2cf197fe9 Clean up 2 warnings
svn path=/trunk/mcs/; revision=160247
2010-07-12 14:22:44 +00:00
Marek Habersack 66f503db3e 2010-07-10 Marek Habersack <[email protected]>
* Control.cs: when setting ClientIDMode remember the value when
	setting the property for the first time.

svn path=/trunk/mcs/; revision=160187
2010-07-10 00:25:15 +00:00
Marek Habersack 203ea304e7 2010-07-08 Marek Habersack <[email protected]>
* Control.cs: if generating a predictable ID and the current
	control is a naming container, ensure that an ID is generated if
	not specified by user.

svn path=/trunk/mcs/; revision=160050
2010-07-08 13:09:32 +00:00
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