Commit Graph
1211 Commits
Author SHA1 Message Date
Igor Zelmanovich 22862a356e 2007-07-24 Igor Zelmanovich <[email protected]>
* TreeView.cs: refactoring:
	* TreeView.js:
	used ClientScriptManager.GetCallbackEventReference API instead calling 
	WebForm_DoCallback explicit.
		
2007-07-24 Igor Zelmanovich <[email protected]>

	* ClientScriptManager.cs: fixed: GetCallbackEventReference method.
		

svn path=/trunk/mcs/; revision=82560
2007-07-24 12:19:00 +00:00
Igor Zelmanovich 7f257ad214 fixed line ending
svn path=/trunk/mcs/; revision=82555
2007-07-24 12:00:17 +00:00
Igor Zelmanovich cda4e10986 2007-07-15 Igor Zelmanovich <[email protected]>
* BaseValidator.cs: for NET_2_0: fixed client side validation.
	validation is performed in WebForm_DoPostback, 
	and there is no need to do it twice in ValidatorOnSubmit.


svn path=/trunk/mcs/; revision=82011
2007-07-15 14:33:35 +00:00
Igor Zelmanovich 69f0efdf29 fixed WebForm_DoCallback function signature.
make it compatible with ClientScriptManager.GetCallbackEventReference
method and MS version.

svn path=/trunk/mcs/; revision=82007
2007-07-15 11:58:46 +00:00
Igor Zelmanovich 7ab042598b 2007-07-15 Igor Zelmanovich <[email protected]>
* Calendar.cs: fixed: correct 'id' attribute is rendered.

svn path=/trunk/mcs/; revision=82005
2007-07-15 10:33:58 +00:00
Vladimir Krasnov a8cc6f2470 * ListItemCollection.cs: optimized SetDirty method
svn path=/trunk/mcs/; revision=81698
2007-07-10 11:58:02 +00:00
Vladimir Krasnov d37751a27d * ListControl.cs:
* ListItem.cs:
* ListItemCollection.cs: controls based on ListControl should not save view state before than TrackViewState called

svn path=/trunk/mcs/; revision=81396
2007-07-05 14:43:44 +00:00
Vladimir Krasnov 00f78c07c0 * WebControl.cs: fixed AddDisplayStyleAttribute, returns if ControlStyle is not created
svn path=/trunk/mcs/; revision=81388
2007-07-05 12:39:13 +00:00
Marek Habersack 1518e8133d 2007-07-02 Marek Habersack <[email protected]>
* WebControl.cs: Revert r80368, as it wasn't the correct
	fix. Fixes bug #81945.

	* ListControl.cs: if there are no items in the collection, do not
	return an empty ArrayList from GetSelectedIndicesInternal. Fixes
	bug #81945 and properly fixes bug #78533.

	* ListItemCollection.cs: if there are no items in collection,
	return null.

svn path=/trunk/mcs/; revision=81170
2007-07-02 10:52:13 +00:00
Igor Zelmanovich 0afd07a577 2007-07-01 Igor Zelmanovich <[email protected]>
* GridView.cs:
	the Pager is created but unvisible for only one page. 
	the Patch submitted by Dumitru Ban [[email protected]]	

2007-07-01 Igor Zelmanovich <[email protected]>

	* GridViewTest.cs:
	Added new tests


svn path=/trunk/mcs/; revision=81139
2007-07-01 10:58:58 +00:00
Igor Zelmanovich 64055b640d 2007-07-01 Igor Zelmanovich <[email protected]>
* FormView.cs:
	* DetailView.cs:
	* GridView.cs:
	does not requires data binding if any ITemplate property is set.

2007-07-01 Igor Zelmanovich <[email protected]>

	* FormViewTest.cs:
	* DetailViewTest.cs:
	* GridViewTest.cs:
	Added new tests



