Commit Graph
71 Commits
Author SHA1 Message Date
Marek Habersack afeab3ef73 - 1.1 code removal
- coding style
- minor optimizations

svn path=/trunk/mcs/; revision=159296
2010-06-21 21:01:26 +00:00
Marek Habersack 2d668e9583 2010-06-21 Marek Habersack <[email protected]>
* BaseValidator.cs, BulletedList.cs, Calendar.cs, CheckBox.cs,
    	CheckBoxList.cs, DataGrid.cs, DropDownList.cs, GridView.cs,
    	HyperLink.cs, ImageButton.cs, LinkButton.cs, ListBox.cs,
    	ListControl.cs, Menu.cs, RadioButton.cs, RadioButtonList.cs,
    	RepeatInfo.cs, Repeater.cs, TextBox.cs, TreeView.cs,
    	ValidationSummary.cs, WebControl.cs: use WebControl.IsEnabled
    	instead of Enabled wherever necessary.

svn path=/trunk/mcs/; revision=159280
2010-06-21 18:41:51 +00:00
Igor Zelmanovich 04661ec92e refactoring:
renamed methods if internal IScriptManager.

svn path=/trunk/mcs/; revision=92583
2008-01-10 13:35:21 +00:00
Igor Zelmanovich 26024a3c36 2008-01-07 Igor Zelmanovich <[email protected]>
* Page.cs: added internal API
	* IScriptManager.cs: added new internal interface.	

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

	* BaseCompareValidator.cs:
	* BaseValidator.cs:
	* CompareValidator.cs:
	* CustomValidator.cs:
	* RangeValidator.cs:
	* RegularExpressionValidator.cs:
	* RequiredFieldValidator.cs:
	refactoring: If page contents instance of IScriptManager, validators call 
	it's API instead Page.ClientScript.									


svn path=/trunk/mcs/; revision=92389
2008-01-07 14:24:43 +00:00
Konstantin Triger 4405429b17 add missing ';' in java script
svn path=/trunk/mcs/; revision=92060
2007-12-31 12:57:07 +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 f90416da24 2007-10-31 Igor Zelmanovich <[email protected]>
* BaseValidator.cs: 
	validator is rendered correct if EnabledClientClient is false.


svn path=/trunk/mcs/; revision=88542
2007-10-31 09:30:09 +00:00
Igor Zelmanovich cd1eec7379 2007-08-30 Igor Zelmanovich <[email protected]>
* BaseCompareValidator.cs:
	* BaseValidator.cs:
	* CompareValidator.cs:
	* CustomValidator.cs:
	* RangeValidator.cs:
	* RegularExpressionValidator.cs:
	* RequiredFieldValidator.cs:
	all Validators use RegisterExpandoAttribute for 
	not XHTML compliant attributes.

2007-08-30 Igor Zelmanovich <[email protected]>

	* WebUIValidation_2.0.js:
	all Validators use RegisterExpandoAttribute for 
	not XHTML compliant attributes.


svn path=/trunk/mcs/; revision=85047
2007-08-30 13:45:21 +00:00
Vladimir Krasnov 345867a67a * Button.cs, DataControlFieldHeaderCell.cs, FileUpload.cs, Table.cs, RegularExpressionValidator.cs, CheckBox.cs, HiddenField.cs, TableStyle.cs, Image.cs, BulletedList.cs, RangeValidator.cs, BaseValidator.cs, CustomValidator.cs, RepeatInfo.cs, TextBox.cs, RequiredFieldValidator.cs, AdRotator.cs, TableHeaderCell.cs, ImageMap.cs, Panel.cs, CompareValidator.cs, Calendar.cs, ListBox.cs, TableCell.cs, WebControl.cs, ImageButton.cs, TableItemStyle.cs: refactoring, used AddAttribute overload without encoding on known attribute values
svn path=/trunk/mcs/; revision=83500
2007-08-05 14:30:23 +00:00
Igor Zelmanovich 7bba17dd3c 2007-07-24 Igor Zelmanovich <[email protected]>
* webform.js:
	* WebUIValidation_2.0.js:
	refactoring: provide possibility to define relevant functions in different 
	scopes. (global=window or form element). thus providing a solution for 
	multi form environment.		

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

	* ClientScriptManager.cs:
	* Page.cs:
	* Page.jvm.cs:
	added new internal property IsMultiForm which returns false under
	!TARGET_J2EE (Portal). All client scripts are rendered 
	according this property.	
		
2007-07-24 Igor Zelmanovich <[email protected]>

	* BaseValidator.cs: All client scripts are rendered 
	according IsMultiForm property.


svn path=/trunk/mcs/; revision=82648
2007-07-25 08:59:32 +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
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
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
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
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
Marek Habersack 71759da68b Fix validation for ListItems
svn path=/trunk/mcs/; revision=73701
2007-03-05 09:44:03 +00:00
Igor Zelmanovich 9f6b309a5b 2006-02-15 Igor Zelmanovich <[email protected]>
* BaseValidator: ControlPropertiesValid is called on PreRender
	* CompareValidator.cs:
	* RangeValidator.cs: fixed ControlPropertiesValid, EvaluateIsValid.

svn path=/trunk/mcs/; revision=72917
2007-02-15 15:09:13 +00:00
Igor Zelmanovich b157a76d10 2007-02-12 Igor Zelmanovich <[email protected]>
* BaseValidator.cs: implemented SetFocusOnError feature.


svn path=/trunk/mcs/; revision=72638
2007-02-12 10:17:20 +00:00
Igor Zelmanovich de33a9bbe4 2007-02-07 Igor Zelmanovich <[email protected]>
* BaseValidator.cs: fixed render, works in static mode properly 
	* CreateUserWizard.cs: fixed display mode for validators.		

svn path=/trunk/mcs/; revision=72407
2007-02-07 12:14:03 +00:00
Vladimir Krasnov 8e8eeb1479 * BaseValidator.cs: refactored RegisterValidatorCommonScript to use RegisterClientScriptInclude instead of RegisterClientScriptBlock
svn path=/trunk/mcs/; revision=72302
2007-02-05 15:45:23 +00:00
Konstantin Triger b9ec9f962e ToString the validating property value, if null return an empty string
svn path=/trunk/mcs/; revision=71209
2007-01-17 16:56:41 +00:00
Igor Zelmanovich fa30f3d51f implemented ValidationGroup feature on client side
svn path=/trunk/mcs/; revision=65387
2006-09-14 13:00:26 +00:00
Chris Toshok 5cb4398967 In System.Web.UI:
2006-02-23  Chris Toshok  <[email protected]>

	* Page.cs (ProcessCallbackData): track change to
	ICallbackEventHandler iface.

	* ICallbackEventHandler.cs: enable the proper members of this
	interface.

	* DataSourceSelectArguments.cs: reformat getter/setters.
	
In System.Web.UI.WebControls:
2006-02-23  Chris Toshok  <[email protected]>

	* BaseCompareValidator.cs, BaseValidator.cs, Button.cs,
	DataControlField.cs, DetailsView.cs, FormView.cs, GridView.cs,
	HotSpot.cs, LinkButton.cs, Login.cs, SiteMapDataSource.cs,
	SqlDataSourceCommandType.cs, TableSectionStyle.cs,
	TemplateField.cs, TreeNodeCollection.cs, TreeNode.cs, TreeView.cs,
	ValidationSummary.cs, WizardStepBase.cs: fix tons of corcompare
	errors.  most were caused by a property/method being virtual when
	it shouldn't be, or vice versa.


