Commit Graph
1458 Commits
Author SHA1 Message Date
Gonzalo Paniagua Javier fe3850a309 2006-01-24 Gonzalo Paniagua Javier <[email protected]>
* ListControl.cs: bound checking for Items when loading the control
	state, as the number might have been changed on the fly. Patch by
	Elliott Draper.


svn path=/trunk/mcs/; revision=56007
2006-01-24 21:54:40 +00:00
Konstantin Triger c0ff50315a ensure invariant culture
svn path=/trunk/mcs/; revision=55930
2006-01-23 08:32:21 +00:00
Chris Toshok 89e4fb7548 2006-01-22 Chris Toshok <[email protected]>
* CheckBox.cs: s/GetPostBackClientEvent/GetPostBackEventReference.

	* MultiView.cs (OnBubbleEvent): case the rhs to a string to get
	the intended comparison right and quiet mcs.


svn path=/trunk/mcs/; revision=55915
2006-01-22 20:58:37 +00:00
Konstantin Triger 5a65f8ba6b Add semicolon after client script if does not exist
svn path=/trunk/mcs/; revision=55898
2006-01-22 17:34:15 +00:00
Konstantin Triger 4ab1350f69 preserve user logic when adding client validation
svn path=/trunk/mcs/; revision=55709
2006-01-18 08:46:06 +00:00
Konstantin Triger 5343d82b47 fixing visibility bahavior
svn path=/trunk/mcs/; revision=55598
2006-01-15 13:23:27 +00:00
Gonzalo Paniagua Javier 83ff57d8ff 2006-01-13 Gonzalo Paniagua Javier <[email protected]>
* RangeValidator.cs: allow empty data from the control. Patch from Marek
	Habersack that fixes bug #77239.


svn path=/trunk/mcs/; revision=55510
2006-01-13 14:55:45 +00:00
Gonzalo Paniagua Javier c2af6f8b34 2006-01-10 Gonzalo Paniagua Javier <[email protected]>
* Calendar.cs: Modified file.


svn path=/trunk/mcs/; revision=55303
2006-01-10 16:30:10 +00:00
Konstantin Triger 145662bd35 TARGET_JVM changes to let the compilation pass with csc 1.1
svn path=/trunk/mcs/; revision=55206
2006-01-08 13:21:51 +00:00
Gonzalo Paniagua Javier 7d8b3bf80f 2005-12-08 Gonzalo Paniagua Javier <[email protected]>
* DropDownList.cs: HtmlEncode the item text. Fixes bug #76949.


svn path=/trunk/mcs/; revision=54128
2005-12-08 21:28:02 +00:00
Chris Toshok 2e6afaeadf 2005-12-07 Chris Toshok <[email protected]>
* BaseValidator.cs: in the uplevel rendering case, don't render
	the text if the validator's Display attribute is "None".  Should
	fix bug #76924.


svn path=/trunk/mcs/; revision=54021
2005-12-07 06:31:04 +00:00
Gonzalo Paniagua Javier 4fa0c3c3da 2005-11-30 Gonzalo Paniagua Javier <[email protected]>
* RadioButton.cs: if the 'value' attribute is set explicitly (as
	RadioButtonList does now), use that as the 'name' attribute.
	* RadioButtonList.cs: set the AutoPostBack and Enabled properties of
	the radiobuttons.

	Fixes bug #76706.


svn path=/trunk/mcs/; revision=53741
2005-12-01 02:02:13 +00:00
Gonzalo Paniagua Javier 3b1a44ffc1 2005-11-30 Gonzalo Paniagua Javier <[email protected]>
* CheckBox.cs: add possible 'internal' attributes to the input tag. Fix
	the 'name' attribute when not aligninng to the right.
	* RadioButton.cs: use NameAttribute instead of GroupName when indexing
	the collection. Raise the OnCheckedChanged event. Fixes bug #76710.


svn path=/trunk/mcs/; revision=53739
2005-12-01 01:37:08 +00:00
Gonzalo Paniagua Javier 3046fa752d 2005-11-30 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: clear the control collection on every call to
	CreateControlHierarchy. Fixes bug #76732.


svn path=/trunk/mcs/; revision=53723
2005-11-30 23:35:10 +00:00
Gonzalo Paniagua Javier 6fcdefd63b 2005-11-28 Gonzalo Paniagua Javier <[email protected]>
* ListBox.cs: Rows and SelectionMode are virtual in 1.1


