1186 Commits
Author SHA1 Message Date
Marek Habersack 00359b3759 2008-09-29 Marek Habersack <[email protected]>
* Page.cs: EnableViewState is initialized from the web
	configuration. 
	ViewState is saved only if EnableViewState is true for the page.
	Optimized SavePageControlState implementation.

svn path=/trunk/mcs/; revision=114431
2008-09-29 19:10:29 +00:00
Marek Habersack ff5759d9db 2008-09-25 Marek Habersack <[email protected]>
* Page.cs: make sure view state is loaded for PreviousPage during
	cross-page postback.

svn path=/trunk/mcs/; revision=114033
2008-09-24 22:53:16 +00:00
Atsushi Eno 21a3ea47a6 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.dll.sources: added System.Web.UI/IAutoFieldGenerator.cs
	  and System.Web.UI.WebControls/IPersistedSelector.cs.

	* IPersistedSelector.cs : new in 3.5 SP1.

	* IAutoFieldGenerator.cs : new in 3.5 SP1.


svn path=/trunk/mcs/; revision=112940
2008-09-13 19:01:32 +00:00
Atsushi Eno f0ec7f3bfa 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.dll.sources: added
	  System.Web.UI/CssClassPropertyAttribute.cs.

	* CssClassPropertyAttribute.cs : new in 3.5 SP1.


svn path=/trunk/mcs/; revision=112936
2008-09-13 13:34:19 +00:00
Atsushi Eno 00e5d165e3 2008-09-13 Atsushi Enomoto <[email protected]>
* System.Web.dll.sources: added System.Web.UI/IBindableControl.cs.

	* IBindableControl.cs : new in 3.5 SP1.


svn path=/trunk/mcs/; revision=112933
2008-09-13 13:06:34 +00:00
Marek Habersack a34534b9c3 2008-09-01 Marek Habersack <[email protected]>
* ControlBuilder.cs:
	CreateSubBuilder compares tagid to tagName case-insensitively now.

svn path=/trunk/mcs/; revision=112005
2008-09-01 02:30:35 +00:00
Marek Habersack 6c416d1a76 2008-09-01 Marek Habersack <[email protected]>
* ControlBuilder.cs: CreatePropertyBuilder now correctly processes
	property names with prefixes (e.g. 'prefix:PropertyName'). 
	Original, parsed, tag name is stored to properly handle closing
	tags.

2008-09-01  Marek Habersack  <[email protected]>

	* AspGenerator.cs:
	CloseControl uses ControlBuilder's OriginalTagName property,
	should the property/tag name be prefixed with 'prefix:'

svn path=/trunk/mcs/; revision=112003
2008-09-01 01:33:27 +00:00
Marek Habersack d53ea4d4f6 2008-09-01 Marek Habersack <[email protected]>
* TemplateControl.cs: changed the way in which ParseControl is
	implemented for the 2.0+ profile. Still not quite there, but
	better and closer to .NET

2008-09-01  Marek Habersack  <[email protected]>

	* BaseCompiler.cs: AssignAppRelativeVirtualPath works with
	null/empty parser.InputFile now.

	* AspGenerator.cs: AddTypeToCache works checks whether inputFile
	is null or empty and does not assume the dependencies ArrayList is
	present.

	* CachingCompiler.cs: expect the dependencies ArrayList to be null
	or empty.



svn path=/trunk/mcs/; revision=111998
2008-08-31 23:30:52 +00:00
Marek Habersack 90e612afe1 2008-08-31 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs:
	Templates are processed before anything else, so that children
	which may depend on parent's templates can get access to them.

2008-08-31  Marek Habersack  <[email protected]>

	* Control.cs: improved FillControlCache

	* ControlBuilder.cs:
	Added a cache for children of TemplateBuilder, used later in
	TemplateControlCompiler.

svn path=/trunk/mcs/; revision=111990
2008-08-31 17:05:28 +00:00
Marek Habersack 27ece7a9b2 2008-08-31 Marek Habersack <[email protected]>
* TemplateParser.cs: added support for the LinePragmas directive
	attribute.

	* ControlBuilder.cs: if this instance is a TemplateBuilder do not
	call MyNamingContainer, so that our own ContainerType can be used
	as the binding container (if present).