svn path=/trunk/mcs/; revision=57203
2006-02-23 15:21:28 +00:00
Chris Toshok 99bc4f7b8b 2006-02-21 Chris Toshok <[email protected]>
* ButtonField.cs: ues the ViewState.Get* pattern with default
	instead of the explicit ViewState lookup + null check.

	* CommandField.cs: same.

	* CheckBox.cs: same.

	* AutoGeneratedFieldProperties.cs: same.

	* BaseDataList.cs: same.

	* CircleHotSpot.cs: same.

	* BulletedList.cs: same.

	* DataBoundControl.cs: same.

	* CookieParameter.cs: same.

	* ControlParameter.cs: same.

	* CustomValidator.cs: same.

	* ButtonFieldBase.cs: same.

	* CheckBoxField.cs: same, and fix the scope of InitializeDataCell.

	* AutoGeneratedField.cs: fix scope of InitializeDataCell.

	* BaseValidator.cs: same, and clean up the getter/setter formatting.

	* CompareValidator.cs: same.


svn path=/trunk/mcs/; revision=57120
2006-02-22 01:13:12 +00:00
Chris Toshok c0a6dfa7d6 indent/format this properly
svn path=/trunk/mcs/; revision=56346
2006-01-31 17:43:26 +00:00
Konstantin Triger 5343d82b47 fixing visibility bahavior
svn path=/trunk/mcs/; revision=55598
2006-01-15 13:23:27 +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 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 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
Sebastien Pouliot 9c6f49799f 2005-09-21 Sebastien Pouliot <[email protected]>
* AdCreatedEventArgs.cs: Added declarative security (Link and, for 
	2.0, Inheritance demands) for Minimal.
	* BaseCompareValidator.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* BaseDataBoundControl.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* BaseValidator.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* BoundColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* ButtonColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* CalendarDay.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* CheckBoxList.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* CompareValidator.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* CustomValidator.cs: Added declarative security (Link and Inheritance
	demands) for Minimal.
	* DataBoundControl.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* DataGridItemCollection.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* DataKeyCollection.cs: Added declarative security (LinkDemands) for 
	Minimal.
 	* DataListItemCollection.cs: Added declarative security (LinkDemands) 
	for Minimal.
	* DataListItem.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* FontNamesConverter.cs: Added declarative security (Link and 
	Inheritance demands) for Minimal.
	* HyperLink.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* HyperLinkColumn.cs: Added declarative security (Link and Inheritance 
	demands) for Minimal.
	* Image.cs: Added declarative security (Link and Inheritance demands) 
	for Minimal.


svn path=/trunk/mcs/; revision=50392
2005-09-21 17:24:38 +00:00
Chris Toshok e198d1de9c 2005-09-07 Chris Toshok <[email protected]>
* ValidationSummary.cs (AddAttributesToRender): we only set
	display=none if there are no errors.

	* BaseValidator.cs (OnPreRender): fix a JS error - on submit we
	call ValidatorOnSubmit, not ValidatorCommonOnSubmit.


svn path=/trunk/mcs/; revision=49658
2005-09-07 19:26:30 +00:00
Chris Toshok 6eaaf77b02 2005-09-06 Chris Toshok <[email protected]>
* BaseValidator.cs (AddAttributesToRender): render our ClientID if
	we weren't assigned an ID.

	* ValidationSummary.cs (AddAttributesToRender): same.


svn path=/trunk/mcs/; revision=49609
2005-09-07 02:57:08 +00:00
Chris Toshok cc8b663491 2005-09-06 Chris Toshok <[email protected]>
* WebControl.cs (AddAttributesToRender): always render ClientID.

	* ValidationSummary.cs (Render): same.

	* BaseValidator.cs (RegisterValidatorDeclaration): use ClientID
	here.


svn path=/trunk/mcs/; revision=49587
2005-09-06 22:32:54 +00:00
Chris Toshok 9ac11cfc64 2005-09-06 Chris Toshok <[email protected]>
* ValidationSummary.cs (Render): only do the JS stuff when the
	validators on the page are uplevel.

	* BaseValidator.cs (Render): remove unnecessary comment.


svn path=/trunk/mcs/; revision=49557
2005-09-06 17:44:14 +00:00
Chris Toshok 545c9d318f 2005-09-01 Chris Toshok <[email protected]>
* Button.cs, ButtonField.cs, FontInfo.cs, Style.cs, Xml.cs,
	CommandField.cs, HyperLinkColumn.cs, Table.cs,
	RegularExpressionValidator.cs, DataGridPagerStyle.cs, Label.cs,
	CheckBox.cs, RadioButton.cs, TableStyle.cs, ListControl.cs,
	Image.cs, BaseCompareValidator.cs, BaseDataList.cs, DataList.cs,
	TemplateColumn.cs, RangeValidator.cs, ImageField.cs,
	BaseValidator.cs, CustomValidator.cs, TextBox.cs,
	ButtonFieldBase.cs, BoundField.cs, CheckBoxList.cs,
	RadioButtonList.cs, RequiredFieldValidator.cs, AdRotator.cs,
	Repeater.cs, DropDownList.cs, CheckBoxField.cs, HyperLink.cs,
	XmlDataSource.cs, Panel.cs, DataGrid.cs, ButtonColumn.cs,
	CompareValidator.cs, Calendar.cs, ListBox.cs, TableCell.cs,
	WebControl.cs, Literal.cs, ValidationSummary.cs, ImageButton.cs,
	TableRow.cs, LinkButton.cs, DataGridColumn.cs, BoundColumn.cs,
	TableItemStyle.cs: Add some WebCategory and WebSysDescription
	attributes.


svn path=/trunk/mcs/; revision=49301
2005-09-01 21:25:48 +00:00
Miguel de Icaza 9280957789 2005-09-01 Miguel de Icaza <[email protected]>
* Various places: make sure that the DefaultValue matches the
	type.  Thanks to Michael for pointing this out.

	In future audits, you might want to use the following awk command:

	awk '/DefaultValue/ { v=$0; looking = 1; } /public/ && looking &&
	!/string/ && !/ int / && !/ bool / { print FILENAME; print v;
	print $0; looking = 0; } /public/ && looking { looking = 0; } '
	*.cs

	The above skips bools, strings and ints as those were fine as we
	set them.  The bug was on the other ones.



svn path=/trunk/mcs/; revision=49274
2005-09-01 14:55:44 +00:00
Chris Toshok cf0df4471c 2005-08-29 Chris Toshok <[email protected]>
* LinkButton.cs: fix some 2.0 Page/ClientScript obsolete warnings.

	* CheckBox.cs: same.
	
	* BaseValidator.cs: same.
	
	* DropDownList.cs: same.
	
	* ValidationSummary.cs: same.


svn path=/trunk/mcs/; revision=49071
2005-08-29 17:50:13 +00:00
Chris Toshok feb7ab6df4 2005-08-17 Chris Toshok <[email protected]>
* WebPartTest.cs: new test.
2005-08-26  Chris Toshok  <[email protected]>

	* HtmlButtonTest.cs: add view state tests (to make sure
	ValidationGroup and CausesValidation are there.)

