Commit Graph
34 Commits
Author SHA1 Message Date
Marek Habersack a366e3b759 2008-05-15 Marek Habersack <[email protected]>
* AspComponentFoundry.cs: treat AssemblyFoundry in a special way
	when adding a foundry to the array list. AssemblyFoundry instances
	are stacked at the end of the array list in a LIFO manner. That
	way TagNameFoundry takes precedence over AssemblyFoundry should
	the two contain the same type.

2008-05-14  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: do not add the same entry to a
	hashtable twice



svn path=/trunk/mcs/; revision=103243
2008-05-15 01:32:36 +00:00
Marek Habersack 58a3b00cd8 2008-04-15 Marek Habersack <[email protected]>
* AssemblyResourceLoader.cs: dispose of streams the way it should
        be done.

2008-04-15  Marek Habersack  <[email protected]>

        * MailDefinition.cs: dispose of streams the way it should
        be done.

2008-04-15  Marek Habersack  <[email protected]>

        * HttpRequest.cs: dispose of streams the way it should
        be done.

2008-04-15  Marek Habersack  <[email protected]>

        * CachingCompiler.cs: dispose of streams the way it should
        be done.


svn path=/trunk/mcs/; revision=100690
2008-04-14 22:45:44 +00:00
Marek Habersack 3476c409c3 2007-12-13 Marek Habersack <[email protected]>
* ClientScriptManager.cs, MasterPageParser.cs, Control.cs,
	Page.cs: speed optimization - use String.Concat instead of
	String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* Menu.cs, TreeView.cs: optimize use of String.Format in
	OnPreRender.
	Speed optimization - use String.Concat instead of String.Format in
	some cases.

	* GridView.cs, DetailsView.cs: optimize use of String.Format in
	OnPreRender.

	* CheckBox.cs, AccessDataSource.cs, WebColorConverter.cs,
	WebControl.cs,TextBox.cs, DropDownList.cs, ValidationSummary.cs,
	ListBox.cs, Panel.cs, BaseValidator.cs, LinkButton.cs: speed
	optimization - use String.Concat instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* HtmlForm.cs, HtmlButton.cs: speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* SessionId.cs: 
	speed optimization - use String.Concat
	instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* SqlProfileProvider.cs, ProfileParser.cs: speed optimization -
	use String.Concat instead of String.Format in some cases.
2007-12-13  Marek Habersack  <[email protected]>

	* ApplicationManager.cs, ApplicationHost.cs,
	DefaultVirtualPathProvider.cs: speed optimization - use
	String.Concat instead of String.Format in some cases.

svn path=/trunk/mcs/; revision=91230
2007-12-13 13:50:10 +00:00
Igor Zelmanovich 4564cfa88c 2007-11-12 Igor Zelmanovich <[email protected]>
* AssemblyResourceLoader.cs:
	according to the tests, GetResourseUrl never returns null.	


svn path=/trunk/mcs/; revision=89464
2007-11-12 14:45:12 +00:00
Igor Zelmanovich 6f578af9ff 2007-11-12 Igor Zelmanovich <[email protected]>
* AssemblyResourceLoader.cs:
	optimize performance of WebResource/ScriptResource feature.
	All resource urls are cached for each assembly instead to be 
	calculated each time when GetWebResourceUrl is called


svn path=/trunk/mcs/; revision=89458
2007-11-12 12:21:22 +00:00
Igor Zelmanovich 5c1b476aec 2007-11-06 Igor Zelmanovich <[email protected]>
* AssemblyResourceLoader.cs:
	makes it works for System.Web.Extensions.	


svn path=/trunk/mcs/; revision=88987
2007-11-06 15:37:12 +00:00
Juraj Skripsky d0ffd20aaa 2007-11-02 Juraj Skripsky <[email protected]>
* AssemblyResourceLoader.cs: As the assembly name is encrypted via
	EncryptAssemblyResource, we mustn't UrlEncode it anymore.


svn path=/trunk/mcs/; revision=88713
2007-11-02 09:46:36 +00:00
Marek Habersack 6f82e580a4 2007-11-01 Marek Habersack <[email protected]>
* 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
2007-11-01 02:14:52 +00:00
Marek Habersack 09d8ee3a3c 2007-10-31 Marek Habersack <[email protected]>
* FormsAuthentication.cs: made GetHexString an internal method -
	it is used in the AssemblyResourceLoader.cs
2007-10-31  Marek Habersack  <[email protected]>

	* AssemblyResourceLoader.cs: implemented assembly+resource name
	encryption in the URLs. This follows MS.NET behavior. Also the
	code is not varying the cache on the 't' parameter. Fixes bug
	#338051.

svn path=/trunk/mcs/; revision=88608
2007-10-31 21:47:27 +00:00
Juraj Skripsky b92b0ea222 2007-10-30 Juraj Skripsky <[email protected]>
* AssemblyResourceLoader.cs: Always use '&' as query parameter
	separator, as HttpUtility does not support ';' anymore.