svn path=/trunk/mcs/; revision=53600
2005-11-28 23:03:37 +00:00
Gonzalo Paniagua Javier 6c78824894 2005-11-21 Gonzalo Paniagua Javier <[email protected]>
* CheckBox.cs: use the NameAttribute property for setting 'name'.
	* RadioButton.cs: get a UniqueID based identifier for 'name'.
	Fixes bug #76710.


svn path=/trunk/mcs/; revision=53323
2005-11-21 20:45:14 +00:00
Gonzalo Paniagua Javier 82fa8c8b6f 2005-11-18 Gonzalo Paniagua Javier <[email protected]>
* LinkButton.cs: don't output any javascript when the linkbutton is
	disabled. Fixes bug #76713.


svn path=/trunk/mcs/; revision=53246
2005-11-18 20:37:47 +00:00
Gonzalo Paniagua Javier ffac0a0ef3 2005-11-18 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: use TableHeaderCell instead of TableCell for headers when
	UseAccesibleHeader property is true. Patch by Robert Jordan.


svn path=/trunk/mcs/; revision=53244
2005-11-18 19:59:16 +00:00
Gonzalo Paniagua Javier 676728d2c5 2005-11-18 Gonzalo Paniagua Javier <[email protected]>
* BaseValidator.cs: 'controltovalidate' must be the ClientID of the
	control to validate. Fixes bug #76641.


svn path=/trunk/mcs/; revision=53243
2005-11-18 19:40:45 +00:00
Gonzalo Paniagua Javier 192c30ea03 2005-11-18 Gonzalo Paniagua Javier <[email protected]>
* BoundColumn.cs: when the column is readonly and we're in edit mode,
	keep it as a TextBox. Fixes bug #76714.


svn path=/trunk/mcs/; revision=53242
2005-11-18 19:14:23 +00:00
Gonzalo Paniagua Javier 979abd5fef 2005-11-03 Gonzalo Paniagua Javier <[email protected]>
* ListBox.cs: render the 'onchange' attribute when AutoPostback is
	enabled. Fixes bug #76608.


svn path=/trunk/mcs/; revision=52529
2005-11-03 21:32:14 +00:00
Gonzalo Paniagua Javier 6190b29189 2005-11-03 Gonzalo Paniagua Javier <[email protected]>
* CheckBox.cs: AddAttributesToRender was extra in 1.1, so moved all
	the logic to Render and make it render the ID, which fixes bug #76596.


svn path=/trunk/mcs/; revision=52528
2005-11-03 21:26:49 +00:00
Gonzalo Paniagua Javier 18058a0514 2005-10-25 Gonzalo Paniagua Javier <[email protected]>
* Repeater.cs: someone forgot the curly brackets. Fixes bug 76537.


svn path=/trunk/mcs/; revision=52189
2005-10-25 16:46:37 +00:00
Gonzalo Paniagua Javier 96d9fd876d 2005-10-24 Gonzalo Paniagua Javier <[email protected]>
* Literal.cs: allow LiteralControl as child, but instead of adding it
	to the control collection, it just gets the Text out of it.


svn path=/trunk/mcs/; revision=52149
2005-10-24 20:57:13 +00:00
Gonzalo Paniagua Javier 38336a5d36 2005-10-22 Gonzalo Paniagua Javier <[email protected]>
* PagedDataSource.cs: fix range when we're at the last page.
	* DataGrid.cs: only need to keep the item count in the viewstate.
	Fixes bug #76503.


svn path=/trunk/mcs/; revision=52068
2005-10-22 20:56:53 +00:00
Gonzalo Paniagua Javier c566a8586b fix the 2.0 build after my last commit
svn path=/trunk/mcs/; revision=52002
2005-10-20 19:52:43 +00:00
Gonzalo Paniagua Javier 0ffc7318e9 2005-10-20 Gonzalo Paniagua Javier <[email protected]>
* ListControl.cs: made GetSelectedIndices() internal.
	* ListBox.cs: html-encode the item text. Fixed single and multiple
	selection handling. All the tests pass now. Closes bug #76478.


svn path=/trunk/mcs/; revision=51998
2005-10-20 19:11:22 +00:00
Gonzalo Paniagua Javier 1039e0fd21 fix for 76415 + tests
svn path=/trunk/mcs/; revision=51885
2005-10-18 19:47:30 +00:00
Gonzalo Paniagua Javier f9d7d1a7f7 2005-10-17 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/Page.cs: don't cache the 'Validate()' results.
	IsValid retests the validators again.

	* System.Web.UI.WebControls/BaseDataList.cs: Type.GetTypeCode
	was fixed and now does not throw a nullref, so we have to do
	it by ourselves here to make the test happy.

	* System.Web.UI.WebControls/BaseValidator.cs: render the text of
	the error message even if we set IsValid programatically. Don't
	use 'valid' directly, as IsValid is virtual.

	Fixes bug #76299.