2005-08-22  Chris Toshok  <[email protected]>

	* HtmlInputCheckBoxTest.cs: 2.0-ify these tests.

	* HtmlInputButtonTest.cs: same.

2005-08-22  Chris Toshok  <[email protected]>

	* SimpleWorkerRequestTest.cs (Host): make cwd =
	"Environment.CurrentDirectory + Path.DirectorySeparatorChar" so we
	pass on MS.

2005-08-11  Chris Toshok  <[email protected]>

	* jsunit.js (Assert): no reason to have a prototype for
	this.. just define a variable named Assert and add it to the
	script's context.

2005-08-11  Chris Toshok  <[email protected]>

	* jsunit.js (jsunit_RunTestForPage): set the failure_span
	innerHTML explicitly to "0 tests" to initialize it.
	(jsunit_RunTestForPageStep): use update_failures_span here to set
	the innerhtml to whatever our results currently are.
	(update_failures_span): new function, basically just set the text
	and background of the span.

2005-08-04  Chris Toshok  <[email protected]>

	* jsunit.js: add expected failure output.  add some (for now)
	disabled netscape.security handling for UniversalBrowserRead (so
	we can do testing of remote pages.)

2005-08-03  Chris Toshok  <[email protected]>

	* jsunit.js: Mucho improvements.

2005-08-02  Chris Toshok  <[email protected]>

	* jsunit.js (JSUnit_Click): fix typo.
	(checkReadyState): fix c&p error.
	(jsunit_RunTestPageStep): initialize both test_scripts.waiting and
	test_run.waiting before we fire off the load(s).
	(jsunit_FindTestFixture): new function to locate the test fixture
	on either page, and set top.test_fixture and
	top.test_fixture_context accordingly.
	(jsunit_RunTestsForPage): use jsunit_FindTestFixture.
	(jsunit_RunTestsForPageStep): same.
	(test_run_onload): remove the extraneous if-check
	(test_scripts_onload): same.

2005-08-01  Chris Toshok  <[email protected]>

	* jsunit.js (jsunit_RunTestForPageStep): add the public api to
	whatever script context we're using for TestFixture.  We need this
	here because pages that do postbacks but include the testfixture
	in the main page will get their context reset on the page load.

2005-08-01  Chris Toshok  <[email protected]>

	* jsunit.js: make the script: property on JSUnit_TestPages
	optional, and look for the TestFixture in the test_run page (so
	you can write html + tests all in one file).
	(JSUnit_Click): fix an "uh oh" alert.

2005-07-27  Chris Toshok  <[email protected]>

	* jsunit.js (Assert): when we fail due to an exception, use
	e.message which works on both ff and IE.
	
2005-07-27  Chris Toshok  <[email protected]>

	* jsunit.js: add a Trace object/window so we can get debug spew
	without window.alert.  Also, implement the readyState polling page
	loading hack for IE so we can remove all the onload handlers from
	.aspx/-script.html files in jsunit-tests (hurray).

2005-07-26  Chris Toshok  <[email protected]>

	* jsunit.js: add some better status messages.

2005-07-25  Chris Toshok  <[email protected]>

	* jsunit.js (JSUnit_Click): if el == null return early.
	(jsunit_RunTestForPageStep): wrap the call to testfunc() in a try
	block so we can add some failure text instead of making the user
	look at the JS console.