svn path=/trunk/mcs/; revision=81138
2007-07-01 09:28:15 +00:00
Vladimir Krasnov 2cb275539d fixed broken 1.1 compatibility
svn path=/trunk/mcs/; revision=80616
2007-06-24 09:21:05 +00:00
Vladimir Krasnov 487467826d * CheckBox.cs: fixed Render, HasAttributes called instead Attributes.Count
svn path=/trunk/mcs/; revision=80612
2007-06-24 07:56:34 +00:00
Igor Zelmanovich 3b065bb117 2007-06-24 Igor Zelmanovich <[email protected]>
* GridView.cs: fixed AllowPaging feature:
	When the AllowPaging is true the GridView control should automatically 
	hide the pager row when the data source contains fewer than 2 records.	
	patch Patch submitted by Dumitru Ban [[email protected]]	


svn path=/trunk/mcs/; revision=80611
2007-06-24 07:51:31 +00:00
Marek Habersack 7fb054504b 2007-06-20 Marek Habersack <[email protected]>
* WebControl.cs: if savedState is a Triplet, take the actual state
	data from savedState.First. Also make sure that the data is a
	Pair. Fixes bug #78533.

svn path=/trunk/mcs/; revision=80368
2007-06-20 21:35:49 +00:00
Marek Habersack 0b80ac0b50 2007-06-20 Marek Habersack <[email protected]>
* OutputCacheModule.cs: use Context.InternalCache.

	* Cache.cs: 2.0 profile uses generic containers to keep the cache
	entries.
	Gotten rid of the InsertPrivate and InsertInternal methods. The
	latter was moved to one of the Insert overloads.
	Private entries are no longer handled specifically, because the
	internal cache is now kept in a separate object.

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

	* AppResourcesCompiler.cs: use HttpRuntime.InternalCache to keep
	private entries.
	* CachingCompiler.cs: as above
	* AspGenerator.cs: as above

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

	* DataSourceCacheManager.cs: use HttpContext.Current.InternalCache
	to keep private entries.
	* XmlDataSource.cs: as above

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

	* SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
	private entries.

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

	* SessionInProcHandler.cs: use HttpRuntime.InternalCache to keep
	the internal entries.

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

	* BasePartialCachingControl.cs: use HttpRuntime.InternalCache to
	keep the private entries.

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

	* HttpRuntime.cs: added new internal property, InternalCache, to
	keep all the internal cache entries instead of mixing them with
	the public cache ones.
	Do not invoke Cache.InvokePrivateCallbacks - this method no longer
	exists.

	* HttpResponse.cs: private entries are now kept in
	Context.InternalCache.

	* HttpContext.cs: added new internal property, InternalCache,
	which returns the HttpRuntime.InternalCache value.

Fixes bug #81690


svn path=/trunk/mcs/; revision=80321
2007-06-20 15:42:36 +00:00
Vladimir Krasnov b485c0b75d * BaseValidator.cs: RegisterValidatorCommonScript, fixed type passed to ClientScriptManager
svn path=/trunk/mcs/; revision=78305
2007-05-31 09:10:45 +00:00
Igor Zelmanovich 86644d0e33 2007-05-29 Igor Zelmanovich <[email protected]>
* ObjectDataSourceView.cs:
	* SiteMapDataSource.cs:
	* SqlDataSource.cs:
	* SqlDataSourceView.cs:
	DataSourceChanged and DataSourceViewChanged are raised in right case, when
	different properties changed their value.				


svn path=/trunk/mcs/; revision=78131
2007-05-29 14:59:47 +00:00
Igor Zelmanovich ce6459ba68 2007-05-27 Igor Zelmanovich <[email protected]>
* ObjectDataSourceView.cs: fixed SelectMethod and SelectCountMethod properties:
	when changed, DataSourceViewChanged event is raised.
	
	* SqlDataSourceView: fixed SelectCommand property:
	when changed, DataSourceViewChanged event is raised.


svn path=/trunk/mcs/; revision=78009
2007-05-27 13:23:17 +00:00
Marek Habersack dc1d6c47b5 2007-05-25 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: CreateDataObject must pay attention to
	TypeConverter attributes on the property being converted.

svn path=/trunk/mcs/; revision=77952
2007-05-25 17:06:44 +00:00
Igor Zelmanovich 2bfefb82d5 2007-05-24 Igor Zelmanovich <[email protected]>
* Menu.cs: fixed: alt attribute is rendered as well.


