Commit Graph
83 Commits
Author SHA1 Message Date
Marek Habersack e60769f5d6 [asp.net] Fixed formatting of exception message. It doesn't swallow newlines now 2011-01-24 12:19:53 +01:00
Marek Habersack 1465bf891a [ASP.NET] Templated exception reporting and a new look for the Yellow Screen Of Death
This commit implements the base template code along with the default Mono theme for exception/error
reporting in ASP.NET applications. Means for user to implement their own templates will be provided
at a later date.
2011-01-24 03:15:14 +01:00
Marek Habersack ebbcc1c9f9 [asp.net] Client-side callbacks must use new names for the target and argument fields
__CALLBACKTARGET and __CALLBACKARGUMENT have been renamed to __CALLBACKID and __CALLBACKPARAM, respectively,
recently and this script didn't get update for the change causing callbacks not to work on master.
2010-08-13 00:12:23 +02:00
Marek Habersack 6828b3a1c8 2010-06-15 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: fail gracefully if control to validate
	is not found (webForm.ValidatorGetValue and
	webForm.Page_ClientValidate). Fixes bug #609478

svn path=/trunk/mcs/; revision=158905
2010-06-14 23:25:07 +00:00
Marek Habersack ff8784c653 2009-10-05 Marek Habersack <[email protected]>
* Makefile ($(build_lib)): fixed a typo in dependency macro

2009-10-05  Marek Habersack  <[email protected]>

	* WebUIValidation_2.0.js: before using webFrom.Page_Validators,
	check if they are defined and not null. Fixes bug #542582

svn path=/trunk/mcs/; revision=143388
2009-10-05 11:15:03 +00:00
Jonathan Pryor 6e21b01bc5 * TranslationResources.resx (ErrOperationAborted): Send viewers of
this message to the Wiki for possible reasons they may get an
	  exception (and how to fix it).

svn path=/trunk/mcs/; revision=133515
2009-05-04 17:43:31 +00:00
Marek Habersack 6621e0b2f2 2009-04-03 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: CustomValidatorEvaluateIsValid calls the
	client-side evaluation function even if ControlToValidate is not
	set. Fixes bug #485458

svn path=/trunk/mcs/; revision=130979
2009-04-03 16:02:03 +00:00
Martin Baulig 5482c75a0a Add .gitignore's.
svn path=/trunk/mcs/; revision=128880
2009-03-09 14:14:56 +00:00
Marek Habersack d02561966d 2008-09-25 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: do not trim the control value in
	CompareValidatorEvaluateIsValid.

svn path=/trunk/mcs/; revision=114105
2008-09-25 17:42:59 +00:00
Igor Zelmanovich 38c4a8395f add icons for tree view
svn path=/trunk/mcs/; revision=94246
2008-01-29 13:57:36 +00:00
Igor Zelmanovich 45769695ad refactoring
svn path=/trunk/mcs/; revision=94156
2008-01-28 16:32:35 +00:00
Igor Zelmanovich 1ddddde83c typo fix
svn path=/trunk/mcs/; revision=93373
2008-01-21 09:41:43 +00:00
Igor Zelmanovich 00f0221fc3 2008-01-21 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js:
	fixed CompareValidatorEvaluateIsValid.
	works correctly with operator="datatypecheck"

svn path=/trunk/mcs/; revision=93372
2008-01-21 09:29:02 +00:00
Igor Zelmanovich cb1151ea77 refactoring
svn path=/trunk/mcs/; revision=92776
2008-01-13 10:03:50 +00:00
Igor Zelmanovich dc5657a2a6 2008-01-13 Igor Zelmanovich <[email protected]>
* webform.js:
	make scripts compatible with MicrosoftAjaxLibrary.		


svn path=/trunk/mcs/; revision=92773
2008-01-13 09:38:32 +00:00
Igor Zelmanovich ac47ac4624 2008-01-10 Igor Zelmanovich <[email protected]>
* webform.js:
	implement useAsync feature for Callback.		