svn path=/trunk/mcs/; revision=51840
2005-10-17 23:58:16 +00:00
Gonzalo Paniagua Javier d1e93f922b svn path=/trunk/mcs/; revision=51832 2005-10-17 22:10:53 +00:00
Gonzalo Paniagua Javier 0fc40b5c3b 2005-10-17 Gonzalo Paniagua Javier <[email protected]>
* CustomValidator.cs: an empty ControlToValidate is valid.


svn path=/trunk/mcs/; revision=51829
2005-10-17 21:23:41 +00:00
Sebastien Pouliot 9846dbd980 2005-10-17 Sebastien Pouliot <[email protected]>
* RequiredFieldValidator.cs: Added missing permissions.


svn path=/trunk/mcs/; revision=51801
2005-10-17 14:13:05 +00:00
Gonzalo Paniagua Javier 0f443418aa 2005-10-10 Gonzalo Paniagua Javier <[email protected]>
* DataList.cs: copied and adapted PrepareControlHierarchy from DataGrid.
	Now the items get the attributes from the styles in datalist.  Add the
	separators after each item, not before. GetItemStyle returns the actual
	item style, not the styles in the datalist. Fixes bug #76384 and all
	new tests pass.


svn path=/trunk/mcs/; revision=51506
2005-10-10 09:21:49 +00:00
Gonzalo Paniagua Javier 933e8aa1e6 2005-10-10 Gonzalo Paniagua Javier <[email protected]>
* Style.cs: add a 'border-style: solid' to make IE happy. Fixes bug
	76373.


svn path=/trunk/mcs/; revision=51501
2005-10-10 07:08:36 +00:00
Gonzalo Paniagua Javier f5ffb52231 2005-10-07 Gonzalo Paniagua Javier <[email protected]>
* TemplateColumn.cs: SelectedItem was missing from the select (). Fixes
	bug #76359.


svn path=/trunk/mcs/; revision=51390
2005-10-07 04:29:23 +00:00
Sebastien Pouliot 1b5886a996 2005-10-06 Sebastien Pouliot <[email protected]>
* FontInfo.cs: Gendarme strikes again. Sealed class have no need for 
	inheritance demands.
	* FontUnit.cs: Structs are sealed so there's no need for inheritance 
	demands.
	* Unit.cs: Structs are sealed so there's no need for inheritance 
	demands.


svn path=/trunk/mcs/; revision=51358
2005-10-06 18:49:01 +00:00
Gonzalo Paniagua Javier 8eaf30d66f 2005-10-06 Gonzalo Paniagua Javier <[email protected]>
* PagedDataSource.cs: fix the upper bound for collection and ilist
	enumarators.


svn path=/trunk/mcs/; revision=51354
2005-10-06 18:24:09 +00:00
Gonzalo Paniagua Javier 43707daedd 2005-10-06 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: change the ListItemType for the item selected, set
	SelectedIndex before calling OnSelectedIndexChanged and set the selected
	item type correctly when creating the columns. Fixes bug #76334.

	* ButtonColumn.cs:
	* EditCommandColumn.cs: use a ForeColorLinkbutton, otherwise when
	selecting the row, the button keep the regular link color.

	* DataGridColumn.cs: made the class internal.


svn path=/trunk/mcs/; revision=51320
2005-10-06 07:47:04 +00:00
Gonzalo Paniagua Javier 3ce9565458 2005-10-04 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: fix breakaga of alternating item style in one of my
	last patches.


svn path=/trunk/mcs/; revision=51150
2005-10-04 07:50:06 +00:00
Gonzalo Paniagua Javier 92ff13abd0 2005-10-04 Gonzalo Paniagua Javier <[email protected]>
* Calendar.cs: remove Console.
	* ListBox.cs: the name is the UniqueID, not the ClientID.
	* WebControl.cs: Attributes is case insensitive.


svn path=/trunk/mcs/; revision=51148
2005-10-04 07:36:02 +00:00
Gonzalo Paniagua Javier 5341053263 2005-10-04 Gonzalo Paniagua Javier <[email protected]>
* ImageButton.cs: use UniqueID in LoadPostData and also try just the
	UniqueID without appending a ".x" or ".y". Fixes several issues in
	mojoPortal. Thanks to Joe Audetter for his patience.