svn path=/trunk/mcs/; revision=77917
2007-05-24 16:20:37 +00:00
Igor Zelmanovich 4dfdc0287d fixed line ending
svn path=/trunk/mcs/; revision=77916
2007-05-24 16:07:18 +00:00
Marek Habersack b58a012a86 2007-05-16 Marek Habersack <[email protected]>
* WebUIValidation.js: ported ToCurrency and ToDate converters from
	WebUIValidation_2.0.js.

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

	* CompareValidator.cs: formatting changes


svn path=/trunk/mcs/; revision=77470
2007-05-16 11:36:30 +00:00
Marek Habersack c7d897bbf4 2007-05-15 Marek Habersack <[email protected]>
* TemplateParser.cs: refactoring - use HttpApplication.LoadType to
	actually look up types.
	
	* ControlBuilder.cs: as above

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

	* BuildProviderCollection.cs: refactoring - use
	HttpApplication.LoadType to actually look up the type.

	* HttpHandlerAction.cs: as above

	* WebConfigurationHost.cs: refactoring - moved the LoadType to
	HttpApplication to share the code between 1.1 and 2.0 profiles.

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

	* ObjectDataSourceView.cs: refactoring - use
	HttpApplication.LoadType to look up types.

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

	* HttpApplication.cs: refactoring - moved LoadType from
	WebConfigurationHost here and made it internal static, in order to
	make the code avaliable from all the places where extended type
	loading is required.


svn path=/trunk/mcs/; revision=77396
2007-05-15 09:35:00 +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 7d08bcb697 2007-05-10 Marek Habersack <[email protected]>
* Wizard.cs: if a next/previous step handler modifies
	ActiveStepIndex do not, respectively, increase/decrease the
	current step, but use whatever was set in the handler.

Also set eol-style to native and removed CRLFs, plus some reformatting.

svn path=/trunk/mcs/; revision=77127
2007-05-10 12:34:52 +00:00
Marek Habersack 83063b42bd More TreeView rendering fixes
2007-05-09  Marek Habersack  <[email protected]>

	* TreeNodeStyleCollection.cs: do not set font's underline flag to
	false, set it to its own value instead.

	* TreeView.cs: if level style exists and has ChildNodesPadding
	set, it takes precedence over the node style setting (if any).

svn path=/trunk/mcs/; revision=77002
2007-05-09 12:14:58 +00:00
Marek Habersack c5f417422d 2007-05-08 Marek Habersack <[email protected]>
* TreeView.cs: children padding is rendered only before and after
	the children are rendered, not between them. Also, render padding
	only if there are any nodes to follow the current one.

svn path=/trunk/mcs/; revision=76905
2007-05-08 09:01:54 +00:00
Marek Habersack c02e33ec1f 2007-05-07 Marek Habersack <[email protected]>
* Wizard.cs: additional checks to see whether the wizard needs to
	move to a next step or not. Fixes bug #81532. Patch sent by Mike
	Morano <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=76819
2007-05-07 09:34:29 +00:00
Igor Zelmanovich 1dfc27e49e 2007-05-07 Igor Zelmanovich <[email protected]>
* FormView.cs: fixed:
	avoid NullReferenceException when used EditTemplate w/o binding 
	directive such Eval or Bind.	 


svn path=/trunk/mcs/; revision=76814
2007-05-07 09:19:02 +00:00
Igor Zelmanovich 676b57792a 2007-05-07 Igor Zelmanovich <[email protected]>
* MenuItem.cs: fixed: 
	when 'Value' property is not set, value of 'Text' property is used 
	instead and vice versa.

	* MenuTest.cs:
	new tests were added.	

svn path=/trunk/mcs/; revision=76809
2007-05-07 08:49:07 +00:00
Igor Zelmanovich aa20dc91b4 2007-05-06 Igor Zelmanovich <[email protected]>
* TreeNode.cs: fixed: 
	when 'Value' property is not set, value of 'Text' property is used 
	instead and vice versa.

	* TreeNodeTest.cs:
	* TreeViewTest.cs:
	new tests were added.	


