Commit Graph
309 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier e181b32c76 Avoid warnings
svn path=/trunk/mcs/; revision=21122
2003-12-14 17:06:24 +00:00
Jackson Harper d06c56531d * RepeatInfo.cs: When rendering vertically figure out how many
colmns are not going to be filled in in the last row, and adjust
	things accordingly. This fixes bug #51863.

svn path=/trunk/mcs/; revision=21015
2003-12-11 09:02:26 +00:00
Alon Gazit e3d1ad040e Change the implementation of the properties HorizontalAlign and VerticalAlign.
The current implementation has no influence on the rendered Html.

svn path=/trunk/mcs/; revision=20969
2003-12-10 16:21:10 +00:00
Alon Gazit 43b11ae8dc Add setting of The WRAP flag in the Wrap property's set method.
svn path=/trunk/mcs/; revision=20958
2003-12-10 12:45:01 +00:00
Jackson Harper 171a7610c5 * PagedDataSource.cs (PrivateICollectionEnumerator.MoveNext):
Increment counter when moving to start. Fixes bug #51926.

svn path=/trunk/mcs/; revision=20940
2003-12-09 20:02:21 +00:00
Jackson Harper 33394bad6a * HyperLinkColumn.cs: Fix navigate url rendering. Patch by
Benjamin Jemlich. Fixes bug #51823.

svn path=/trunk/mcs/; revision=20889
2003-12-08 19:19:23 +00:00
Alon Gazit 422e251479 Panel doesn't render nowrap attribute while the Wrap property is set to
false.the problem was in Panel.AddAttributesToRender().

svn path=/trunk/mcs/; revision=20832
2003-12-07 10:41:44 +00:00
Gonzalo Paniagua Javier e476550a7e 2003-12-04 Gonzalo Paniagua Javier <[email protected]>
* TableItemStyle.cs: merge TableItemStyle properties when Style is
	empty. Fixes bug #51689. Patch by Alon Gazit <[email protected]>.

svn path=/trunk/mcs/; revision=20792
2003-12-04 21:52:53 +00:00
Gonzalo Paniagua Javier dc1fbf2e37 Removed obsolete files
svn path=/trunk/mcs/; revision=20767
2003-12-04 12:24:53 +00:00
Gonzalo Paniagua Javier 3d5f46ed19 2003-12-03 Gonzalo Paniagua Javier <[email protected]>
* RadioButtonList.cs: render tabindex attribute if needed. Fixes bug
	#51648.

svn path=/trunk/mcs/; revision=20749
2003-12-03 18:40:59 +00:00
Gonzalo Paniagua Javier 92bf49b0f6 2003-12-02 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added WebConfigurationSettings.

	* System.Web/HttpContext.cs: updated GetConfig and GetAppConfig to new
	API.

	* System.Web/HttpResponse.cs: separate initialization of the HttpWriter,
	as it tries to read configuration settings while the config. system is
	not available (ie, before the first request).

	* System.Web/HttpRuntime.cs: delayed queueManager and response writer
	initialization until the configuration system is working.

	* System.Web.Configuration/GlobalizationConfiguration.cs: return null
	when the configuration is not available.

	* System.Web.Util/WebEncoding.cs: use the Default encoding when the
	globalization configuration is not available.

	* System.Web.Configuration/WebConfigurationSettings.cs: handle
	configuration for System.Web. It replaces the default
	IConfigurationSystem with itself and handles web.config files
	oddities.

	* System.Web.UI.WebControls/WebControl.cs: don't create the attributes
	when GetAttribute is called.

svn path=/trunk/mcs/; revision=20681
2003-12-02 04:00:19 +00:00
Jackson Harper 18504bc645 * WebControl.cs: Only allow access keys to be null or a single
char. Patch by Alon Gazit <[email protected]>.

svn path=/trunk/mcs/; revision=20671
2003-12-01 18:39:50 +00:00
Jackson Harper 40e82a8ca8 * CheckBoxList.cs: A checkbox will have null post data if it is
unselected. This fixes bug #51516.

svn path=/trunk/mcs/; revision=20651
2003-12-01 03:47:52 +00:00
Jackson Harper 860e2b71f3 * DataGrid.cs: Display paging controls even when there is no
data. Path by Mohammad DAMT. Fixes bug #51487.

svn path=/trunk/mcs/; revision=20601
2003-11-29 08:48:43 +00:00
Jackson Harper e3b4797571 * DataGrid.cs: Call TrackViewState when loading bound columns view
state. So that their state is saved. This fixes bug #51424. Also
	set ReadOnly.