svn path=/trunk/mcs/; revision=92600
2008-01-10 16:46:48 +00:00
Igor Zelmanovich 9d9bc5d816 2008-01-10 Igor Zelmanovich <[email protected]>
* webform.js:
	make scripts compatible with MicrosoftAjaxLibrary.		


svn path=/trunk/mcs/; revision=92579
2008-01-10 11:18:40 +00:00
Igor Zelmanovich 9bcca83dfe 2008-01-09 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js:
	* webform.js:
	make scripts compatible with MicrosoftAjaxLibrary.		


svn path=/trunk/mcs/; revision=92512
2008-01-09 15:31:10 +00:00
Igor Zelmanovich 87fdc74e1c make WebForm_DoCallback useful within AJAX.
svn path=/trunk/mcs/; revision=92469
2008-01-08 16:32:40 +00:00
Igor Zelmanovich d305e47234 2008-01-07 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs:
	* Control.jvm.cs:			
	* Page.cs:
	* Page.jvm.cs:
	for TARGET_J2EE ensure page life cycle is completed in CrossPagePostBack.
	
2007-01-07 Igor Zelmanovich <[email protected]>

	* Button.cs:
	* ImageButton.cs:
	* LinkButton.cs:
	for TARGET_J2EE used CreateActionUrl instead ResolveClientUrl
	in GetPostBackOptions.			

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

	* HtmlForm.cs: refactoring.


svn path=/trunk/mcs/; revision=92387
2008-01-07 13:38:38 +00:00
Igor Zelmanovich b0397eb1e6 make it compatible with Sys.Web.Extensions scripts
svn path=/trunk/mcs/; revision=92106
2008-01-02 15:04:04 +00:00
Marek Habersack 58eceab2ec 2007-12-08 Marek Habersack <[email protected]>
* TranslationResources.resx: added - string resources for the
	Sqlite providers.
2007-12-08  Marek Habersack  <[email protected]>

	* SQLiteProviders_DatabaseSchema.sql: added
	* Makefile: added support for compiling .resx resources.
	Added SQLiteProviders_DatabaseSchema.sql to EXTRA_DISTFILES.
	Added new resource files to EXTRA_DISTFILES
2007-12-08  Marek Habersack  <[email protected]>

	* HttpRuntime.cs: initialize the Settings Mapping Manager once per
	application, just after initalizing the WebConfigurationManager
2007-12-08  Marek Habersack  <[email protected]>

	* SqliteProfileProvider.cs: added - a Profile Provider for
        Sqlite, based on PostgreSQL Profile Provider code from Daniel
        Nauck <[email protected]>
2007-12-08  Marek Habersack  <[email protected]>

	* TranslationProperties.Designer.cs: added - contains strongly
	typed properties referring to string resources used by the Sqlite
	providers.
2007-12-08  Marek Habersack  <[email protected]>

	* WebConfigurationManager.cs: GetSection now runs each section
	through a mapper (if any is defined for the section) before
	returning it to the caller.
2007-12-08  Marek Habersack  <[email protected]>

	* SqliteRoleProvider.cs: added - a Role Provider for
	Sqlite, based on PostgreSQL Role Provider code from Daniel
	Nauck <[email protected]>

	* SqliteMembershipProvider.cs: added - a Membership Provider for
	Sqlite, based on PostgreSQL Membership Provider code from Daniel
	Nauck <[email protected]>
2007-12-08  Marek Habersack  <[email protected]>

	* SerializationHelper.cs: added - serialization helper for the
	Sqlite Profile Provider.

	* RoleManagerSectionMapper.cs: added - section settings mapper for
	the RoleManager section.

	* MembershipSectionMapper.cs: added - section settings mapper for
	the Membership section.

	* ISectionSettingsMapper.cs: added - interface definition for
	section settings mappers.

	* SettingsMappingWhat.cs: added - describes a single 'what' tag
	instance inside the mapper definition in the settings.map file.

	* SettingsMapping.cs: added - represents a single mapper entry in
	the settings.map file.

	* SettingsMappingManager.cs: added - manages settings mapping as
	defined in the settings.map file.