svn path=/trunk/mcs/; revision=76782
2007-05-06 13:55:51 +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
Marek Habersack af58980fef 2007-05-03 Marek Habersack <[email protected]>
* TreeView.cs: honor ChildNodesPadding of the NodeStyle.

svn path=/trunk/mcs/; revision=76631
2007-05-03 17:37:16 +00:00
Igor Zelmanovich 450ce08119 2007-05-03 Igor Zelmanovich <[email protected]>
* BrowserCapabilities.cs:
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* AggregateCacheDependency.cs:
	* CacheDependency.cs:	
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* AttributeCollection.cs:
	* DataBindingHandlerAttribute.cs:
	* HtmlTextWriter.cs:
	* PartialCachingControl.cs:
	* TemplateControl.cs:
	* TemplateControl.jvm.cs:
	* XPathBinder.cs:						
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* ControlPropertyNameConverter.css:
	* FontUnitConverter.cs:
	* UnitConverter.cs:
	* ValidatedControlConverter.cs:			
	added missing API.	


svn path=/trunk/mcs/; revision=76622
2007-05-03 14:29:09 +00:00
Marek Habersack 232398159d 2007-05-03 Marek Habersack <[email protected]>
* TreeNode.cs: correct version of the fix in r76488. Nodes
	retrieved from a navigation data source which have empty URL will
	not be selectable.

svn path=/trunk/mcs/; revision=76604
2007-05-03 10:39:43 +00:00
Marek Habersack b573b5e1ed 2007-05-03 Marek Habersack <[email protected]>
* TreeViewTest.cs: revert r76541.

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

	* TreeView.cs: revert r76488, it wasn't entirely correct. I need
	to investigate the special cases it solved a bit more.

svn path=/trunk/mcs/; revision=76597
2007-05-03 09:32:27 +00:00
Igor Zelmanovich 107e1f2983 2007-05-02 Igor Zelmanovich <[email protected]>
* SqlDataSourceView.cs:
	make CancelSelectOnNullParameter property works.


svn path=/trunk/mcs/; revision=76559
2007-05-02 09:46:07 +00:00
Marek Habersack 8f217b10af 2007-05-01 Marek Habersack <[email protected]>
* HttpCapabilitiesBase.cs: move the User-Agent code to a separate
	internal method.

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

	* HtmlForm.cs: do not use User-Agent directly, we must take
	ClientTarget into account.

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

	* BaseValidator.cs: do not use User-Agent directly, we must take
	ClientTarget into account.

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

	* PageParser.cs: clientTarget comparisons must be case-insensitive


svn path=/trunk/mcs/; revision=76522
2007-05-01 11:01:22 +00:00
Marek Habersack 4dc04ab9b3 2007-04-30 Marek Habersack <[email protected]>
* TreeView.cs: bring rendering closer to the MS.NET rendering.

svn path=/trunk/mcs/; revision=76488
2007-04-30 12:26:35 +00:00
Marek Habersack d105ea0838 2007-04-30 Marek Habersack <[email protected]>
* ConnectionStringsExpressionBuilder.cs: support expressions with
	suffixes .ProviderName and .ConnectionString (case-insensitie) and
	generate a call to GetConnectionStringProviderName in the former
	case. Fixes bug #81490

2007-04-30  Marek Habersack  <[email protected]>

	* SqlDataSource.cs: do not catch the exception if ProviderName is
	not null or empty (as per docs and what MS.NET does).

2007-04-30  Marek Habersack  <[email protected]>

	* DbProviderFactories.cs: throw the same exception MS.NET does.

svn path=/trunk/mcs/; revision=76486
2007-04-30 11:02:24 +00:00
Igor Zelmanovich 7808e05919 2007-04-19 Igor Zelmanovich <[email protected]>
* SqlMembershipProvider.cs:
	ChangePassword throws exception if new password has invalid format.	

2007-04-19 Igor Zelmanovich <[email protected]>

	* ChangePassword.cs:
	does not accept invalid new password.	