2005-07-25  Chris Toshok  <[email protected]>

	* jsunit-results.html: change the status span's id to status_text.

	* jsunit.js (encode): new function, to replace < with &lt;, > with
	&gt;, \n with \\n, etc, so when we output error strings we can see
	the actual html.
	(string_charcode_diff): return a string detailing the first index
	at which two strings differ.
	(Assert): encode all the strings we pass to test_failed.  Also on
	AreEqual and AreEqualCase, replace \r\n with \n (since mozilla
	seems to do this automatically, while IE doesn't), and also call
	string_charcode_diff.
	(JSUnit_*) change the state span's id to status_text so it works
	on IE, and widen the testcase tables.
	
2005-07-24  Chris Toshok  <[email protected]>

	* jsunit.js (JSUnit_GetAttribute): add optional id argument.
	defaults to using the bound element.
	
	* README: more docs, list out the convenience functions and some
	info about how to handle page loading.2005-08-26  Chris Toshok  <[email protected]>

	* TextBoxTest.cs: add tests for the 2.0 validation properties, and
	to make sure they're getting saved to the viewstate.

2005-08-26  Chris Toshok  <[email protected]>

	* FontUnitTest.cs: Add tests for the two 2.0 constructors, and the
	2.0 ToString(IFormatProvider) method.

	* UnitTest.cs: Add tests for the 2.0 ToString(IFormatProvider)
	method.

2005-08-25  Chris Toshok  <[email protected]>

	* CalendarTest.cs: add viewstate tests for Caption/CaptionAlign
	(2.0).

2005-08-24  Chris Toshok  <[email protected]>

	* ValidationSummaryTest.cs (ValidationSummary_ValidationGroup):
	add tests for ValidationGroup, making sure it's stored in the
	ViewState.

2005-08-23  Chris Toshok  <[email protected]>

	* RepeatInfoTest.cs (RenderRepeater_BaseControl): the 2.0 ReatInfo
	class does things a little differently.

2005-08-22  Chris Toshok  <[email protected]>

	* ListControlTest.cs: #if NET_2_0 some of the asserts whose values
	are different in 2.0.

	* ValidationSummaryTest.cs: same.

	* XmlTest.cs: same.

	* ListBoxTest.cs: same.

	* CheckBoxTest.cs: same.

	* UnitTest.cs: same.

	* TextBoxTest.cs: same.

	* CustomValidatorTest.cs: same.

	* DataGridTest.cs: same.

	* BaseCompareValidatorTest.cs: remove ko-KR, since my laptop
	presently can't find it, and we already have another ymd date
	element order.

2005-08-22  Chris Toshok  <[email protected]>

	* RepeatInfoTest.auto.cs: regenerate.

	* RepeatInfoTest.auto.2.0.cs: generate using .Net 2.0.

	* RepeatInfoTest.gen.cs: add wrapper #ifdefs for the 1.x/2.0 cases
	- we need both.

2005-08-22  Chris Toshok  <[email protected]>

	* BaseCompareValidatorTest.cs: fix the tests that change behavior
	between 1.x and 2.0.

2005-08-22  Chris Toshok  <[email protected]>

	* LinkButtonTest.cs: add validation group tests.

2005-08-22  Chris Toshok  <[email protected]>

	* ImageButtonTest.cs: add NET_2_0 validation tests.

2005-08-22  Chris Toshok  <[email protected]>

	* CheckBoxTest.cs: add NET_2_0 validation tests.

2005-08-22  Chris Toshok  <[email protected]>

	* ButtonTest.cs (Button_DefaultValues): add NET_2_0 test for
	ValidationGroup.
	(Button_ViewState): same.

2005-08-17  Chris Toshok  <[email protected]>

	* CompositeControlTest.cs: put it in the MonoTests. namespace so
	it shows up in the right place in the nunit gui.
	
2005-08-12  Chris Toshok  <[email protected]>

	* CompositeControlTest.cs: a couple of tests for CompositeControl.

2005-07-30  Chris Toshok  <[email protected]>

	* HyperLinkColumnTest.cs: add some tests for how the column
	initializes a TableCell.

2005-07-29  Chris Toshok  <[email protected]>

	* BaseCompareValidatorTest.cs (CanConvert): disable B9, until we
	figure out a culture independent way to do it.
	(Convert): same with C17/C18.
	(MiscPropertiesAndMethods): test CutoffYear, GetFullYear, and
	GetDateElementOrder.

2005-07-29  Chris Toshok  <[email protected]>

	* BaseCompareValidatorTest.cs: use DateTime to generate the
	strings for our date tests, since they're culture specific.

2005-07-19  Chris Toshok  <[email protected]>

	* BaseValidatorTest.cs: use the right call (SetValidationTextBox)
	in ValidatorTest.

2005-07-19  Chris Toshok  <[email protected]>

	* BaseCompareValidatorTest.cs: add date tests.

2005-07-18  Chris Toshok  <[email protected]>

	* BaseCompareValidatorTest.cs: note the lack of Date tests, and
	add null tests.

2005-07-18  Chris Toshok  <[email protected]>

	* BaseCompareValidatorTest.cs: new tests.

2005-07-18  Chris Toshok  <[email protected]>

	* CompareValidatorTest.cs (CompareValidator_ValueToCompareTest,
	CompareValidator_ControlToCompareTest): new methods.

	* ValidatorTest.cs: add AddTextBox method.

2005-07-18  Chris Toshok  <[email protected]>

	* RegularExpressionValidatorTest.cs: add a simple validation test.

	* ValidatorTest.cs: add a base class for validator tests, that
	enables a little scaffolding for faking out the test.

2005-07-18  Chris Toshok  <[email protected]>

	* CompareValidatorTest.cs: new tests.

2005-07-18  Chris Toshok  <[email protected]>

	* RegularExpressionValidatorTest.cs: new test.

2005-08-19  Chris Toshok  <[email protected]>

	* ProfileInfo.cs: I was bored.  implement this.

2005-08-25  Chris Toshok  <[email protected]>

	* HttpApplication.cs (IsReusable): return true.
	(InitOnce): remove the initialization of handler_factory from
	here.
	(GetHandler) and move it here, so we make sure to load handlers
	from all needed web.config files.

2005-08-25  Chris Toshok  <[email protected]>

	* HttpApplication.cs (InitOnce): move the initialization of
	modules above the call to HttpApplicationFactory.AttachEvents,
	since that method accesses HttpApplication.Modules.  Fixes
	nGallery.
	(IsReusable): mark TODO.

2005-08-18  Chris Toshok  <[email protected]>

	* HttpRequest.cs (get_Params): implement.

2005-08-17  Chris Toshok  <[email protected]>

	* HttpResponse.cs: HttpResponse's Cookie's collection acts
	differently than HttpRequests in that it never returns null from
	the "this [string]" accessor.

2005-07-27  Chris Toshok  <[email protected]>

	* HttpResponseHeader.cs: remove spew.
	
2005-07-27  Chris Toshok  <[email protected]>

	* HttpResponseHeader.cs (HttpResponseHandler..ctor): use
	HttpWorkerRequest.GetKnownResponseHeaderName instead of
	GetKnownRequestHeaderName.  Fixes Response.Redirect until miguel's
	new HttpReponse is online.

2005-07-21  Chris Toshok  <[email protected]>

	* HttpBrowserCapabilities.cs: enable support for the W3CDomVersion
	and EcmaScriptVersion properties.

2005-07-21  Chris Toshok  <[email protected]>

	* HttpResponseHeader.cs: hi, i'm stupid and missed String.Replace.
	
2005-07-21  Chris Toshok  <[email protected]>

	* HttpResponseHeader.cs: url encode just \r and \n if they're
	present in the value.

2005-07-20  Chris Toshok  <[email protected]>

	* HttpPostedFile.cs: add missing ContentLength property.

2005-07-20  Chris Toshok  <[email protected]>

	* HttpCookieCollection.cs: add a new ctor that takes a string (the
	contents of the Cookies: header).

2005-07-20  Chris Toshok  <[email protected]>

	* HttpCookieCollection.cs: add another ctor (internal, but not
	obsolete, so we aren't passing a stupid HttpResponse in in order
	to change the behavior of the collection.)

	* HttpCookie.cs: init this.values in the internal ctor.

2005-07-20  Chris Toshok  <[email protected]>

	* HttpCookieCollection.cs: use "auto-fill mode" when we're dealing
	with an HttpResponse's cookie collection.  That is, create the
	cookie if the consumer looks it up.

2005-07-18  Chris Toshok  <[email protected]>

	* HttpResponseHeader.cs: initial implementation.

2005-07-18  Chris Toshok  <[email protected]>

	* HttpModuleCollection.cs (HttpModuleCollection.GetKey): add
	missing method.

	* HttpFileCollection.cs: initial implementation.

2005-07-18  Chris Toshok  <[email protected]>

	* HttpModuleCollection.cs (HttpModuleCollection.CopyTo): implement
	missing method.

2005-07-18  Chris Toshok  <[email protected]>

	* HttpModuleCollection.cs: initial implementation.

2005-07-18  Chris Toshok  <[email protected]>

	* HttpCacheVaryByHeaders.cs: only add the header if it's not
	already in the hash.

	* HttpCacheVaryByParams.cs: only add the param if it's not already
	in the hash.

2005-07-18  Chris Toshok  <[email protected]>

	* HttpCookie.cs (HttpCookie+CookieNVC.Set): new override to fix an
	MS quirk.

2005-07-16  Chris Toshok  <[email protected]>

	* HttpCacheVaryByHeaders.cs: make sure we set vary_by_unspecified
	= false in the custom setter.

2005-07-16  Chris Toshok  <[email protected]>

	* HttpCacheVaryByParams.cs: initial implementation.

2005-07-16  Chris Toshok  <[email protected]>

	* HttpCacheVaryByHeaders.cs: initial implementation.

2005-07-15  Chris Toshok  <[email protected]>

	* HttpCookie.cs: one more time.

2005-07-15  Chris Toshok  <[email protected]>

	* HttpCookie.cs (HttpCookie.GetCookieHeader): use
	expires.ToString().
	
2005-07-15  Chris Toshok  <[email protected]>

	* HttpCookie.cs (HttpCookie.GetCookieHeader): implement to fix
	ben's bug.

2005-07-15  Chris Toshok  <[email protected]>

	* HttpCookieCollection.cs: initial implementation (with a couple
	of labeled inefficiencies.)

2005-07-15  Chris Toshok  <[email protected]>

	* HttpCookie.cs (HttpCookie.get_HasKeys): use values.HasKeys()
	instead of trying to be smart about it ourselves.

2005-07-15  Chris Toshok  <[email protected]>

	* HttpCookie.cs: initial implementation.  we fail one unit test,
	but it might be due to a bug in NameValueCollection.

2005-08-26  Chris Toshok  <[email protected]>

	* HtmlButton.cs (ValidationGroup): implement.
	(RaisePostBackEvent): gross #ifdef-iry to make sure we only have
	one body of the actual RaisePostBackEvent code.  Also, call
	Page.Validate(ValidationGroup) in the 2.0 case.

2005-08-25  Chris Toshok  <[email protected]>

	* HtmlForm.cs (CreateControlCollection, OnPreRender,
	RenderControl): implement naively, just calling base.Method.

2005-08-25  Chris Toshok  <[email protected]>

	* HtmlForm.cs (RenderAttributes): don't strip off the stuff after
	the last '/' when rendering the action.  Fixes comments in
	nGallery.

2005-08-24  Chris Toshok  <[email protected]>

	* HtmlInputButton.cs, HtmlInputFile.cs, HtmlHead.cs,
	HtmlInputImage.cs, HtmlForm.cs, HtmlInputCheckBox.cs,
	HtmlInputHidden.cs, HtmlButton.cs, HtmlSelect.cs, HtmlControl.cs:
	Add MonoTODO's for all NotImplementedException's.

2005-07-20  Chris Toshok  <[email protected]>

	* HtmlForm.cs (RenderAttributes): if there are submit statements,
	we need to render those.

	* HtmlInputImage.cs: same.

	* HtmlInputButton.cs: hook up the client validation stuff.

	* HtmlButton.cs: same, except a lot more complicated due to
	postback handling.

2005-08-24  Chris Toshok  <[email protected]>

	* Control.cs (get_Adapter): Instead of throwing an exception, just
	return null, so we can write the rest of the Control specific
	Adapter code and just not enable any of those code paths until we
	have actual adapters.  Also flag TODO.
	(EnsureChildControls): Call out to Adapter.CreateChildControls if
	we have an adapter.
	(RenderChildren): call "RenderControl (writer, adapter)" if we
	have an adapter.
	(RenderControl): implement the adapter case naively.
	(LoadRecursive): call out to Adapter.OnLoad if we have one.
	(PreRenderRecursiveInternal): call out to Adapter.OnPrerender if
	we have one.
	(InitRecursive): call out to Adapter.OnInit if we have one.

2005-08-24  Chris Toshok  <[email protected]>

	* Page.cs (GetPostBackEventReference): track change to
	ClientScriptManager and don't call a removed method.

	* ClientScriptManager.cs: track more recent docs and corcompare
	output.

2005-07-30  Chris Toshok  <[email protected]>

	* Page.cs (VerifyRenderingInServerForm): copy MS's error message
	since our form-errors jsunit tests depend on it.

2005-07-30  Chris Toshok  <[email protected]>

	* DataBinder.cs (FormatResult): make internal, not private.

2005-07-20  Chris Toshok  <[email protected]>

	* ClientScriptManager.cs (GetClientValidationEvent): the JS we
	stick in onclick handlers for buttons/links/etc.

	* Page.cs (GetSubmitStatements): new function to return
	scriptManager.WriteSubmitStatements.  Used by HtmlForm.
	(AreValidatorsUplevel): used by many of the button/linkbutton
	controls (the ones that can CauseValidation) to tell whether or
	not to emit client side validation calls.

2005-07-20  Chris Toshok  <[email protected]>

	* WebResourceAttribute.cs: make internal (and available) in
	!NET_2_0.

2005-07-20  Chris Toshok  <[email protected]>

	* ClientScriptManager.cs (GetWebResourceUrl): make internal (but
	available) in !NET_2_0.

2005-08-24  Chris Toshok  <[email protected]>

	* PageAdapter.cs, ControlAdapter: add MonoTODO's.

2005-07-20  Chris Toshok  <[email protected]>

	* AssemblyInfo.cs: add WebUIValidation.js attribute.

2005-08-17  Chris Toshok  <[email protected]>

	* WebPart.cs: add basic stubbed out (and mostly NYI)
	methods/properties.

	* Part.cs: same.

2005-08-25  Chris Toshok  <[email protected]>

	* HandlerFactoryConfiguration.cs: implement the slow path for
	PathMatches using Regex.  Also, make the fast path for exact
	matches faster (and more correct).

2005-08-25  Chris Toshok  <[email protected]>

	* HandlerFactoryConfiguration.cs: chain up to the parent
	Configuration if we don't have a match, instead of adding the
	parent's handlers to our list (and thereby overriding ours).

2005-08-04  Chris Toshok  <[email protected]>

	* WebUIValidation.js (CustomValidatorEvaluateIsValid): correct the
	args.IsValid check.

2005-08-04  Chris Toshok  <[email protected]>

	* WebUIValidation.js (ValidatorOnLoad): set "enabled" == "true" if
	there's no attribute present.
	(Page_ClientValidate): a validator succeeds if it's disabled.

2005-07-27  Chris Toshok  <[email protected]>

	* WebUIValidation.js (ValidatorCommonOnSubmit): fix formatting of
	List and SingleParagraph mode ValidationSummaries.
	(ValidatorTrim): use two regexps instead of two while loops.
	(CustomValidatorEvaluateIsValid): new function.

2005-07-26  Chris Toshok  <[email protected]>

	* WebUIValidation.js: fix the summary mode for
	ValidationSummaries.

2005-07-25  Chris Toshok  <[email protected]>

	* WebUIValidation.js (RangeValidatorEvaluateIsValid): fix this -
	GetAttribute is dead, long live validator.getAttribute.

2005-07-24  Chris Toshok  <[email protected]>

	* WebUIValidation.js: add support for validation summaries, both
	in summary and messagebox mode.

2005-07-22  Chris Toshok  <[email protected]>

	* WebUIValidation.js: the JSUnit tests pointed out that
	validator.evaluationfunction is not a string after OnLoad.  do
	this as well so the tests pass, and deal with the difference
	between o[attr], o.getAttribute(attr), and o.attr. Ugh.

2005-07-21  Chris Toshok  <[email protected]>

	* WebUIValidation.js (RequiredFieldValidatorEvaluateIsValid): trim
	both the initial value and the control's value.

2005-07-21  Chris Toshok  <[email protected]>

	* WebUIValidation.js: handle validators that use
	Display="Dynamic".

2005-07-20  Chris Toshok  <[email protected]>

	* WebUIValidation.js (ValidatorTrim): new function.
	(RangeValidatorEvaluateIsValid): use ValidatorGetValue and
	ValidatorTrim.
	(RegularExpressionValidatorEvaluateIsValid): same.
	(RequiredFieldValidatorEvaluateIsValid): same.

2005-07-20  Chris Toshok  <[email protected]>

	* WebUIValidation.js: new file.

2005-08-26  Chris Toshok  <[email protected]>

	* TextBox.cs: implement ValidationGroup and CausesValidation
	properties.

2005-08-26  Chris Toshok  <[email protected]>

	* Unit.cs: implement the 2.0 ToString(IFormatProvider) method.

	* FontUnit.cs: add two 2.0 ctors, and the 2.0
	ToString(IFormatProvider) method.

2005-08-26  Chris Toshok  <[email protected]>

	* Calendar.cs (UseAccessibleHeader): implement.
	(RaisePostBackEvent): some #ifdef ugliness to get this all working
	propertly between 1.x and 2.0
	(WriteDayHeader): if UseAccessibleHeader == true, render header
	cells as th's, not td's, and add abbr and scope attributes.

2005-08-25  Chris Toshok  <[email protected]>

	* Calendar.cs (Caption, CaptionAlign): implement these properties.
	(Render): if we have a non-empty caption, show it.
	(WriteCaption): new method, output the caption.

2005-08-25  Chris Toshok  <[email protected]>

	* Calendar.cs (Render): Copy the entire style from the Calendar to
	the Table, not just the font.
	(WriteDay): don't just write the link/text/etc.  Create a
	LiteralControl as a child of the cell, before the call to
	OnDayRender, with its text set to the day number.  After
	OnDayRender, set the literal's text to either the number again (if
	it's not selectable) or the full text of the js __doPostBack
	hyperlink (if it is.)  Also, use cell.RenderControl here so we can
	render child controls with the id's listed properly (and arguably
	incorrectly).
	(ApplyTitleStyleCell): remove.
	(WriteTitle): apply the titleStyle to the enclosing table, not the
	table cell containing the month name.  Also, copy from the
	Calendar's ControlStyle to populate tableTitle's style initially.
	We end up with more (superfluous) style attributes than MS, but
	it's better than having less.