svn path=/trunk/mcs/; revision=90972
2007-12-07 23:26:18 +00:00
Marek Habersack 480357e02d 2007-11-20 Marek Habersack <[email protected]>
* WebUIValidation.js: fix regular expression validator. Fixes bug
	#342907.

svn path=/trunk/mcs/; revision=90037
2007-11-20 21:34:41 +00:00
Juraj Skripsky 83171dc0a4 2007-11-20 Juraj Skripsky <[email protected]>
* WebUIValidation_2.0.js: Fix typo. 


svn path=/trunk/mcs/; revision=89983
2007-11-20 15:43:16 +00:00
Juraj Skripsky f8253fa813 2007-11-06 Juraj Skripsky <[email protected]>
* webform.js (WebForm_FireDefaultButton): Gecko-based browsers
	don't support the click() method for <a/> elements. Use
	eval(myLink.href) instead.


svn path=/trunk/mcs/; revision=89036
2007-11-06 22:21:36 +00:00
Igor Zelmanovich 570efe42da 2007-11-05 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js: 
	fixed RegularExpressionValidatorEvaluateIsValid function.	


svn path=/trunk/mcs/; revision=88865
2007-11-05 14:35:51 +00:00
Igor Zelmanovich ad90d5bdd2 2007-11-01 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js: fixed ToInteger function.	
	value such '10.00' is not converted to integer.	


svn path=/trunk/mcs/; revision=88629
2007-11-01 09:37:50 +00:00
Marek Habersack 75b9a8988e 2007-09-29 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: replace all the ocurrences of 'this' with
	'webForm'. The reason for such change is that under certain
	circumstances the function may be called on an object which is not
	the original webForm to which the function was assigned. This
	happens, for instance, in the AJAX Control Toolkit which wraps the
	ValidatorGetValue function with its own version and calls the
	original function on a Function object, so 'this' in that instance
	becomes a 'function()' and not the original 'Window' object.

svn path=/trunk/mcs/; revision=86622
2007-09-28 23:51:55 +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
Igor Zelmanovich 75e734b1b9 2007-08-30 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js: refactoring.
	initialize evaluationfunction property for validator on client.
	makes it compatible with AjaxControlToolkit.	


svn path=/trunk/mcs/; revision=85038
2007-08-30 08:38:13 +00:00
Igor Zelmanovich 26e133c649 2007-08-30 Igor Zelmanovich <[email protected]>
* Page.cs: fixed MaintainScrollPositionOnPostBack feature.

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

	* webform.js: fixed MaintainScrollPositionOnPostBack feature.


svn path=/trunk/mcs/; revision=85037
2007-08-30 08:31:00 +00:00
Marek Habersack d0a3dcc57d 2007-08-19 Marek Habersack <[email protected]>
* webform.js: __doPostBack is a function defined in the self
            object, not this._form. Fixes bug #82478.

svn path=/trunk/mcs/; revision=84360
2007-08-18 23:42:48 +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 69f0efdf29 fixed WebForm_DoCallback function signature.
make it compatible with ClientScriptManager.GetCallbackEventReference
method and MS version.

svn path=/trunk/mcs/; revision=82007
2007-07-15 11:58:46 +00:00
Marek Habersack 58b8182d65 Revert 77463, since this commit introduces the correct fix for the problem.
2007-05-16  Marek Habersack  <[email protected]>

        * webform.js: in WebForm_ClientCallback set the id of the
        __EVENTVALIDATION element when creating it or otherwise
        WebForm_getFormData will not ignore it as expected by
        WebForm_DoCallback, which will result in the variable being
        present twice in the POST request.