svn path=/trunk/mcs/; revision=20600
2003-11-29 08:19:12 +00:00
Jackson Harper 2330138736 * BaseDataList.cs: Change && to || We will call that a typo so no
one gets embarrased.

svn path=/trunk/mcs/; revision=20510
2003-11-26 23:50:14 +00:00
Gonzalo Paniagua Javier c51a5f0ff0 2003-11-24 Gonzalo Paniagua Javier <[email protected]>
* BaseDataList.cs: allow setting null as Datasource.

	* DataGrid.cs: keep autogenerated columns in the ViewState.

	Patches by Alon Gazit <[email protected]>.

svn path=/trunk/mcs/; revision=20397
2003-11-24 18:46:31 +00:00
Ben Maurer 069539d2b0 2003-11-22 Ben Maurer <[email protected]>
* SqlDataSource*: Implement almost everything. Data access is
	still missing.

svn path=/trunk/mcs/; revision=20349
2003-11-23 02:44:44 +00:00
Ben Maurer d2f9b77b7a 2003-11-22 Ben Maurer <[email protected]>
* Calendar.cs (SaveViewState):
	    - We were allocating a 11 item array, we only used 10 items,
	      so only allocate 10.
	    - We only need to save the selected dates if there are any.
	* DataGrid.cs (SaveViewState):
	* DataGridColumn.cs (SaveViewState):
	* DataGridColumnCollection.cs (SaveViewState):
	    - Only return the array if there is anything in it
	* Style.cs (SaveViewState):
	    - Only save the bits if there were changes.
	* WebControl.cs (SaveViewState), (LoadViewState):
	    - Don't save Enabled into the viewstate here, we already
	      do it in the property. This just caused *EVERY* control
	      to have a non-null state, taking up lots of extra room
	      in the ViewState.
	    - The style will always be created with this control's
	      viewstate, so the style will always return null for the
	      viewstate. As such, we do not need to store it. We can
	      also reduce the triplet to a pair because of this.

svn path=/trunk/mcs/; revision=20342
2003-11-22 22:01:19 +00:00
Jackson Harper 2fb22ed808 * ValidationSummary.cs: Fix number of messages and message
array computation.

svn path=/trunk/mcs/; revision=20341
2003-11-22 21:48:27 +00:00
Andreas N 6b375445c5 2003-11-21 Andreas Nahr <[email protected]>
* Xml.cs: Corrected attribute
	* XmlBuilder.cs: Added

svn path=/trunk/mcs/; revision=20313
2003-11-21 17:15:45 +00:00
Gonzalo Paniagua Javier 5d84bef5d3 2003-11-21 Gonzalo Paniagua Javier <[email protected]>
* System.Web.dll.sources: added new files.

	* System.Web/HttpApplication.cs:
	* System.Web/HttpContext.cs:
	* System.Web/HttpRuntime.cs: add timeout handling.
	* System.Web/TimeoutManager.cs: new class that takes care of aborting
	threads on timeout.

	* System.Web.Configuration/CompilationConfiguration.cs: don't throw
	an HttpException.
	* System.Web.Configuration/HttpRuntimeConfig.cs:
	* System.Web.Configuration/HttpRuntimeConfigurationHandler.cs: handle
	system.web/httpRuntime configuration section.

	* System.Web.UI/PersistChildrenAttribute.cs:
	* System.Web.UI/PersistenceModeAttribute.cs: implemented.

	* System.Web.UI/TODO: Removed file.
	* System.Web.UI/OutputCacheLocation.cs:
	* System.Web.UI/TemplateControlParser.cs:
	* System.Web.UI.HtmlControls/HtmlInputFile.cs:
	* System.Web.UI.WebControls/Xml.cs: class status based fixes.

svn path=/trunk/mcs/; revision=20291
2003-11-21 00:26:20 +00:00
Jackson Harper 9b714bbb33 * HyperLink.cs: Use ResolveUrl instead of ResolveBaseUrl.
svn path=/trunk/mcs/; revision=20266
2003-11-20 11:27:52 +00:00
Jackson Harper 63661f04c7 * HyperLink.cs: Use ResolveBaseUrl so that ~/ is interpreted as
teh applications base directory. This fixes bug #51092.

