Commit Graph
181 Commits
Author SHA1 Message Date
Marek Habersack c03924371e 2008-04-10 Marek Habersack <[email protected]>
* Control.cs: refactoring - IdSeparator property is internally
	present also in 1.1.

2008-04-10  Marek Habersack  <[email protected]>
	
	* RadioButton.cs: adjust 'name' and 'value' attribute values to
	match MS.NET. Fixes bug #378024

svn path=/trunk/mcs/; revision=100302
2008-04-10 02:06:43 +00:00
Dean Brettle 23000b3144 ++ Test/mainsoft/ChangeLog (working copy)
* add new resources: 
		PageWithAdapter.aspx for PageTest and PageAdapterTest.
		TestCapability.browser for AppBrowsersTest.

	* NunitWebResources/adapters.browser, 
	NunitWebResources/AppBrowsersTest.browser: modified to support
	testing reference nodes with captures, and adapters.

	* NunitWeb/NunitWeb/WebTest.cs: ensure that, during AppDomain
	unload, no new requests are sent to the app host and any
	pending requests are completed before the the unload occurs.
	Also added WebTest.AppUnloaded event that tests can use to wait
	for the app to unload (e.g. after touching Global.asax), and 
	WebTest.CleanApp() which can be called to restart the app with
	the a skeleton directory structure.  Tests which add files that
	could effect other tests (e.g. App_Browsers/*.browser files) should
	call WebTest.CleanApp() during TearDown to return the app to a 
	pristine environment.
	
++ Test/mainsoft/MainsoftWebTest/ChangeLog	(working copy)

	* HtmlAgilityPack/AssemblyInfo.cs: made assembly delay signed so that 
	tests can access System.Web internals now that System.Web is
	InternalsVisibleTo this assembly.

++ Test/System.Web/ChangeLog	(working copy)

	* AppBrowsersTest.cs: added.  Includes tests for Control.Adapter,
	Control.ResolveAdapter,	Control.TagWriter, and
	Control.CreateHtmlTextWriter, when using App_Browsers/*.browser files.
	AppBrowsersTest is currently tagged [Ignore], pending a fix for 
	bug #351878.
	
	* HttpRuntimeTest.cs: added. Includes test for 
	HttpRuntime.UnloadAppDomain().  Marked [Ignore], pending a fix for
	bug #351878.
	
++ Test/System.Web.UI.Adapters/ChangeLog	(revision 0)

	* PageAdapterTest.cs: added tests for PageAdapter.


	* ControlAdapterTest.cs (ConfigCapabilitiesNotCalled): added test to
	ensure that HttpCapabilitiesBase.ConfigCapabilities() is not called
	during normal page processing if no files are in App_Browsers.
	


	* ControlAdapterTest.cs: added tests for ControlAdapter.
++ Test/System.Web.UI/ChangeLog	(working copy)

	* PageTest.cs: add tests for using a PageAdapter.
	
	* ControlTest.cs: moved commented out ResolveAdapter_1 test to 
	../System.Web/AppBrowsersTest.cs.  Fixed typo in test name.  
	Added Customcontroladapter.Adapter property for use by AppBrowsersTest.

++ Test/System.Web.UI.WebControls.Adapters/ChangeLog	(revision 0)

	* MenuAdapterTest.cs: added


	* WebControlAdapterTest.cs, HierarchicalDataBoundControlAdapterTest.cs,
	DataBoundControlAdapterTest.cs, HideDisabledControlAdapterTest.cs: added
++ Test/System.Web.UI.WebControls/ChangeLog	(working copy)

	* MenuTest.cs (Menu_RenderStaticItems): added tests to check that
	result was the same when using the base MenuAdapter as when using
	no adapter.
	
	* MenuTest.cs (Menu_RenderStaticItemsWithAdapter): added test
	to ensure that MenuAdapter.RenderItem() is called.

	* HierarchicalDataBoundControlTest.cs, WebControlTest.cs, 
	DataBoundControlTest.cs: added test for use of ControlAdapters
	when present.
	
	* WebControl.cs: added test for IsEnabled.

++ System.Web/ChangeLog	(working copy)

	* HttpApplicationFactory.cs: Added support for detecting 
	App_Browsers/*.browser files and using them to determine capabilities.
	Also restart the app if the App_Browsers, App_Code, or App_GlobalResources
	directories are created.

	* BrowserCapabilities.cs (TagWriter): get value via internal virtual
	GetTagWriter() method, which is overridden in nBrowser.Result.

	* HttpRequest.cs (BrowserMightHaveSpecialWriter, BrowserMightHaveAdapters):
	internal properties added to allow Page and Control methods to avoid
	accessing Request.Browser to get browser-specific HtmlTextWriters or 
	ControlAdapters.  Those things only exist when there are App_Browsers
	files.

++ System.Web.UI.Adapters/ChangeLog	(working copy)

	* ControlAdapter.cs: made control field internal so
	derived internal classes can access it without using base.Control
	which can involved several typecasts.


	* PageAdapter.cs: implemented all members.
	

	* ControlAdapter.cs: implemented all members.
	
	* PageAdapter.cs, ControlAdapter.cs: add MonoTODO's.
++ System.Web.UI/ChangeLog	(working copy)

	* Page.cs (SavePageControlState, LoadPageControlState): save/load 
	adapter state in 2.0 profile.
	
	* Page.cs (CreateHtmlTextWriter): call Browser.CreateHtmlTextWriter()
	in 2.0 profile.
	
	* Page.cs (RenderPage): call CreateHtmlTextWriter() to get the writer
	in 2.0 profile.
	
	* Page.cs (DeterminePostBackMode, InitOutputCache, 
	RenderClientScriptFormDeclaration,	InternalProcessRequest,
	PageStatePersister): added support for PageAdapters.

	* Control.cs (Adapter, ResolveAdapter): implemented.  Adapter calls
	ResolveAdapter and remembers result.  ResolveAdapter checks for adapters
	of the Type hierarchy until it finds one.
	
	* Control.cs (SaveViewStateRecursive, LoadViewStateRecursive): save/load
	adapter state in 2.0 profile.
	
	* HtmlTextWriter.cs (BeginRender, EndRender): added empty virtual methods
	required by 2.0 profile.  These are called by corresponding methods of
	System.Web.UI.Adapters.ControlAdapter.
	
	* Page.cs, Control.cs: don't access Request.Browser if it couldn't have
	any adapters/writers because there are no files in App_Browsers/.

++ Assembly/ChangeLog	(working copy)

	* AssemblyInfo.cs: made InternalsVisibleTo System.Web.test_net_2_0.dll
	to support ControlAdapterTest.ConfigCapabilitiesNotCalled().

++ ChangeLog	(working copy)

	* System.Web_test.dll.sources: added
		System.Web.UI.WebControls.Adapters/MenuAdapterTest.cs
		System.Web.UI.WebControls.Adapters/WebControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HierarchicalDataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/DataBoundControlAdapterTest.cs
		System.Web.UI.WebControls.Adapters/HideDisabledControlAdapterTest.cs
		System.Web.UI.Adapters/PageAdapterTest.cs
		System.Web.UI.Adapters/ControlAdapterTest.cs
		
	* Makefile (RESOURCE_FILES_2): added
		System.Web.Configuration_2.0/RandomRoboBotKeywords.txt

	* Makefile (TEST_RESOURCE_FILES): added 
		Test/mainsoft/NunitWebResources/PageWithAdapter.aspx

	* System.Web.dll.sources: added
		System.Web.Configuration_2.0/CapabilitiesBuild.cs
		System.Web.Configuration_2.0/CapabilitiesChecksum.cs
		System.Web.Configuration_2.0/CapabilitiesResult.cs
		System.Web.Configuration_2.0/ICapabilitiesProcess.cs
		System.Web.Configuration_2.0/nBrowser/Result.cs
		System.Web.Configuration_2.0/nBrowser/NodeTypes.cs
		System.Web.Configuration_2.0/nBrowser/Identification.cs
		System.Web.Configuration_2.0/nBrowser/File.cs
		System.Web.Configuration_2.0/nBrowser/Build.cs
		System.Web.Configuration_2.0/nBrowser/Node.cs
		System.Web.Configuration_2.0/nBrowser/Exception.cs
		
++ System.Web.UI.WebControls.Adapters/ChangeLog	(working copy)

	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs: changed to use ControlAdapter.control
	instead of using base.Control or using a new control field.
	
	* MenuAdapter.cs: added	internal constructor that takes a Menu
	parameter.  The constructor is used when writing unit tests.
	
	* MenuAdapter.cs (OnInit, OnPreRender, RenderBeginTag, 
	RenderContents, RenderEndTag): delegate to base instead of
	Control.
	
	* MenuAdapter.cs (LoadAdapterControlState, SaveAdapterControlState,
	RaisePostBackEvent, RenderItem): implemented.
	

	* WebControlAdapter.cs (RenderContents): changed to call 
	control.RenderContents() instead of control.Render().
	
	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs: added
	internal constructor that takes a parameter of the corresponding
	Control type.  The construct is used when writing unit tests.

++ System.Web.Configuration_2.0/ChangeLog	(working copy)

	* nBrowser/Result.cs, nBrowser/NodeTypes.cs, nBrowser/Identification.cs,
	nBrowser/File.cs, nBrowser/Build.cs, nBrowser/Node.cs, 
	nBrowser/Exception.cs: added.  The code under nBrowser handles *.browser
	files.  It is based on Owen "Ocean" Brady's code, with the following 
	changes and improvements.  Replaced Result.Adapter 
	property with AdapterTypeMap property which maps control Type to adapter
	Type.  Added Result.MarkupTextWriter property.  Added overrides for
	Result.GetAdapters and Result.GetTagWriter to return MarkupTextWriter
	and AdapterTypeMap, resp.  Changed tree building algorithm to not
	depend on nodes with id="Default" and to inject defaultBrowser nodes
	as parents of regular nodes with the same ids.  Changed Node.cs to use
	Item instead of Add when adding a capability or sample header, so that
	values get replaced instead of appended.  Added support for reference 
	nodes (ie. nodes with refID="someID").
		
	* CapabilitiesResult.cs: load RandomRoboBotKeywords.txt resource
	using the correct name.
	
	* RandomRoboBotKeywords.txt: added 

	* HttpCapabilitiesBase.cs (CreateHtmlWriter, Adapters): Added
	support for *.browsers.  Adapters property calls internal virtual
	GetAdapters() method which is overrided in nBrowser.Result 
	returned by nBrowser code.  CreateHtmlWriter uses type specified
	by TagWriter property.
	
++ System.Web.UI.WebControls/ChangeLog	(working copy)

	* DetailsView.cs, ListControl.cs, DataBoundControl.cs, 
	FormView.cs, HierarchicalDataBoundControl.cs, WebControl.cs: 
	added support for using ControlAdapters when present.
	
	* WebControl.cs: fixed implementation of IsEnabled to match 
	documentation.

	* Menu.cs (RenderMenuBody): call Adapter.RenderItem() instead of 
	RenderMenuItem() if an adapter is present.  MenuAdapter.RenderItem() 
	calls back to new Menu.RenderItem() internal method which calls
	RenderMenuItem() with the appropriate parameters.

++ System.Web.Configuration/ChangeLog	(working copy)

	* HttpCapabilitiesBase.cs: changed to use nBrowser for *.browser 
	support.  Also added internal GetConfigCapabilities_called
	flag used by ControlAdapterTest.ConfigCapabilitiesNotCalled() to 
	test that GetConfigCapabilities() is not called during normal page
	processing when there are no files in App_Browsers/.


svn path=/trunk/mcs/; revision=97824
2008-03-09 22:55:22 +00:00
Igor Zelmanovich d192022d97 2008-02-28 Igor Zelmanovich <[email protected]>
* Control.cs:
	fixed exception propagation in case of multiple control with same id
	were found.	 

svn path=/trunk/mcs/; revision=96858
2008-02-28 11:20:48 +00:00
Vladimir Krasnov 809ae9ec07 * Control.cs: fixed ResolveClientUrlInternal for portal url prefixes
svn path=/trunk/mcs/; revision=95020
2008-02-06 13:23:22 +00:00
Igor Zelmanovich f17a851ad5 2008-01-17 Igor Zelmanovich <[email protected]>
* Control.cs: fix ResolveUrl for some cases.


svn path=/trunk/mcs/; revision=93166
2008-01-17 15:34:56 +00:00
Igor Zelmanovich 0751c1ad58 2008-01-17 Igor Zelmanovich <[email protected]>
* BaseCompiler.cs: Assign AppRelativeVirtualPath correctly

2008-01-17 Igor Zelmanovich <[email protected]>

	* Control.cs: consider changes in BaseCompiler.cs.


svn path=/trunk/mcs/; revision=93162
2008-01-17 15:16:39 +00:00
Igor Zelmanovich 46f1994852 2008-01-14 Igor Zelmanovich <[email protected]>
* Control.cs: fixed ResolveClientUrl.
	use Context.FilePath instead of Context.CurrentExecutionPath for 
	resolvint app. releative path.	


svn path=/trunk/mcs/; revision=92844
2008-01-14 11:45:22 +00:00
Konstantin Triger 49848695bd refactoring: add internal modifier to event keys, so they can be accessed from TemplateControl
svn path=/trunk/mcs/; revision=92580
2008-01-10 11:20:12 +00:00
Igor Zelmanovich 4492d14816 2007-12-26 Igor Zelmanovich <[email protected]>
* TraceContext.cs:
	* TraceData.cs:
	make trace considers control state info. 		

2007-12-26 Igor Zelmanovich <[email protected]>

	* Control.cs:
	* Page.cs:
	make Trace considers control state info.		


svn path=/trunk/mcs/; revision=91898
2007-12-26 15:24:35 +00:00
Igor Zelmanovich c7166273ee for TARGET_J2EE only:
implement integration with JSF.

svn path=/trunk/mcs/; revision=91823
2007-12-23 10:36:14 +00:00
Igor Zelmanovich a5952c8ef9 refactoring
svn path=/branches/mainsoft/JSF/mcs/; revision=91686
2007-12-20 10:26:04 +00:00
Igor Zelmanovich 4148401c29 2007-12-20 Igor Zelmanovich <[email protected]>
* Page.cs:
	* Control.cs:
	* ClientScriptManager.cs:		
	refactoring: removed Page.LifeCycle internal API, 
	used Control's stateMask flag instead. 


svn path=/trunk/mcs/; revision=91685
2007-12-20 10:11:28 +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 c339ecd017 support Transfer/Execute and CrossPagePostBack
svn path=/branches/mainsoft/JSF/mcs/; revision=91218
2007-12-13 11:49:23 +00:00
Konstantin Triger 78ca14f10b root the resolution though JSF
svn path=/branches/mainsoft/JSF/mcs/; revision=91078
2007-12-11 10:14:20 +00:00
Igor Zelmanovich 54ee0aa5d0 fixed ResolveClientUrl and UniqueID
svn path=/branches/mainsoft/JSF/mcs/; revision=91048
2007-12-10 15:19:51 +00:00
Igor Zelmanovich e1616dd47f fixed HttpContext.CurrentExecutionFilePath for Transfer/Execute
used JSF API for ResolveClientUrl and create action url.

svn path=/branches/mainsoft/JSF/mcs/; revision=90798
2007-12-06 10:08:04 +00:00
Igor Zelmanovich daeb045d28 2007-11-07 Igor Zelmanovich <[email protected]>
* Control.cs: removes '#define MONO_TRACE'.
	It allows to run MONO in release mode without supplementary trace info.	


svn path=/trunk/mcs/; revision=89097
2007-11-07 12:40:03 +00:00
Marek Habersack 6cddac9528 2007-11-03 Marek Habersack <[email protected]>
* Control.cs: need to append a "/" to TemplateSourceDirectory
	before calling VirtualPathUtility.Combine, in order to get the
	correct physical path to the requested file. Combine looks for the
	last occurrence of "/" to determine where the relative paths
	should be joined.

svn path=/trunk/mcs/; revision=88765
2007-11-03 01:38:00 +00:00
Marek Habersack d680953205 The fix for bug #325303 is for the 2.0 profile only
svn path=/trunk/mcs/; revision=87726
2007-10-17 23:04:47 +00:00
Marek Habersack 5f1046ea5f 2007-10-17 Marek Habersack <[email protected]>
* Control.cs: properly configure control visibility in
	PreRenderRecursiveInternal. The check must be made by looking at
	the Visible value, not at the flags directly. Fixes bug #325303

svn path=/trunk/mcs/; revision=87663
2007-10-17 13:53:18 +00:00
Marek Habersack e61db64874 reformatting
svn path=/trunk/mcs/; revision=85097
2007-08-31 11:51:04 +00:00
Vladimir Krasnov 8efb5783bf * Control.cs: optimized performance in InitControlsCache()
svn path=/trunk/mcs/; revision=84990
2007-08-29 07:51:52 +00:00
Juraj Skripsky 9f0a2c9ab9 2007-08-23 Juraj Skripsky <[email protected]>
* Control.cs (InitControlsCache): Make the hash table case insensitive to
	make FindControl compatible with MS.net again. Add LAMESPEC note. 


svn path=/trunk/mcs/; revision=84694
2007-08-23 13:16:28 +00:00
Vladimir Krasnov 3bb6bbe8df * Control.cs: optimized GetDirectory call in ResolveClientUrl
svn path=/trunk/mcs/; revision=84076
2007-08-14 13:45:38 +00:00
Marek Habersack de3974edad 2007-08-14 Marek Habersack <[email protected]>
* SessionStateServerHandler.cs: remove unused field.

2007-08-14  Marek Habersack  <[email protected]>

	* Control.cs: include the actual exception when reporting control
	id clash.

2007-08-14  Marek Habersack  <[email protected]>

	* Roles.cs: remove unused field.

	* SqlMembershipProvider.cs: remove unused variable.

2007-08-14  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: remove unused variable.

	* ChangePassword.cs: remove unused variable.

	* RoleGroupCollection.cs: OnValidate shouldn't be overridden.

2007-08-14  Marek Habersack  <[email protected]>

	* SqlProfileProvider.cs: remove unused variable.

2007-08-14  Marek Habersack  <[email protected]>

	* XmlSiteMapProvider.cs: do not hide this_lock.



svn path=/trunk/mcs/; revision=84041
2007-08-14 10:52:59 +00:00
Vladimir Krasnov 0be598f423 * Control.cs: refactoring of LookForControlByName with caching
svn path=/trunk/mcs/; revision=83578
2007-08-07 11:34:40 +00:00
Igor Zelmanovich 82bb597bbe 2007-08-06 Igor Zelmanovich <[email protected]>
* Control.cs: fixed: control ID management.			

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

	* ControlTest.cs:
	Added new tests.

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

	* DataGridTest.cs:
	* DetailsViewTest.cs:
	fixed tests.


svn path=/trunk/mcs/; revision=83536
2007-08-06 14:45:58 +00:00
Igor Zelmanovich 689135bd7e 2007-08-06 Igor Zelmanovich <[email protected]>
* Control.cs: refactoring: code formatting only.		


svn path=/trunk/mcs/; revision=83521
2007-08-06 07:16:55 +00:00
Vladimir Krasnov 79e28d9991 * Control.cs: fixed AppRelativeTemplateSourceDirectory that should depend on AppRelativeVirtualPath
* Control.jvm.cs: fixed TemplateSourceDirectory that should depend on AppRelativeTemplateSourceDirectory

svn path=/trunk/mcs/; revision=83085
2007-07-31 14:32:28 +00:00
Konstantin Triger ca9046161b calculate AppRelativeTemplateSourceDirectory from HttpContext when control is not in control collection
svn path=/trunk/mcs/; revision=82469
2007-07-23 09:01:55 +00:00
Konstantin Triger d753e8fc6d base AppRelativeTemplateSourceDirectory property on TemplateControl; implement special behavior of Control.TemplateControl for TemplateControl instances
svn path=/trunk/mcs/; revision=82443
2007-07-22 15:41:51 +00:00
Marek Habersack 93dd9afb5c 2007-07-16 Marek Habersack <[email protected]>
* HtmlHeadBuilder.cs: the <meta> tag should be supported as well.

	* HtmlTitle.cs: if the tag has any children, or the render method
	delegate has been defined, render the children. Output the
	contents of Text otherwise. Fixes bug #82102

svn path=/trunk/mcs/; revision=82025
2007-07-16 11:31:54 +00:00
Igor Zelmanovich 99730e2187 2007-07-16 Igor Zelmanovich <[email protected]>
* Control.cs: fixed EnsureID.
	ID is not assigned, if already was set.


svn path=/trunk/mcs/; revision=82022
2007-07-16 10:23:09 +00:00
Marek Habersack 8f43bfc166 2007-07-02 Marek Habersack <[email protected]>
* Control.cs: make sure TemplateSourceDirectory returns meaningful
	results in the 1.1 profile. Fixes bug #81950.

svn path=/trunk/mcs/; revision=81163
2007-07-02 09:14:17 +00:00
Igor Zelmanovich 5f399ab923 2007-06-18 Igor Zelmanovich <[email protected]>
* Control.cs: revised the changes from r79982. 	


svn path=/trunk/mcs/; revision=80003
2007-06-18 13:21:15 +00:00
Igor Zelmanovich 2394f114b5 2007-06-18 Igor Zelmanovich <[email protected]>
* Control.cs: optimized flow in ResolveClientUrl. 	


svn path=/trunk/mcs/; revision=79982
2007-06-18 08:36:49 +00:00
Marek Habersack a74b94c402 This code is for 1.1 only
svn path=/trunk/mcs/; revision=79022
2007-06-08 23:53:55 +00:00
Marek Habersack 1fcd4ba60d 2007-06-09 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: TemplateControl is assigned for
	controls that are placed within ContentPlaceHolder and not for the
	ContentPlaceHolder itself.
	No longer add the overriden version of TemplateSourceDirectory to
	the generated source, all the work is now done in
	Control.TemplateSourceDirectory.

	* BaseCompiler.cs: AppRelativeVirtualPath shouldn't end with a
	slash, for compatibility with MS.NET

2007-06-09  Marek Habersack  <[email protected]>

	* TemplateControl.cs: make sure TemplateControl is set to the
	current control.

	* Control.cs: TemplateControl property goes up the parent chain if
	the property isn't defined in the current control.
	TemplateSourceDir finally implemented correctly.

2007-06-09  Marek Habersack  <[email protected]>

	* ControlTest.cs: enabled two tests that hadn't been working
	before.


svn path=/trunk/mcs/; revision=79021
2007-06-08 23:51:23 +00:00
Marek Habersack 2addefc24d 2007-06-06 Marek Habersack <[email protected]>
* Control.cs: more changes to the way TemplateSourceDirectory
	works in the 2.0 profile. Take into account situations when a
	control is placed in a UserControl (.ascx) and only then fall back
	to the parent for its TemplateSourceDirectory.

svn path=/trunk/mcs/; revision=78731
2007-06-06 13:06:23 +00:00
Marek Habersack bf0152c8c5 2007-06-05 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: TemplateSourceDirectory in the 2.0
	profile uses the TemplateControl property instead of Parent. This
	allows to return the correct path.

2007-06-05  Marek Habersack  <[email protected]>

	* Control.cs: TemplateSourceDirectory uses TemplateControl to
	lookup the virtual source directory in the 2.0 instead of the
	Parent.
	ResolveClientUrl copes with empty TemplateSourceDirectory in the
	correct way now - the check is made after the basePath checks.
	The changes above make ResolveClientUrl work properly when called
	from within a control residing in a TemplateControl.


svn path=/trunk/mcs/; revision=78624
2007-06-05 12:50:12 +00:00
Marek Habersack 9c1c012ea4 2007-05-10 Marek Habersack <[email protected]>
* 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
2007-05-10 21:43:44 +00:00
Marek Habersack 279d12b449 Another in the series of compatibility fixes discovered thanks to the QuickStarts... :)
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
2007-05-04 10:58:11 +00:00
Igor Zelmanovich b353b45ab9 2007-05-02 Igor Zelmanovich <[email protected]>
* 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
2007-05-02 13:27:14 +00:00
Igor Zelmanovich a1a9d2c48e 2007-05-02 Igor Zelmanovich <[email protected]>
* Control.cs:
	ResolveClientUrl considers TemplateSourceDirectory property.


svn path=/trunk/mcs/; revision=76558
2007-05-02 09:45:24 +00:00
Konstantin Triger c1360afb03 use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75429
2007-04-05 11:43:27 +00:00
Igor Zelmanovich 49957fdafc 2007-03-20 Igor Zelmanovich <[email protected]>
* Control.cs: fixed ResolveClientUrl method.

svn path=/trunk/mcs/; revision=74678
2007-03-20 11:25:20 +00:00
Vladimir Krasnov 5ac24f7550 * Control.cs: fixed AppRelativeTemplateSourceDirectory property, should not return AppRelativeTemplateSourceDirectory of master page
svn path=/trunk/mcs/; revision=73436
2007-02-26 16:06:17 +00:00
Igor Zelmanovich 6631487c2c 2007-02-19 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs:
	* Control.cs:			 
	* Page.cs:
	implemented PostBackOptions.TrackFocus feature.	

svn path=/trunk/mcs/; revision=73123
2007-02-19 17:38:05 +00:00
Eyal Alalouf 9396a91227 add Http callback support for J2EE portlets.
svn path=/trunk/mcs/; revision=73071
2007-02-18 12:28:38 +00:00