2005-08-25  Chris Toshok  <[email protected]>

	* LinkButton.cs (PostBackUrl): correct the UrlProperty attribute.

	* Unit.cs: add [Serializable] and the 2.0 specific ToString(), not
	yet implemented.

	* HiddenField.cs: stub out this class and label everything
	MonoTODO.

2005-08-25  Chris Toshok  <[email protected]>

	* SqlDataSourceFilteringEventArgs.cs: add some usings, and fix a
	typo.

	* SqlDataSourceSelectingEventArgs.cs: IDbCommand -> DbCommand, and
	add a using statement.

2005-08-25  Chris Toshok  <[email protected]>

	* SqlDataSourceFilteringEventArgs.cs: new 2.0 class, as per
	corcompare.

	* SqlDataSourceFilteringEventHandler.cs: new 2.0 delegate, as per
	corcompare.

2005-08-25  Chris Toshok  <[email protected]>

	* SqlDataSourceCommandType.cs: new 2.0 enum, as per corcompare.

2005-08-25  Chris Toshok  <[email protected]>

	* AdRotator.cs: stub out enough of the 2.0 methods/properties by
	calling base.Foo to get the standalone adrotator (1.0) tests to
	run without throwing exceptions.

2005-08-25  Chris Toshok  <[email protected]>

	* ValidationSummary.cs (ValidationGroup): implement.
	(Render): use Page.GetValidators in .net 2.0, so we can support
	ValidationGroups.  Also, <br>'s get rendered as <br /> in .net
	2.0.

