Commit Graph
324 Commits
Author SHA1 Message Date
Alon Gazit 8c1943405e Fixed PrepareControlHierarchyForItem().
The Header or Footer Style shouldn't merge with the cells Style.

svn path=/trunk/mcs/; revision=21579
2004-01-01 09:54:46 +00:00
Alon Gazit 8280e80504 Headers and Footers are initialized with the relevant Style object.
svn path=/trunk/mcs/; revision=21578
2004-01-01 08:20:16 +00:00
Alon Gazit 2a9a5a66c8 Fixed DoVerticalRendering () and DoHorizontalRendering().
Current implementation produces few extra html tags.

svn path=/trunk/mcs/; revision=21555
2003-12-30 14:23:43 +00:00
Alon Gazit 152039aa97 change the implementation of LoadPostData.
Currently, while the AutoPostBack property equals true ,
it isn't possible to perform uncheck.

svn path=/trunk/mcs/; revision=21535
2003-12-29 09:03:41 +00:00
Jackson Harper ec28faccea * TableCell.cs: Setting a cells text should clear its control
collection as per la specification. This fixes bug #51825.

svn path=/trunk/mcs/; revision=21373
2003-12-19 22:30:41 +00:00
Gonzalo Paniagua Javier 9a9b6f2b31 2003-12-18 Gonzalo Paniagua Javier <[email protected]>
* DataGridColumn.cs: stylized LoadViewState.
	* DataGridColumnCollection.cs: when TrackViewState is called, also
	call it on all the existing columns. Fixes bug #52334.

svn path=/trunk/mcs/; revision=21315
2003-12-18 11:02:40 +00:00
Alon Gazit ee6c4d8192 Merge DataGridPagerStyle properties when Style is empty.
svn path=/trunk/mcs/; revision=21314
2003-12-18 09:09:35 +00:00
Alon Gazit fbf3d3e087 Merge TableStyle properties when Style is empty.
svn path=/trunk/mcs/; revision=21309
2003-12-18 08:47:06 +00:00
Alon Gazit 24f433a2b8 Change Text property implementation.
In MS when the Text roperty is set, all the controls in the
HyperLink are being deleted.

svn path=/trunk/mcs/; revision=21241
2003-12-16 15:36:03 +00:00
Alon Gazit c065e78258 Fixed DoVerticalRendering() and DoHorizontalRendering().
Both methods add additional empty table row in the head of each item table
when the variable named isTable equals true (happenes with the default instantiation
of RepeatInfo).
These additional rows should be added when isTable equals false.

svn path=/trunk/mcs/; revision=21234
2003-12-16 11:02:19 +00:00
Alon Gazit 416556866b Fixed DoVerticalRendering() and DoHorizontalRendering().
Both methods add to rendered Header a colspan attribute according to the rows count.
After the change the colspan is added according to the columns count.

svn path=/trunk/mcs/; revision=21179
2003-12-15 16:45:47 +00:00
Alon Gazit f31e57c21c Disabled CheckBox does not produce same HTML as .NET.
In .NET if the checkbox is disabled ,its text appears disabled too.
In Mono the text appears enabled. the fix is in Render().

svn path=/trunk/mcs/; revision=21167
2003-12-15 13:19:33 +00:00
Alon Gazit c5a41569cd Change the implementation of CreateControlHierarchy().
The current implementation renders extra Header and footer
without Repeater.DataSource assign.

svn path=/trunk/mcs/; revision=21165
2003-12-15 12:29:42 +00:00
Alon Gazit d08b0a8110 Change the implementation of the property BackImageUrl.
The current implementation has no influence on the rendered Html.

svn path=/trunk/mcs/; revision=21141
2003-12-15 07:54:54 +00:00
Alon Gazit c237b380d3 Change the implementation of the property Enabled.
Before the change the WebControl also looked at parent.Enabled .

svn path=/trunk/mcs/; revision=21138
2003-12-15 07:39:11 +00:00
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