svn path=/trunk/mcs/; revision=75955
2007-04-19 15:05:39 +00:00
Igor Zelmanovich cbfbe9d5c3 2007-04-18 Igor Zelmanovich <[email protected]>
* Xml.cs:
	* XmlDataSource.cs:
	added MonoLimitation attributes		

svn path=/trunk/mcs/; revision=75884
2007-04-18 14:51:20 +00:00
Igor Zelmanovich 10c75fd1ec 2007-04-18 Igor Zelmanovich <[email protected]>
* BaseValidator.cs: for TARGET_J2EE: 
	used Page.Request.Browser to determine RenderUplevel

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

	* HtmlForm.cs: for TARGET_J2EE: 
	used Page.Request.Browser to determine RenderUplevel


svn path=/trunk/mcs/; revision=75870
2007-04-18 11:58:21 +00:00
Igor Zelmanovich 51ce33d915 2007-04-12 Igor Zelmanovich <[email protected]>
* GridView.cs:
	when databound with AutoGenerateColumns = true, 
	data source enumerator created only once.	


svn path=/trunk/mcs/; revision=75865
2007-04-18 10:26:36 +00:00
Marek Habersack 8440705fe9 2007-04-18 Marek Habersack <[email protected]>
* SiteMapDataSource.cs: query the site map for the current node
	when configured to use it as the start point. Fixes bug #81376,
	patch from Mike Morano <[email protected]>.


svn path=/trunk/mcs/; revision=75864
2007-04-18 10:16:21 +00:00
Marek Habersack a7ac151aa1 2007-04-18 Marek Habersack <[email protected]>
* Calendar.cs: change year/month format to be culture aware. Fix
	for bug #81390. Patch submitted by Atsushi Enomoto
	<[email protected]>

svn path=/trunk/mcs/; revision=75861
2007-04-18 07:47:34 +00:00
Daniel Nauck e85d932b72 2007-04-17 Daniel Nauck <[email protected]>
* PasswordRecovery.cs: fixed typo (AnswerLabel.Text).


svn path=/trunk/mcs/; revision=75834
2007-04-17 16:45:37 +00:00
Marek Habersack b08d3647e6 2007-04-17 Marek Habersack <[email protected]>
* culevel/culevel.exe.sources: added

	* culevel/Makefile (thisdir): added

	* culevel/CompileUplevel.cs: added

	* Makefile (thisdir): added the culevel subdirectory to the list.

2007-04-17  Marek Habersack  <[email protected]>

	* Makefile (thisdir): added tools/culevel to the list of
	subdirectories - it must be compiled before compiling the classes
	since System.Web depends on it.

2007-04-17  Marek Habersack  <[email protected]>

	* Makefile (System.Web/UplevelHelper.cs): autogenerate the file if
	it doesn't exist.

	* System.Web.dll.sources: added the System.Web/UplevelHelper.cs
	file. It is autogenerated by the culevel compiler.

	* UplevelHelperDefinitions.xml: added default uplevel browsers
	definition file. This serves as input to the culevel compiler in
	the tools directory at the top of the mcs tree.

2007-04-17  Marek Habersack  <[email protected]>

	* WebUIValidation_2.0.js: added HaveRegexp () function to detect
	if the browser supports the RegExp class. Use GetElement ()
	everywhere.

	* WebUIValidation.js: added HaveRegexp () function to detect if
	the browser supports the RegExp class.

	* webform.js: use WebForm_GetElementById everywhere.

2007-04-17  Marek Habersack  <[email protected]>

	* HtmlForm.cs: use the new uplevel browser detection code.

2007-04-17  Marek Habersack  <[email protected]>

	* BaseValidator.cs: use the new uplevel browser detection code.


svn path=/trunk/mcs/; revision=75818
2007-04-17 13:13:03 +00:00
Igor Zelmanovich 7320e371e3 2007-04-12 Igor Zelmanovich <[email protected]>
* SqlDataSourceView.cs: fixed: InitializeParameters:
	restored flow, broken in r75137.

svn path=/trunk/mcs/; revision=75729
2007-04-15 14:03:40 +00:00