2005-08-25  Chris Toshok  <[email protected]>

	* ImageButton.cs (TagKey): disable (but flag) the "virtual new"
	2.0 attribute modifiers, and revert back to "override".

	* ListBox.cs (BorderColor): disable (but flag) the "virtual new"
	2.0 attribute modifiers, and revert back to "override".
	(BorderStyle): same.
	(BorderWidth): same.

	* TextBox.cs (SaveViewState): implement naively, calling
	base.SaveViewState.
	(TagKey): disable (but flag) the "virtual new" 2.0 attribute
	modifiers, and revert back to "override".

2005-08-24  Chris Toshok  <[email protected]>

	* Button.cs, DetailsView.cs, FontInfo.cs, Style.cs, Xml.cs,
	Menu.cs, ObjectDataSource.cs, CheckBox.cs, RadioButton.cs,
	ListControl.cs, SiteMapPath.cs, BulletedList.cs,
	DataBoundControl.cs, ListItemCollection.cs, GridView.cs,
	Wizard.cs, TextBox.cs, CheckBoxList.cs, RadioButtonList.cs,
	PagedDataSource.cs, FormView.cs, AdRotator.cs, Repeater.cs,
	DropDownList.cs, MultiView.cs, HierarchicalDataBoundControl.cs,
	Calendar.cs, ListBox.cs, WebControl.cs, Literal.cs,
	ValidationSummary.cs, ImageButton.cs, LinkButton.cs, TreeView.cs:
	Add MonoTODO's for all things that throw NotImplementException.

2005-08-23  Chris Toshok  <[email protected]>

	* BaseCompareValidator.cs (GetFullYear): it turns out the docs up
	on msdn.microsoft.com tell exactly how the .net 2.0 stuff works,
	even though they were written for the 1.0 stuff.

2005-08-23  Chris Toshok  <[email protected]>

	* RepeatInfo.cs: some massaging to support both the 1.x and 2.0
	output.  Our tests now pass on both mono and ms, with both 1.x and
	2.0 profiles.

2005-08-22  Chris Toshok  <[email protected]>

	* LinkButton.cs (ValidationGroup): implement.
	(IPostBackEventHandler.RaisePostBackEvent): in the 2.0 profile,
	pass ValidationGroup to Page.Validate.

2005-08-22  Chris Toshok  <[email protected]>

	* ImageButton.cs (ValidationGroup): implement.
	(IPostBackEventHandler.RaisePostBackEvent): if we cause
	validation, call Page.Validate properly (in both profiles).

2005-08-22  Chris Toshok  <[email protected]>

	* Button.cs (IPostBackEventHandler.RaisePostBackEvent): in the 2.0
	case, pass ValidationGroup to Page.Validate.
	(ValidationGroup): implement using ViewState.

2005-08-22  Chris Toshok  <[email protected]>

	* BaseValidator.cs (Text): 2.0 only.  implement naively, just
	get/set base.Text.
	(OnInit): add 2.0 support for validation groups.
	(OnUnload): same.

2005-08-19  Chris Toshok  <[email protected]>

	* LinkButton.cs (ValidationGroup): implement getter/setter.
	(RaisePostBackEvent): implement naively, by c&p'ing the old
	implementation of IPostBackEventHandler.RaisePostBackEvent, but
	making use of the ValidationGroup in the call to Page.Validate.

	* Button.cs: same.

	* Style.cs (LoadViewState): set our style flags for all the things
	we have flags for.  Seems like the subclass flags should be
	handled in overridden LoadViewState methods, but none of the Style
	subclasses seem to override this method.

2005-08-19  Chris Toshok  <[email protected]>

	* TableStyle.cs (Merge, MergeWith): make these look a bit more
	like Copy/CopyFrom, with the styles checks instead of just
	ViewState checks.

	* TableItemStyle.cs: same, only also make Copy/CopyFrom work as in
	TableStyle.cs.

2005-08-19  Chris Toshok  <[email protected]>

	* DataGrid.cs (InitializePager): don't unconditionally set
	pager_cell to the numeric pager (especially after setting it
	conditionally to the nextprev pager.)
	(InitializeNumericPager): the link buttons don't participate in
	validation.
	(InitializeNextPrevPager): same.
	(CreateControlHierarchy): create the top/bottom pagers only if the
	PagerStyle says too.

2005-08-18  Chris Toshok  <[email protected]>

	* DataList.cs (CreateControlHierarchy): Call Controls.Clear() at
	the start of this method so templates are created properly.

2005-08-17  Chris Toshok  <[email protected]>

	* CompositeControl.cs (RecreateChildControls): implement naively -
	just call CreateChildControls.  We might need to call
	Controls.Clear() as well, but for the time being, this is ok.

2005-08-12  Chris Toshok  <[email protected]>

	* CompositeControl.cs (DataBind, Render, get_Controls): the MSDN
	docs says these methods/properties "ensure the child controls are
	created" -- so call EnsureChildControls() before invoking the base
	class's code.

2005-08-10  Chris Toshok  <[email protected]>

	* Label.cs (LoadViewState): set the Text attribute from our
	ViewState (if it exists) to clear out any child controls.  Fixes
	jsunit test label/label-child-control-postback.aspx.

2005-08-05  Chris Toshok  <[email protected]>

	* HyperLinkColumn.cs (FormatDataNavigateUrlValue): treat "" as
	null when it comes to the format string.
	(FormatDataTextValue): same.