svn path=/trunk/mcs/; revision=51145
2005-10-04 07:09:05 +00:00
Gonzalo Paniagua Javier 4896dbb35e fix the 2.0 build
svn path=/trunk/mcs/; revision=51104
2005-10-03 04:44:39 +00:00
Gonzalo Paniagua Javier fc1ea9101e 2005-10-02 Gonzalo Paniagua Javier <[email protected]>
* ButtonColumn.cs: it was lacking databinding, so copied most of it
	from BoundColumn.


svn path=/trunk/mcs/; revision=51098
2005-10-02 23:28:15 +00:00
Gonzalo Paniagua Javier dd2bbcbd2d 2005-10-02 Gonzalo Paniagua Javier <[email protected]>
* FontInfo.cs: removed useless ctor.
	* Style.cs: keep here some commented out debugging code.
	* DataGrid.cs: the Items property does not create a new arraylist if
	the items_list was already initialized. Add case for Separator.
	* DataGridColumn.cs: when sorting is enabled, the linkbutton rendered
	in the header columns has a special ForeColor handling.


svn path=/trunk/mcs/; revision=51095
2005-10-02 22:30:45 +00:00
Gonzalo Paniagua Javier a7efa8fb2c 2005-10-02 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: PageCount must persist in ViewState too and returns the
	number of pages in the paged data source once we set that. Fix checks
	for visibility of the pager: no more 2 pagers when custom paging is
	enabled.


svn path=/trunk/mcs/; revision=51084
2005-10-02 06:35:30 +00:00
Gonzalo Paniagua Javier 09d65c8271 2005-09-30 Gonzalo Paniagua Javier <[email protected]>
* ImageButton.cs: fix a bug reported on the list. We were triggering the
	command event on every POST. And the 'name' attribute was not being
	rendered, so the 'x,y' coordinates didn't have 'uniqueid.' prepended
	and we couldn't find the values.


svn path=/trunk/mcs/; revision=51063
2005-09-30 23:26:09 +00:00
Gonzalo Paniagua Javier 4a9ee87e0c 2005-09-30 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: fix the links for the numeric pager.


svn path=/trunk/mcs/; revision=51061
2005-09-30 22:18:44 +00:00
Gonzalo Paniagua Javier 591e5b3436 2005-09-30 Gonzalo Paniagua Javier <[email protected]>
* DataGrid.cs: when paging is enable, the actual number of items is not
	the number of items rendered before the postback, but that number times
	the number of pages. Now we store the page count in the viewstate. Also,
	as the number might be big, don't allocate an array of objects to fake
	the collection for the PagedDataSource, but use the new NCollection
	class instead, which provides cheap (memory wise) enumerator for an
	arbitrary number of items. Thanks to "Adriano" for the test case.


svn path=/trunk/mcs/; revision=51027
2005-09-30 04:37:22 +00:00
Gonzalo Paniagua Javier af86cbd316 2005-09-29 Gonzalo Paniagua Javier <[email protected]>
* Xml.cs: the show must go on. Removed a few NotImplemented.


svn path=/trunk/mcs/; revision=51023
2005-09-30 02:50:50 +00:00
Gonzalo Paniagua Javier dfdec159d7 2005-09-29 Gonzalo Paniagua Javier <[email protected]>
* System.Web.UI/DesignerDataBoundLiteralControl.cs: changed autoid api.
	* System.Web.UI/DataBoundLiteralControl.cs: changed autoid api.

	* System.Web.UI/Control.cs: fixlet for UniqueID and weird test case.
	Removed PreventAutoID and only use the property to set that value.

	* System.Web.UI/LiteralControl.cs: changed autoid api.

	* System.Web.UI.WebControls/Button.cs: implemented 2.0
	RaisePostBackEvent in terms of the existing code in 1.1 (or viceversa).
	RenderContents() does nothing.

	* System.Web.UI.WebControls/DataGrid.cs: changed autoid api.

	* System.Web.UI.WebControls/EditCommandColumn.cs: only 'Update' causes
	validation.

	* System.Web.UI.WebControls/TableCell.cs: changed autoid api.
	RenderContents checks the number of controls to decide what to do, not
	the value of Text in the viewstate.

	* System.Web.UI.WebControls/TableRow.cs: changed autoid api.

	* System.Web.UI.WebControls/BoundColumn.cs: SelectedItem was missing
	when attaching a DataBind event. When we get an EditItem, we need a
	TextBox to be created and this one will be the one that gets the event.
	Changed ItemDataBinding to deal with a TextBox too.

	All tests pass now in the default profile (2 not run).


svn path=/trunk/mcs/; revision=51019
2005-09-30 02:22:33 +00:00