Commit Graph
177 Commits
Author SHA1 Message Date
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
Adar Wesley 4be48fc47e 2007-02-01 Adar Wesley <[email protected]>
* FormView.cs: fixed events ModeChanging and ModeChanged
        to be raized in all relevant situations.

2007-02-01  Adar Wesley <[email protected]>

        * Control.cs: Changed UniqueId implementation to have '$' and not ':'
        to conform to MS.  This led to updating several Tests that referenced
        the UniqueId as string.

svn path=/trunk/mcs/; revision=72102
2007-02-01 16:21:30 +00:00
Eyal Alalouf 3d357ffc84 Add support for multiple fomrs on the client side in case of TARGET_J2EE portal support.
svn path=/trunk/mcs/; revision=71699
2007-01-25 18:12:05 +00:00
Miguel de Icaza 6b4c7232fd * SiteMapNode.cs (GetExplicitResourceString): implement.
* HttpContext.cs (GetGlobalResourceObject): remove unused variable.

        * StaticFileHandler.cs (ProcessRequest): remove unused variable.

        * HttpApplication.cs (ProcessError): Remove unused variable.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ClientBuildManager.cs: Remove unused variable (this could be a
        real problem, we never use the appPhysicalTargetDir)

        * AssemblyBuilder.cs: Remove unused field.

        * AppResourceFilesCollection.cs: Remove unused field.

        * TemplateControlCompiler.cs (GetExpressionFromString): Remove
        unused variable.

        * AppResourcesCompiler.cs: Remove unused variable.

        * AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
        parameter.

        * PageCompiler.cs: Put InternalCreatePageProperty inside the
        NET_2_0 block to eliminate warnings.

2007-01-20  Miguel de Icaza  <[email protected]>

        * HandlerFactoryConfiguration.cs (LoadType): remove unused
        variable.
        (ctor): do not assign parent, we do not use it, keep the code for
        reference.

2007-01-20  Miguel de Icaza  <[email protected]>

        * ApplicationManager.cs: Remove unused variable.
        (ShutdownAll) remove unused variables.

        * ApplicationHost.cs: Protect create_dir lock

2007-01-20  Miguel de Icaza  <[email protected]>

        * SqlRoleProvider.cs: comment out unused code.

        * SqlMembershipProvider.cs: Removed unused variables.
        Remove unused variable.

        * AnonymousIdentificationModule.cs (ClearAnonymousIdentifier):
        remove unused variable.   This might be a real bug.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionStateModule.cs: Removed unused variables.

2007-01-20  Miguel de Icaza  <[email protected]>

        * SessionDictionary.cs: Removed unused variable (dirty).

2007-01-20  Miguel de Icaza  <[email protected]>

        * XhtmlTextWriter.cs: comment out unused code.

        * ThemeProvider.cs: comment out unused code.

        * DataSourceView.cs: Comment unused variable.

        * ClientScriptManager.cs: Put the expandoAttributes inside the 2.0
        code

        * Control.cs: Put _templateControl inside the NET_2_0 ifdef

2007-01-20  Miguel de Icaza  <[email protected]>

        * HtmlHead.cs: comment out unused code, in particular metadata is
        commented out because nothing could have triggered its creation.

        * HtmlButton.cs: Move declaration of `csm' inside the 1.1 case.

2007-01-20  Miguel de Icaza  <[email protected]>

        * DataControlFieldCollection.cs (RemoveAt): remove unused
        variable.

        * RoleGroupCollection.cs (OnValidate): Flag as protected, as it
        should not show up.

        * RadioButton.cs (RaisePostDataChangedEvent): This method was not
        used in 1.0, so put the whole method in 2.0

2007-01-20  Miguel de Icaza  <[email protected]>

        * WebPart.cs: Remove

        * PersonalizableAttribute.cs: Remove extra API that was wrong as well.

2006-11-28  Miguel de Icaza  <[email protected]>

        * WebPart.cs:

2007-01-20  Miguel de Icaza  <[email protected]>

        * FileUtils.cs (CreateTemporaryFile): Remove unused variable.



svn path=/trunk/mcs/; revision=71399
2007-01-20 22:42:04 +00:00
Konstantin Triger 496fa4706e Add extra checks to avoid NullReference exception
svn path=/trunk/mcs/; revision=71286
2007-01-18 16:01:29 +00:00