svn path=/trunk/mcs/; revision=88454
2007-10-30 13:10:44 +00:00
Igor Zelmanovich 43697d3e4c 2007-08-23 Igor Zelmanovich <[email protected]>
* AssemblyResourceLoader.cs: for SYSTEM_WEB_EXTENSIONS only:
	fixed JSON serialization of resources.


svn path=/trunk/mcs/; revision=84685
2007-08-23 10:44:10 +00:00
Rodrigo Kumpera 685ad1f3e2 2007-08-06 Rodrigo Kumpera <[email protected]>
* AssemblyResourceLoader.cs: use the right static constructor name
	if SYSTEM_WEB_EXTENSIONS is defined.


svn path=/trunk/mcs/; revision=83540
2007-08-06 15:20:49 +00:00
Vladimir Krasnov 2b44f3485e * AssemblyResourceLoader.cs: performance optimization, caching urls for built-in resources
fixed CacheControl, should be private
added HttpException if resource is not found

svn path=/trunk/mcs/; revision=83532
2007-08-06 13:48:36 +00:00
Igor Zelmanovich 1e2a73bdf5 2007-07-16 Igor Zelmanovich <[email protected]>
* AssemblyResourceLoader.cs:
	fixed RegEx used for PerformSubstitution feature.


svn path=/trunk/mcs/; revision=82023
2007-07-16 10:24:19 +00:00
Igor Zelmanovich c182f522de 2007-07-11 Igor Zelmanovich <[email protected]>
* AssemblyResourceLoader.cs:
	for System.Web.Extensions only:
	ScriptResourceName may include ".resource" suffix.


svn path=/trunk/mcs/; revision=81784
2007-07-11 11:17:21 +00:00
Igor Zelmanovich eed675e11f 2007-07-03 Igor Zelmanovich <[email protected]>
* AssemblyResourceLoader.cs:
	implemented WebResourceAttribute.PerformSubstitution feature.


svn path=/trunk/mcs/; revision=81273
2007-07-03 16:04:32 +00:00
Vladimir Krasnov 8f28cf0c9a * AssemblyResourceLoader.cs: GetResourceUrl, fixed typo
svn path=/trunk/mcs/; revision=80314
2007-06-20 12:40:45 +00:00
Igor Zelmanovich 5eb4f1798b 2007-06-18 Igor Zelmanovich <[email protected]>
* AssemblyResourceLoader.cs: refactoring:
	make the code reusable in System.Web.Extensions.	

2007-06-18 Igor Zelmanovich <[email protected]>

	* HttpUtility.cs: refactoring:
	removed constants to another class.	


svn path=/trunk/mcs/; revision=79979
2007-06-18 08:08:58 +00:00
Vladimir Krasnov a9a8e58bfd * AssemblyResourceLoader.cs: GetResourceUrl, TARGET_JVM will use type's hashcode for resource url
svn path=/trunk/mcs/; revision=78176
2007-05-30 08:58:25 +00:00
Marek Habersack 2cdf3d39be 2007-04-06 Marek Habersack <[email protected]>
* 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
2007-04-06 11:51:51 +00:00
Gonzalo Paniagua Javier 4873356045 2006-01-30 Gonzalo Paniagua Javier <[email protected]>
* TraceHandler.cs: class status fixes.


svn path=/trunk/mcs/; revision=56292
2006-01-30 22:07:10 +00:00
Chris Toshok bab1a5f8bf 2006-01-26 Chris Toshok <[email protected]>
* AssemblyResourceLoader.cs (GetResourceUrl): if the assembly
	corresponds to an on-disk file, append the last write time to the
	url so we can enable client side caching.
	(ProcessRequest): tell the client to cache the url for 1 year, and
	have it vary by 'r' (resource name) and 't' (assembly timestamp).


svn path=/trunk/mcs/; revision=56127
2006-01-26 23:23:49 +00:00
Gonzalo Paniagua Javier 85c6971bfc 2006-01-03 Gonzalo Paniagua Javier <[email protected]>
* TraceHandler.cs: when clearing trace data, remove 'clear=1' from the
	query string. Fixes bug #77072.


svn path=/trunk/mcs/; revision=54996
2006-01-03 09:52:01 +00:00
Sebastien Pouliot 7ff6d1e02f 2005-09-02 Sebastien Pouliot <[email protected]>
* AssemblyResourceLoader.cs: Class is sealed in 2.0.
	* TraceHandler.cs: Added security permissions on class (LinkDemand and
	InheritanceDemand for AspNetHostingPermission) and on ctor (Demand for
	UnmanagedCode). Stubbed new protected methods for 2.0.