svn path=/trunk/mcs/; revision=20265
2003-11-20 10:47:47 +00:00
Todd Berman 288f8abdd5 2003-11-18 Todd Berman <[email protected]>
* ControlParameter.cs:
        * CookieParameter.cs:
        * FormParameter.cs:
        * QueryStringParameter.cs:
        * SessionParameter.cs: added public .ctor ()
        * Parameter.cs: added public .ctor (), internal SetOwnerCollection
        and handling, as well as internal ParameterValue for easy access.
        NOTE: ParameterValue doesnt respect TreatEmptyStringAsNull yet.
        * ParameterCollection.cs: implementation redux.

svn path=/trunk/mcs/; revision=20213
2003-11-19 04:47:13 +00:00
Ben Maurer 3dafbfdc30 I am reverting todd's patch because it kills the build on the generics tree
svn path=/trunk/mcs/; revision=20204
2003-11-18 22:39:00 +00:00
Todd Berman 7e9e390ccf 2003-11-18 Todd Berman <[email protected]>
* ParameterCollection.cs: Implemented
        * Parameter.cs: Added _owner, SetOwnerCollection and proper handling.
        ToString () now matches asp.net

svn path=/trunk/mcs/; revision=20177
2003-11-18 16:56:19 +00:00
Ben Maurer d0ac8392d4 2003-11-17 Ben Maurer <[email protected]>
* StateManagedCollection.cs: Implement.

2003-11-17 Ben Maurer  <[email protected]>

	* ControlParameter.cs:
	* CookieParameter.cs:
	* FormParameter.cs:
	* Parameter.cs:
	* QueryStringParameter.cs: New v2 files. Mostly
	implemented, still need a few methods.

svn path=/trunk/mcs/; revision=20146
2003-11-17 23:03:01 +00:00
Gonzalo Paniagua Javier 2bfa12e181 2003-11-16 Gonzalo Paniagua Javier <[email protected]>
* ListItem.cs: prevent nullrefs ni Get/SetAttribute. Thanks to Alon
	Gazit <[email protected]>.

svn path=/trunk/mcs/; revision=20068
2003-11-16 18:20:52 +00:00
Gonzalo Paniagua Javier 1b96bbcce2 2003-11-13 Gonzalo Paniagua Javier <[email protected]>
* RadioButton.cs: fixed RenderInputTag for negative TabIndex values.
	Patch by Alon Gazit <[email protected]>.

svn path=/trunk/mcs/; revision=19931
2003-11-13 10:21:01 +00:00
Ben Maurer 19d8d5d139 2003-11-09 Ben Maurer <[email protected]>
* DataBoundControl.cs: Implement
	* ListControl.cs: inherit from the above.
	* Repeater.cs, BaseDataList.cs: should reset whenever we databind.

svn path=/trunk/mcs/; revision=19773
2003-11-10 00:15:45 +00:00
Ben Maurer 31d94eec92 2003-11-09 Ben Maurer <[email protected]>
* BaseDataList.cs:
	* DataGrid.cs:
	* DataList.cs:
	* Repeater.cs: add v2 databinding stuff
	* XmlDataSource.cs: make it load the xml.

svn path=/trunk/mcs/; revision=19771
2003-11-09 21:50:27 +00:00
Ben Maurer feb6527808 v2 stuff
svn path=/trunk/mcs/; revision=19769
2003-11-09 19:47:04 +00:00
Ben Maurer 0f25cef728 2003-11-08 Ben Maurer <[email protected]>
* SiteMapNode.cs (GetDataSourceView): Implement.
	* SiteMapProvider.cs: Typo fixing.
	* XmlSiteMapProvider.cs: We shouldnt resolve here.

2003-11-08 Ben Maurer  <[email protected]>

	* DataSourceView.cs:
	* IDataSource.cs:
	* ListSourceHelper.cs:
	* DataSourceControl.cs:
	* HierarchicalDataSourceView.cs:
	* IHierarchicalDataSource.cs: Move v2 stuff.

2003-11-08 Ben Maurer  <[email protected]>

	* SiteMapDataSourceView.cs: Implement.

svn path=/trunk/mcs/; revision=19754
2003-11-09 04:56:15 +00:00
Jackson Harper 893941212b * ImageButton.cs: This is a workaround for bug #49819. It appears
that the .x and .y values are not being posted, and only the x
	value is being posted with the ctrl's id as the key.

svn path=/trunk/mcs/; revision=19725
2003-11-08 00:49:53 +00:00
Jackson Harper 21380702ef * DataGrid.cs (CreateControlHierarchy): Current page index is
alolowed to equal page count. This prevents an exception being
	thrown when both are zero.