2005-08-04  Chris Toshok  <[email protected]>

	* BaseValidator.cs (Validate): only test a validator if it's both
	enabled and visible.

2005-08-04  Chris Toshok  <[email protected]>

	* BaseValidator.cs (AddAttributesToRender): add "enabled" if
	!Enabled.

2005-08-01  Chris Toshok  <[email protected]>

	* HyperLinkColumn.cs (ItemDataBinding): remove incorrect comment.

2005-07-30  Chris Toshok  <[email protected]>

	* BaseValidator.cs: initial version of 2.0 properties
	ValidationGroup and SetFocusOnError.

2005-07-30  Chris Toshok  <[email protected]>

	* HyperLinkColumn.cs (InitializeCell): clean this up.

2005-07-30  Chris Toshok  <[email protected]>

	* HyperLinkColumn.cs (FormatDataNavigateUrlValue): just use
	DataBinder.FormatResult.
	(FormatDataTextValue): same.
	(Initialize): call base.Initialize.
	(ItemDataBinding): new function, get the text/navigateurl and set
	them on our HyperLink control.
	(InitializeCell): create a hyperlink control in the
	Item/EditItem/AlternatingItem case.

2005-07-29  Chris Toshok  <[email protected]>

	* BaseCompareValidator.cs (GetDateElementOrder): implement.

2005-07-29  Chris Toshok  <[email protected]>

	* BaseCompareValidator.cs (GetFullYear): implement two ways.  The
	#if'ed out version follows microsoft's docs on msdn, but doesn't
	match ms's behavior.  The other matches their behavior but not
	their docs.  we use the latter.  go figure.
	(get_CutoffYear): implement using
	CultureInfo.CurrentCulture.Calendar.TwoDigitYearMax.

2005-07-29  Chris Toshok  <[email protected]>

	* BaseValidator.cs (Validatate): not sure if this is entirely
	correct (some fairly deep testing required), but setting Enabled =
	false has the effect of setting IsValid = true.

2005-07-27  Chris Toshok  <[email protected]>

	* RegularExpressionValidator.cs (EvaluateIsValid): "" is valid.

2005-07-26  Chris Toshok  <[email protected]>

	* LinkButton.cs (AddParsedSubObject): reversed the order of
	Controls.Add() and Text = null
	(set_Text): call Controls.Clear()
	(RenderContents): use HasControls() for the if test instead of
	Text != "".

	* HyperLink.cs (AddParsedSubObject): reversed the order of
	Controls.Add () and Text = null;

2005-07-26  Chris Toshok  <[email protected]>

	* LinkButton.cs (AddParsedSubObject): copy implementation from
	HyperLink.
	(RenderContents): only call writer.Write(Text) if Text != "".
	Otherwise default to base.RenderContents.

2005-07-26  Chris Toshok  <[email protected]>
	
	* Button.cs, CheckBox.cs, TextBox.cs, DropDownList.cs, ListBox.cs,
	ImageButton.cs, LinkButton.cs (AddAttributesToRender): add if
	(Page != null) around my last commit.
	
2005-07-26  Chris Toshok  <[email protected]>

	* Button.cs, CheckBox.cs, TextBox.cs, DropDownList.cs, ListBox.cs,
	ImageButton.cs, LinkButton.cs (AddAttributesToRender): call
	Page.VerifyRenderingInServerFormHere.

2005-07-26  Chris Toshok  <[email protected]>

	* BaseValidator.cs: remove some MonoTODO's about the client side
	validator stuff.

2005-07-25  Chris Toshok  <[email protected]>

	* ValidationSummary.cs (AddAttributesToRender): add client side
	support.
	(OnPreRender): set the "been here" flag.
	(Render): add client side support.

2005-07-23  Chris Toshok  <[email protected]>

	* BaseValidator.cs (GetControlValidateValue): handle ListItems as
	prop.GetValue results.
	(Render): fix the static non-uplevel case, so that we display text
	when there's an error.

2005-07-22  Chris Toshok  <[email protected]>

	* RegularExpressionValidator.cs (AddAttributesToRender): only
	output ValidationExpression if it's != null.

2005-07-22  Chris Toshok  <[email protected]>

	* BaseValidator.cs (AddAttributesToRender): fix up the Display
	rendering such it matches MS's output.
	(Render): stop using the huge complicated if's for each output
	stage and move to boolean flags, and fix the static-nonuplevel
	case, where a validator outputs as nothing but &nbsp;

2005-07-21  Chris Toshok  <[email protected]>

	* BaseValidator.cs (RegisterValidatorCommonScript): remove the NS4
	stuff that I c&p'ed from elsewhere - NS4 doesn't support the DOM1
	stuff WebUIValidation.js uses, so we don't support it for uplevel
	rendering.

2005-07-21  Chris Toshok  <[email protected]>

	* BaseValidator.cs (DetermineRenderUplevel): include checks for
	the EcmaScriptVersion and W3CDomVersion.

2005-07-21  Chris Toshok  <[email protected]>

	* BaseValidator.cs (OnPreRender): call DetermineRenderUplevel and
	cache the results.

2005-07-21  Chris Toshok  <[email protected]>

	* BaseValidator.cs (get_PropertiesValid): use our containing
	NamingContainer, not ourselves, to look up controls.
	(CheckControlValidationProperty): same.
	(GetControlRenderID): same.
	(GetControlValidationValue): same.
	(AddAttributesToRender): add the display style attribute if
	Display != Static, and add the value of IsValid if it's false.
	(DetermineRenderUplevel): use a try block around (Page.Request)
	since that can raise an exception.
	(OnPreRender): set pre_render_called, so we can consult it in
	Render.
	(Render): complicate this method more to handle more of the
	Display/pre_render_called permutations.

2005-07-20  Chris Toshok  <[email protected]>

	* BaseValidator.cs: don't use Page.FindControl, use this Control's
	FindControl, so it'll use the same naming container.

2005-07-20  Chris Toshok  <[email protected]>

	* Button.cs: hook up the client side validation stuff.

	* ImageButton.cs: same.

	* LinkButton.cs: same, although it's a little more complicated
	here.

2005-07-20  Chris Toshok  <[email protected]>

	* BaseValidator.cs: another Page != null check when uplevel
	rendering.
	
2005-07-20  Chris Toshok  <[email protected]>

	* BaseValidator.cs: check Page != null when determining if we're
	rendering uplevel or not.

2005-07-20  Chris Toshok  <[email protected]>

	* BaseValidator.cs (AddAttributesToRender): render the client side
	attributes if we're in uplevel mode.
	(DetermineRenderUplevel): flesh out a bit - for now basically
	return true unless the control has it disabled.
	(OnInit): only add the validator to Page's list if there is, in
	fact, a page.
	(OnUnload): same for removal.
	(OnPreRender): hook up client scripting stuff here.  Only the call
	to RegisterValidatorCommonScript is a for sure thing here, the
	registering of the submit statement and startup script should
	probably go elsewhere, but I don't know where.
	(RegisterValidatorCommonScript): register the <script
	src=".../WebUIValidation.js"> tag, if it's not already there.
	(RegisterValidatorDeclaration): add our span object to the
	Page_Validators JS array.
	(Render): always render the tags (although this is probably not
	right), and call RegisterValidatorDeclaration here.
	
	* BaseCompareValidator.cs (AddAttributesToRender): render the
	client side attributes if we're in uplevel mode.
	(DetermineRenderUplevel): add MonoTODO.. why override this?  Just
	call base.DetermineRenderUplevel for now.

	* RegularExpressionValidator.cs (AddAttributesToRender): render
	the client side attributes if we're in uplevel mode.
	
	* RequiredFieldValidator.cs (AddAttributesToRender): same.

	* CompareValidator.cs (AddAttributesToRender): same.
	