svn path=/trunk/mcs/; revision=49382
2005-09-02 23:27:20 +00:00
Lluis Sanchez ac1ae94b5b 2004-11-18 Lluis Sanchez Gual <[email protected]>
* AssemblyResourceLoader.cs: Use a special name when encoding a resource
	from the System.Web assembly.


svn path=/trunk/mcs/; revision=36428
2004-11-23 10:35:54 +00:00
Gonzalo Paniagua Javier 2c0860c663 2004-10-06 Gonzalo Paniagua Javier <[email protected]>
* TraceHandler.cs: error code is 403 and the message different when
	trace is enabled but not for remote clients.

svn path=/trunk/mcs/; revision=34750
2004-10-06 05:46:02 +00:00
Gonzalo Paniagua Javier 8432e31ff8 2004-07-02 Gonzalo Paniagua Javier <[email protected]>
* System.Web/TraceContext.cs: added internal HaveTrace property whose
	value is true when the page has a Trace attribute.

	* System.Web.Handlers/TraceHandler.cs: check that trace is enabled or
	throw.

	* System.Web.UI/Page.cs: added additional checks for saving/displaying
	trace data.

	* System.Web.UI/PageParser.cs: removed checks for trace enabled in
	configuration files.

	Thanks to David Taylor for most of these patch and the tests.

svn path=/trunk/mcs/; revision=30638
2004-07-02 01:54:48 +00:00
Gonzalo Paniagua Javier aa11211a2a 2004-06-03 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Handlers/TraceHandler.cs:
	* System.Web.UI/Control.cs:
	* System.Web.UI/Html32TextWriter.cs:
	* System.Web.UI/HtmlTextWriter.cs:
	* System.Web.UI/SimpleWebHandlerParser.cs:
	* System.Web.UI/TemplateControl.cs:
	* System.Web.UI.WebControls/Calendar.cs:
	* System.Web.UI.WebControls/CompareValidator.cs:
	* System.Web.UI.WebControls/ImageButton.cs:
	* System.Web.UI.WebControls/Style.cs:
	* System.Web.UI.WebControls/WebControl.cs:
	Added protected missing members and attributes.

svn path=/trunk/mcs/; revision=28743
2004-06-03 06:17:31 +00:00
Jackson Harper fdf22ddecd * TraceHandler.cs: Obey localOnly attribute.
svn path=/trunk/mcs/; revision=21951
2004-01-11 21:42:04 +00:00
Jackson Harper 7e679b5c2e * TraceHandler.cs: Implement.
svn path=/trunk/mcs/; revision=21922
2004-01-11 01:48:45 +00:00
Gonzalo Paniagua Javier ffc3fa7caf 2003-11-05 Gonzalo Paniagua Javier <[email protected]>
* AssemblyResourceLoader.cs: fixed compilation under MS. Ben already
	filed a bug report.

svn path=/trunk/mcs/; revision=19639
2003-11-05 06:14:59 +00:00
Jackson Harper b7aeba0bd5 * AssemblyResourceLoader.cs: No method body for v1. This fixes the
build.

svn path=/trunk/mcs/; revision=19634
2003-11-05 00:27:31 +00:00
Ben Maurer 4ff2d51140 2003-11-04 Ben Maurer <[email protected]>
* HttpContext.cs (IsCustomErrorEnabled): dont throw exception, just return false
	(which makes sense, as the custom errors *arent* enabled; ie they dont work.
	* HttpResponseStream.cs: you actually can write with len = 0
	* AssemblyResourceLoader.cs: New file. New v2 handler.
	* Control.cs (GetWebResourceUrl): new v2 function
	* Page.cs (GetWebResourceUrl): ditto.
	make the JS we generate work with moz if the form is not a child
	of document.
	* WebResourceAttribute.cs: Added, new v2 attribute.

svn path=/trunk/mcs/; revision=19631
2003-11-04 23:43:25 +00:00
Gonzalo Paniagua Javier 18be21e855 2002-10-08 Gonzalo Paniagua Javier <[email protected]>
* list: Modified file.

	* System.Web/HttpApplication.cs: fixed type and handle factories when
	creating IHttpHandler for a request.

	* System.Web.Configuration/HttpHandlersSectionHandler.cs: made a
	couple of static methods be part of a class used in other handlers.
	* System.Web.Configuration/HttpModulesConfigurationHandler.cs: handler
	for modules.
	* System.Web.Configuration/ModuleItem.cs: added IsMatch method.
	* System.Web.Configuration/ModulesConfiguration.cs: made it similar to
	the handlers class: added Clear, Remove.

	* System.Web.Handlers/ChangeLog: New file.
	* System.Web.Handlers/TraceHandler.cs: stubbed out. This should generate
	the trace page when tracing is enabled.

	* System.Web.SessionState/SessionStateModule.cs: don't throw exception.
	Just for testing the configuration stuff until we implement this.

svn path=/trunk/mcs/; revision=8074
2002-10-08 22:03:56 +00:00