svn path=/trunk/mcs/; revision=19715
2003-11-07 20:13:15 +00:00
Jackson Harper c51c0d5dab * ValidationSummary.cs: Add Render method. Patch by Yaron Shkop.
* BaseValidator.cs: Disable base control so the isValid flag is
	not reset.

svn path=/trunk/mcs/; revision=19688
2003-11-06 17:39:37 +00:00
Jackson Harper 2b75405d6a * TemplateColumn.cs: Use the same renderer for selected items as
normal items. This fixes bug #49744.

svn path=/trunk/mcs/; revision=19623
2003-11-04 21:08:20 +00:00
Jackson Harper c3ad385b3d * DataList.cs:
* WebControl.cs: Fix argument out of range exceptions on
	properties. Patch by Yaron Shkop.

svn path=/trunk/mcs/; revision=19622
2003-11-04 19:44:05 +00:00
Jackson Harper 4c8635c916 * TemplateColumn.cs: If the item is selected but there is no
editItemTemplate use the itemTemplate. This matches MS
	behvoir.

svn path=/trunk/mcs/; revision=19611
2003-11-04 07:58:25 +00:00
Jackson Harper ea32ed9304 * Repeater.cs: Always set alternating items to the AlternatingItem
type, when instantiating alternating items use the itemTemplate if
	the alternatingItem template is null. This matches MS behavoir and
	fixes bug #50157.

svn path=/trunk/mcs/; revision=19610
2003-11-04 06:02:35 +00:00
Jackson Harper 9ca4eb89dd * DataGridPagerStyle.cs: Name of view state attribute is
PagerVisible not Visible. Call owner.OnPagerChanged when the pager
	visibility is changed. Patch by Yaron Shkop.

svn path=/trunk/mcs/; revision=19609
2003-11-04 05:44:03 +00:00
Jackson Harper ef437d1bc2 * DataGridPagerStyle.cs: Name of view state attribute is
PagerVisible not Visible. Call owner.OnPagerChanged when the pager
	visibility is changed. Patch by Yaron Shkop.

svn path=/trunk/mcs/; revision=19608
2003-11-04 05:43:30 +00:00
Jackson Harper 41591e12e1 * RepeatInfo.cs: When doing horizontal rendering use the repeat
columns as the number of columns in a row. This fixes bug
	#49016.

svn path=/trunk/mcs/; revision=19607
2003-11-04 05:22:38 +00:00
Jackson Harper 925fc6f10b * PagedDataSource.cs (PageCount): Return page count of 1 if there
paging is disabled. Patch by Yaron Shkop.
	* PagedDataSource.cs (CopyTo): Improve. Patch by Yaron Shkop.
	* TableStyle.cs (AddAttributesToRender): Render border style
	collapse. Patch by Yaron Shkop.
	* TableStyle.cs:
	* TableItemStyle.cs:
	* DataGridPagerStyle.cs: Call base copy and merge even if style is of
	the wrong type. Patch by Yaron Shkop.

svn path=/trunk/mcs/; revision=19605
2003-11-03 23:34:55 +00:00
Jackson Harper 5a98ec1ab9 * BoundColumn.cs: Render readonly columns. Patch by Mohammad
DAMT.

svn path=/trunk/mcs/; revision=19591
2003-11-03 20:44:36 +00:00
Ben Maurer 7acb63770b 2003-11-02 Ben Maurer <[email protected]>
* BulletStyle.cs:
	* BulletedListDisplayMode.cs:
	* BulletedListEventHandler.cs:
	* BulletedList.cs:
	* BulletedListEventArgs.cs: V2 controls (yay!)

svn path=/trunk/mcs/; revision=19560
2003-11-03 00:16:59 +00:00
Jackson Harper 1cd861426c * Repeater.cs: Throw an exception if the datasource is set to
something that does not implement either IListSource or
	IEnumerable. This fixes bug #50155.

svn path=/trunk/mcs/; revision=19483
2003-10-30 09:00:24 +00:00
Jackson Harper 1b3dc2a260 * DataGridPagerStyle.cs: Do not allow page button counts to be set
to less then 1. Patch by Yaron Shkop. This fixes bug #50236.

svn path=/trunk/mcs/; revision=19480
2003-10-30 08:16:42 +00:00
Jackson Harper 83e7bfb810 Proper name so Mohammad gets his due credit.
svn path=/trunk/mcs/; revision=19479
2003-10-30 08:00:40 +00:00