2005-07-19  Chris Toshok  <[email protected]>
	
	* BaseValidator.cs: more fixes from pdb.

2005-07-19  Chris Toshok  <[email protected]>

	* BaseValidator.cs: some test-driven fixes.

2005-07-19  Chris Toshok  <[email protected]>

	* BaseValidator.cs: Initial implementation.

2005-07-18  Chris Toshok  <[email protected]>

	* BaseCompareValidator.cs: Initial implementation, with some NYI.

2005-07-18  Chris Toshok  <[email protected]>

	* CompareValidator.cs: wtf, just use the base class's methods.

2005-07-18  Chris Toshok  <[email protected]>

	* CompareValidator.cs: do comparisons based on
	BaseCompareValidator.Type.

2005-07-18  Chris Toshok  <[email protected]>

	* CompareValidator.cs: initial implementation.

2005-07-18  Chris Toshok  <[email protected]>

	* RegularExpressionValidator.cs: initial implementation.

2005-08-24  Chris Toshok  <[email protected]>

	* MenuAdapter.cs (OnInit): Call "Page.RegisterRequiresControlState
	(Control)" as the docs point out.
	(LoadAdapterControlState): throw NIE and flag TODO.

2005-08-24  Chris Toshok  <[email protected]>

	* HierarchicalDataBoundControlAdapter.cs (PerformDataBinding):
	this takes no arguments.

2005-08-24  Chris Toshok  <[email protected]>

	* WebControlAdapter.cs, HierarchicalDataBoundControlAdapter.cs,
	DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs,
	MenuAdapter.cs: fix namespace.
	
2005-08-24  Chris Toshok  <[email protected]>

	* DataBoundControlAdapter.cs, HideDisabledControlAdapter.cs,
	HierarchicalDataBoundControlAdapter.cs, MenuAdapter.cs,
	WebControlAdapter.cs: initial implementations.  Mostly completely
	(as per msdn2 docs, anyway).

svn path=/trunk/mcs/; revision=48917
2005-08-26 22:24:32 +00:00
Miguel de Icaza 4c004f75ed Remove
svn path=/trunk/mcs/; revision=48909
2005-08-26 20:38:24 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Lluis Sanchez 300c4162b7 2005-02-02 Lluis Sanchez Gual <[email protected]>
* Button.cs, MonthChangedEventArgs.cs, FontInfo.cs, Xml.cs, Style.cs,
	CookieParameter.cs, HyperLinkColumn.cs, Table.cs,
	RegularExpressionValidator.cs, WizardNavigationEventArgs.cs,
	ServerValidateEventArgs.cs, Menu.cs, DataControlField.cs,
	DataGridPagerStyle.cs, Label.cs, CheckBox.cs, ListItem.cs,
	RadioButton.cs, TableStyle.cs, ListControl.cs, Image.cs,
	BaseCompareValidator.cs, FontUnit.cs, DataListCommandEventArgs.cs,
	IButtonControl.cs, BaseDataList.cs, DataList.cs, BulletedList.cs,
	RangeValidator.cs, DataBoundControl.cs, ControlParameter.cs,
	RepeaterItemEventArgs.cs, SqlDataSource.cs, BaseValidator.cs,
	CustomValidator.cs, MenuItem.cs, SessionParameter.cs, TextBox.cs,
	QueryStringParameter.cs, Content.cs, ContentPlaceHolder.cs,
	CheckBoxList.cs, RepeaterCommandEventArgs.cs, RadioButtonList.cs,
	RequiredFieldValidator.cs, AdRotator.cs, DataListItemEventArgs.cs,
	DataGridSortCommandEventArgs.cs, Repeater.cs,
	MenuItemTemplateContainer.cs, HyperLink.cs, SqlDataSourceView.cs,
	XmlDataSource.cs, MultiView.cs, DataGridCommandEventArgs.cs,
	Panel.cs, CompositeControl.cs, DataGrid.cs, ButtonColumn.cs,
	CompareValidator.cs, HierarchicalDataBoundControl.cs,
	EditCommandColumn.cs, Calendar.cs, SiteMapDataSource.cs, 
	ListBox.cs, TableCell.cs, ObjectDataSourceSelectingEventArgs.cs,
	ObjectDataSourceMethodEventArgs.cs,DataGridPageChangedEventArgs.cs,
	WebControl.cs, BaseDataBoundControl.cs, FormParameter.cs,
	ValidationSummary.cs, View.cs, ImageButton.cs, TableRow.cs,
	LinkButton.cs, DataGridColumn.cs, Parameter.cs, TableItemStyle.cs,
	AdCreatedEventArgs.cs:
	
	General 2.0 API fixes: missing attributes, incorrect inheritance,
	missing sealed keywords, wrong signatures, etc.


svn path=/trunk/mcs/; revision=39994
2005-02-02 16:24:08 +00:00
Lluis Sanchez 1fa06c7f21 2005-01-28 Lluis Sanchez Gual <[email protected]>
* Table.cs: Added some 2.0 properties.
	* FontUnitConverter.cs, UnitConverter.cs: Implemented conversion to
	InstanceDescriptor.
	* BaseValidator.cs: Fix warning.
	* MultiView.cs, ViewCollection.cs, View.cs: Implemented.


svn path=/trunk/mcs/; revision=39731
2005-01-29 00:04:36 +00:00
Marek Safar 47bb6c3b60 removed unused variable
svn path=/trunk/mcs/; revision=36775
2004-11-29 12:52:00 +00:00
Gonzalo Paniagua Javier fd38a7548c 2004-07-29 Gonzalo Paniagua Javier <[email protected]>
* BaseValidator.cs: in Validate(), when the control is not visible or
	enabled, return inmediately after setting IsValid to true. Fixes bug
	#61831.

svn path=/trunk/mcs/; revision=31629
2004-07-29 20:25:57 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Lluis Sanchez 74f52190d1 * BaseValidator.cs: Store Display property in the correct ViewState
property. Don't render anything if Display is ValidatorDisplay.None.

svn path=/trunk/mcs/; revision=25149
2004-04-07 09:25:12 +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
Gaurav Vaish 8ecd3fc114 2002-10-29 Gaurav Vaish <gvaish_mono AT lycos.com>
* BaseValidator.cs      : DetermineRenderUplevel()  - Completed.
                        : RegisterValidatorCommonScript()
                                       - More code, I need HELP!
                        : RegisterValidatorDeclaration()
                                       - More code, I need HELP!

svn path=/trunk/mcs/; revision=18764
2003-10-08 18:58:27 +00:00
Gonzalo Paniagua Javier 441b4e3e3e 2003-09-13 Gonzalo Paniagua Javier <[email protected]>
* BaseValidator.cs: patch by Juraj Skripsky ([email protected]) that
	fixes rendering of the end tag.

svn path=/trunk/mcs/; revision=18059
2003-09-13 12:01:54 +00:00