svn path=/trunk/mcs/; revision=77475
2007-05-16 12:35:00 +00:00
Marek Habersack b58a012a86 2007-05-16 Marek Habersack <[email protected]>
* WebUIValidation.js: ported ToCurrency and ToDate converters from
	WebUIValidation_2.0.js.

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

	* CompareValidator.cs: formatting changes


svn path=/trunk/mcs/; revision=77470
2007-05-16 11:36:30 +00:00
Marek Habersack 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
Vladimir Krasnov df9cbd0b12 * webform.js: fixed WebForm_RestoreScrollPosition, old submit call should be from form
svn path=/trunk/mcs/; revision=75614
2007-04-11 16:06:54 +00:00
Marek Habersack 0094f074bf 2007-04-03 Marek Habersack <[email protected]>
* WebUIValidation_2.0.js: correctly validate against min/max
	values. Fixes bug #81280


svn path=/trunk/mcs/; revision=75334
2007-04-03 09:37:36 +00:00
Igor Zelmanovich 1d8d624edf 2007-02-20 Igor Zelmanovich <[email protected]>
* webform.js: adjusted client script for MaintainScrollPositionOnPostBack 
	feature to multiform enviroument in j2ee portal.


svn path=/trunk/mcs/; revision=73151
2007-02-20 10:03:16 +00:00
Igor Zelmanovich 6631487c2c 2007-02-19 Igor Zelmanovich <[email protected]>
* ClientScriptManager.cs:
	* Control.cs:			 
	* Page.cs:
	implemented PostBackOptions.TrackFocus feature.	

svn path=/trunk/mcs/; revision=73123
2007-02-19 17:38:05 +00:00
Igor Zelmanovich 31ffabbbb0 2007-02-19 Igor Zelmanovich <[email protected]>
* webform.js: fixed WebForm_ReEnableControls

svn path=/trunk/mcs/; revision=73111
2007-02-19 12:49:38 +00:00
Eyal Alalouf 9396a91227 add Http callback support for J2EE portlets.
svn path=/trunk/mcs/; revision=73071
2007-02-18 12:28:38 +00:00
Igor Zelmanovich de3be96b77 2007-02-18 Igor Zelmanovich <[email protected]>
* WebUIValidation_2.0.js: 
	support client side validation for RadioButtonList

svn path=/trunk/mcs/; revision=73066
2007-02-18 10:03:41 +00:00
Igor Zelmanovich b5ab83977c 2006-02-15 Igor Zelmanovich <[email protected]>
* BaseCompareValidator.cs: fixed: support for type=Currency on client side.


svn path=/trunk/mcs/; revision=72908
2007-02-15 13:23:04 +00:00
Igor Zelmanovich 93c2a62294 2007-02-14 Igor Zelmanovich <[email protected]>
* Page.cs: for 2.0: '__doPostBack' declared as function of form.
	convention to use 'currForm' instead 'myForm'	

svn path=/trunk/mcs/; revision=72842
2007-02-14 15:37:00 +00:00
Igor Zelmanovich a7f893772d 2007-02-14 Igor Zelmanovich <[email protected]>
* Page.cs: __doPostBack considers 2.0 features 
	such RegisterOnSubmitStatement

svn path=/trunk/mcs/; revision=72821
2007-02-14 12:03:40 +00:00
Igor Zelmanovich 7dc14fae8e 2007-02-013 Igor Zelmanovich <[email protected]>
* Page.cs: fixed exception handling on Callback at client.

svn path=/trunk/mcs/; revision=72775
2007-02-13 14:40:35 +00:00
Igor Zelmanovich 18af3d7394 2007-02-04 Igor Zelmanovich <[email protected]>
* webform.js:
	fixed Callback feature: when WebForm_DoCallback is called 
	not all input elements are posted. for example checkbox if not 
	checked is not posted.

svn path=/trunk/mcs/; revision=72733
2007-02-13 08:55:37 +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