2008-08-31  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: trust builder.BindingContainerType
	in the 2.0+ profile - do not use container properties to detect
	the type.
	Added a helper method, compiled only when DEBUG is defined, to
	generate Console.WriteLine CodeDOM calls.

	* BaseCompiler.cs: add line pragmas only if enabled for the
	current file.


svn path=/trunk/mcs/; revision=111983
2008-08-31 01:41:14 +00:00
Marek Safar f3f05c2055 Warnings cleanup
svn path=/trunk/mcs/; revision=111904
2008-08-29 09:48:05 +00:00
Marek Habersack a418f2516a 2008-08-26 Marek Habersack <[email protected]>
* TemplateControlParser.cs: added support for the VirtualPath
	attribute of the Reference directive.
	In the 2.0 profile, all the references are compiled using
	BuildManager.GetCompiledType now.

svn path=/trunk/mcs/; revision=111589
2008-08-26 00:58:27 +00:00
Marek Habersack 9e61c2dbea 2008-08-13 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: rewrote the Bind regular expressions
	to allow for single quotes and an optional second parameter to the
	"call".
	Added an Eval regular expression.
	Both Bind and Eval calls in data expressions are now converted
	into a CodeDOM method invocations, to allow support for possible
	languages which use a different call format (previously code
	snippets were used)
	Added a method to construct the Eval invoke expression which
	simplifies code in other areas.

2008-08-13  Marek Habersack  <[email protected]>

	* TemplateBuilder.cs: use a generic List to store the bindings on
	2.0+

2008-08-13  Marek Habersack  <[email protected]>

	* HttpException.cs: do not use StringBuilder.AppendFormat when
	there is no need.

svn path=/trunk/mcs/; revision=110385
2008-08-13 17:50:53 +00:00
Marek Habersack 3c28c0d567 2008-08-08 Marek Habersack <[email protected]>
* StateManagedCollection.cs: set all the contained objects state
	to dirty in SetDirty.

svn path=/trunk/mcs/; revision=109932
2008-08-08 01:14:59 +00:00
Marek Habersack 8b2ed681ef 2008-07-28 Marek Habersack <[email protected]>
* MasterPage.cs: decouple processing of content templates in
	CreateMasterPage from checking whether all the content place
	holder ids are defined. Fixes bug #325114

2008-07-28  Marek Habersack  <[email protected]>

	* StandardUrl.cs: added a new standard url -
	PAGE_WITH_MASTER_INVALID_PLACE_HOLDER.

2008-07-28  Marek Habersack  <[email protected]>

	* MyPageWithMasterInvalidPlaceHolder.aspx: added

2008-07-28  Marek Habersack  <[email protected]>

	* MasterPageTest.cs: added a test for situations when a page tries
	to use a content place holder not defined in the associated master
	page (bug #325114)

2008-07-28  Marek Habersack  <[email protected]>

	* NunitWeb/Makefile (NunitWeb.dll): added dependency on
	NunitWeb/Resources/MyPageWithMasterInvalidPlaceHolder.aspx, it is
	also included in the resources.



svn path=/trunk/mcs/; revision=108975
2008-07-28 08:20:59 +00:00
Gert Driesen 91663d3f2d * LosFormatter.cs: Avoid using Position when stream is unseekable.
Do not invoke Length property twice for seekable MemoryStream.  
* LosFormatterTest.cs: Improved test for bug #411115.

svn path=/trunk/mcs/; revision=108506
2008-07-22 19:59:16 +00:00
Rodrigo Kumpera 7d3529a49d 2008-07-16 Rodrigo Kumpera <[email protected]>
* DataBoundLiteralControl.cs: Lazily create staticLiterals.

	* DataBoundLiteralControl.cs (Render): Don't generate
	an intermediate string, write the content directly.


svn path=/trunk/mcs/; revision=108036
2008-07-16 14:43:08 +00:00
Roei Erez 2a3a79191f fix the build break, sorry.
svn path=/trunk/mcs/; revision=108017
2008-07-16 08:36:15 +00:00
Roei Erez d91cf0d569 typo from my last fix.
svn path=/trunk/mcs/; revision=108015
2008-07-16 06:57:09 +00:00
Marek Habersack ca03531eb9 2008-07-14 Marek Habersack <[email protected]>
* Page.cs: fix the failing tests by moving the form
	RaisePostBackEvent code up in RaisePostBackEvents, so that
	Validate () isn't called together with the registered post back
	events.

svn path=/trunk/mcs/; revision=107911
2008-07-14 21:49:41 +00:00
Roei Erez 2d881514ab Bug in javacript code, using window instead of document for checking if the script is already defined.
svn path=/trunk/mcs/; revision=107818
2008-07-13 11:27:47 +00:00
Marek Habersack d84c3da03a 2008-07-11 Marek Habersack <[email protected]>
* Control.cs: if adapter exists for the given control, use it for
	rendering. Patch from Christian Hergert
	<[email protected]>, thanks!

svn path=/trunk/mcs/; revision=107708
2008-07-11 10:09:48 +00:00
Roei Erez bd813ed4f8 Differentiate between IPostBackEventHandler that was registered by the user, and one that was given as post parameter, so that in case ther post data may trigger both IPostBackEventHandler and IPostBackDataHandler, only the IPostBackDataHandler is actually triggered
svn path=/trunk/mcs/; revision=107631
2008-07-10 11:17:42 +00:00
Rodrigo Kumpera 75aab0fe9b * DataBinder.cs (GetDataItem): Commited stupid code.
2008-07-09  Rodrigo Kumpera  <[email protected]>


svn path=/trunk/mcs/; revision=107618
2008-07-10 01:53:17 +00:00
Rodrigo Kumpera 027614936b 2008-07-09 Rodrigo Kumpera <[email protected]>
* DataBinder.cs (GetDataItem): Use a per-thread cache for
	property lookup.


svn path=/trunk/mcs/; revision=107617
2008-07-10 01:52:47 +00:00
Rodrigo Kumpera 1bbd81cd2a 2008-07-02 Rodrigo Kumpera <[email protected]>
* Control.cs: Fix the lookup in ResolveAdapter that I
	broke in the previous change.


svn path=/trunk/mcs/; revision=107123
2008-07-02 23:47:52 +00:00
Rodrigo Kumpera f8717b2b16 2008-07-02 Rodrigo Kumpera <[email protected]>
* Control.cs: Optimize ResolveAdapter a bit more.


svn path=/trunk/mcs/; revision=107121
2008-07-02 23:29:38 +00:00
Rodrigo Kumpera ec7e45ba2f In System.Web.UI:
2008-07-02  Rodrigo Kumpera  <[email protected]>

	* Control.cs: Optimize the Adapter property and ResolveAdapter a bit.


svn path=/trunk/mcs/; revision=107110
2008-07-02 22:13:51 +00:00
Rodrigo Kumpera 9a0dd8e171 In .:
2008-07-01  Rodrigo Kumpera  <[email protected]>

	* TemplateControl.cs: Kill a foreach loop.


svn path=/trunk/mcs/; revision=107030
2008-07-02 03:47:39 +00:00
Marek Habersack e16dafc604 2008-06-30 Marek Habersack <[email protected]>
* TemplateParser.cs: use atomic incrementation for automatic class
	name creation to avoid Monitor Enter/Exit.

svn path=/trunk/mcs/; revision=106888
2008-06-30 14:11:12 +00:00
Marek Habersack 4944213e17 2008-06-30 Marek Habersack <[email protected]>
* AspGenerator.cs: hush the warnings and fix invalid type
	comparison.

	* AssemblyBuilder.cs: hush the warnings and add some debugging
	CWLs.

	* AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
	CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
	SimpleBuildProvider.cs, BuildManager.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* HtmlForm.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs, Menu.cs, DataList.cs,
	CustomValidator.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* MachineKeyRegistryStorage.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* SqliteMembershipProvider.cs, SqliteRoleProvider.cs: remove
	unused method

	* SqlRoleProvider.cs, AspNetDBSchemaChecker.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* UserControlParser.cs: hush the warnings and remove unnecessary
	code.

	* ControlCachePolicy.cs, PageParser.cs, ControlBuilder.cs,
	TemplateParser.cs, SimpleWebHandlerParser.cs, TemplateControl.cs,
	ApplicationFileParser.cs: hush the warnings

	* Page.cs: Context is protected internal in .NET 3.5
	Initialize encryption IVs before returning the transform.

	* Control.cs: Hush the warnings.

2008-06-30  Marek Habersack  <[email protected]>

	* HttpRuntime.cs, HttpApplication.cs: hush the warnings

	* HttpContext.cs: Hush the warnings.

2008-06-30  Marek Habersack  <[email protected]>

	* SqliteProfileProvider.cs: remove unused method

2008-06-30  Marek Habersack  <[email protected]>

	* CompilationSection.cs: hush the warnings



svn path=/trunk/mcs/; revision=106886
2008-06-30 13:20:58 +00:00
Marek Habersack 62e4247924 2008-06-30 Marek Habersack <[email protected]>
* Page.cs: Context is protected internal in .NET 3.5

	* Control.cs: in 2.0 we should return the context associated with
	the current page. In 1.0 we ignore the never set field _context
	and keep walking up the parent chain. Also, Context is protected
	internal in .NET 3.5

svn path=/trunk/mcs/; revision=106876
2008-06-30 09:13:44 +00:00
Zoltan Varga 2b9e9d580b 2008-06-27 Zoltan Varga <[email protected]>
* Control.cs (ResolveAdapter): Avoid calling the Context property getter 
	multiple times.

svn path=/trunk/mcs/; revision=106809
2008-06-28 03:35:26 +00:00
Zoltan Varga 8d495a5057 2008-06-27 Zoltan Varga <[email protected]>
* TemplateControl.cs: Avoid collecting the automatic event info for each 
	instance.

svn path=/trunk/mcs/; revision=106751
2008-06-27 18:13:31 +00:00
Juraj Skripsky 99baee7a81 2008-06-18 Juraj Skripsky <[email protected]>
* Page.cs (ProcessException): Throw HttpUnhandledException instead of
	TargetInvocationException to match .NET. Fixes bug #400482.


svn path=/trunk/mcs/; revision=106090
2008-06-18 07:41:08 +00:00
Marek Habersack 324596317d 2008-06-18 Marek Habersack <[email protected]>
* SqlCacheDependency.cs: added

2008-06-18  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.Caching/SqlCacheDependency.cs

2008-06-18  Marek Habersack  <[email protected]>

	* BasePartialCachingControl.cs: implemented the CachePolicy
	property.

	* UserControl.cs: implemented the CachePolicy property.

	* ControlCachePolicy.cs: implemented missing properties and
	methods.

2008-06-18  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: AddChildCall properly processes the
	PartialCachingAttribute now.

svn path=/trunk/mcs/; revision=106078
2008-06-18 01:09:53 +00:00
Marek Habersack cba27ffb42 2008-06-11 Marek Habersack <[email protected]>
* BaseCompiler.cs: do not generate #line pragma for code which
	exists only in memory.

2008-06-11  Marek Habersack  <[email protected]>

	* TemplateControl.cs: make sure 'type' isn't null in LoadControl
	before attempting to use it.

svn path=/trunk/mcs/; revision=105510
2008-06-10 22:43:10 +00:00
Noam Lampert ac27d06220 * TemplateControl.jvm.cs: Don't assume that controls containing page-specific
callbacks (e.g. Page_LoadComplete) are necessarily Page derivatives.

svn path=/trunk/mcs/; revision=105464
2008-06-10 16:20:04 +00:00
Juraj Skripsky a49df1366f 2008-06-04 Juraj Skrispky <[email protected]>
* PageParser.cs (ProcessMainAttributes): Take value of
	enableEventValidation from web.config into account. Fixes bug #397099.


svn path=/trunk/mcs/; revision=104877
2008-06-04 16:04:31 +00:00
Marek Habersack 88e2a12848 public only for 2.0
svn path=/trunk/mcs/; revision=104852
2008-06-04 11:25:32 +00:00
Marek Habersack ff4093843b 2008-06-04 Marek Habersack <[email protected]>
* PageHandlerFactory.cs: this class should be public. Fixes bug
	#396707

svn path=/trunk/mcs/; revision=104845
2008-06-04 10:03:10 +00:00
Marek Habersack 0907975508 2008-05-30 Marek Habersack <[email protected]>
* BaseDataBoundControl.cs, ChangePassword.cs, CustomValidator.cs,
	DataControlFieldCollection.cs, DataControlField.cs,
	PasswordRecovery.cs, PagerSettings.cs: do not use synthetized
	event accessors (to avoid locks).

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

	* AnonymousIdentificationModule.cs, FormsAuthenticationModule.cs,
	DefaultAuthenticationModule.cs, MembershipProvider.cs,
	WindowsAuthenticationModule.cs, PassportAuthenticationModule.cs,
	RoleManagerModule.cs: do not use synthetized event accessors (to
	avoid locks).

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

	* HttpApplication.cs, HttpCachePolicy.cs, SiteMapProvider.cs,
	TraceContext.cs: do not use synthetized event accessors (to avoid
	locks).

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

	* SessionStateModule.cs: do not use synthetized event accessors
	(to avoid locks).

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

	* ProfileModule.cs: do not use synthetized event accessors (to
	avoid locks).

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

	* SessionStateModule.cs: do not use synthetized event accessors
	(to avoid locks).

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

	* DataBindingCollection.cs, ExpressionBindingCollection.cs: do not
	use synthetized event accessors (to avoid locks).

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

	* ClientBuildManager.cs: do not use synthetized event accessors
	(to avoid locks).

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

	* CacheDependency.cs: do not use synthetized event accessors (to
	avoid locks).


svn path=/trunk/mcs/; revision=104569
2008-05-30 22:20:14 +00:00
Marek Habersack cf49b7dc9a unbreak the 1.x build
svn path=/trunk/mcs/; revision=104344
2008-05-28 23:06:15 +00:00
Marek Habersack abb3087f1e 2008-05-18 Marek Habersack <[email protected]>
* HierarchicalDataBoundControl.cs: Modified GetData method to check if
	DataSource implements IHierarchicalEnumerable and if so constructs and
	returns a new instance of ReadOnlyDataSourceView. This provides functional
	compatibility with the Microsoft.NET framework. Fixes bug
	#395209. Patch contributed by James Fitzsimons
	<[email protected]>, thanks!

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

	* HierarchicalDataBoundControlTest.cs: Added 
	TestIHierarchicalEnumerableDataSource to test change made to
	GetData method to make functionally compatibile with Microsoft.NET
	framework. Patch contributed by James Fitzsimons
	<[email protected]>, thanks!

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

	* ReadOnlyDataSourceView.cs: added. Patch contributed by James
	Fitzsimons <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=104329
2008-05-28 21:07:04 +00:00
Marek Habersack f0d27ade04 2008-05-28 Marek Habersack <[email protected]>
* TemplateParser.cs: added support for #pragma checksum

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

	* AspParser.cs, AspGenerator.cs, BaseCompiler.cs: added support
	for #pragma checksum

svn path=/trunk/mcs/; revision=104321
2008-05-28 19:42:06 +00:00
Juraj Skripsky 3aab989836 2008-05-19 Juraj Skripsky <[email protected]>
* Page.cs (ValidateCollection): Don't check _eventValidation, it
	has nothing to do with the validators.


svn path=/trunk/mcs/; revision=103485
2008-05-19 15:57:38 +00:00
Marek Habersack dcd27f5983 2008-05-16 Marek Habersack <[email protected]>
* StateManagedCollection.cs: make {Save,Load}ViewState simpler.

svn path=/trunk/mcs/; revision=103353
2008-05-16 17:20:49 +00:00
Marek Habersack f60e51b6be 2008-05-15 Marek Habersack <[email protected]>
* StateManagedCollection.cs: do not query for index of an item in
	a null array.

svn path=/trunk/mcs/; revision=103302
2008-05-15 16:54:44 +00:00
Marek Habersack 480a1be6f7 2008-05-07 Marek Habersack <[email protected]>
* TemplateParser.cs: added a stack of include directories, to
	properly resolve file relative paths when the #include file=""
	directive is used. Fixes bug #324536

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

	* AspGenerator.cs: push the include file directory to the parser
	include directory stack and pop it after parsing the include, so
	that the relative file paths are resolved correctly. Fixes bug
	#324536

svn path=/trunk/mcs/; revision=102729
2008-05-07 14:48:46 +00:00
Igor Zelmanovich 844e4644e7 2008-05-05 Igor Zelmanovich <[email protected]>
* HiddenFieldPageStatePersister.cs: add TARGET_J2EE def
	* Page.cs: remove TARGET_J2EE def
	* Page.jvm.cs: add new internal api such PageState and FacesContext.
	all those changes make PageAdapter works with JSF under TARGET_J2EE.		


svn path=/trunk/mcs/; revision=102513
2008-05-05 11:53:39 +00:00