Commit Graph
1308 Commits
Author SHA1 Message Date
Igor Zelmanovich 4c649666c1 2007-11-06 Igor Zelmanovich <[email protected]>
* TextBox.cs:
	refactoring for NET_2_0:
	Text is removed from view state in case of need at SaveViewState phase. 	 


svn path=/trunk/mcs/; revision=88955
2007-11-06 09:21:37 +00:00
Igor Zelmanovich 03002226b2 2007-11-06 Igor Zelmanovich <[email protected]>
* ListControl.cs:
	SelectedValue/SelectedIndex is set during DataBinding always. 	 

2007-11-06 Igor Zelmanovich <[email protected]>

	* ListControlTest.cs:
	Added new tests.

svn path=/trunk/mcs/; revision=88954
2007-11-06 09:17:06 +00:00
Marek Habersack e9c28fc584 2007-11-06 Marek Habersack <[email protected]>
* DataGrid.cs: add RenderTable before the DataGridItems, so that
	numbering of children is the same what on MS.NET.
	If there are any data items, require a postback script.
	Fixes bug #319449
	
	* ChildTable.cs: removed DOS EOLs.
2007-11-06  Marek Habersack  <[email protected]>

	* System.Web.dll.sources: added
	System.Web.UI.WebControls/ChildTable.cs to compilation, for MS.NET
	compatibility.


svn path=/trunk/mcs/; revision=88945
2007-11-06 01:12:02 +00:00
Igor Zelmanovich f32b4ce18c 2007-10-31 Igor Zelmanovich <[email protected]>
* Login.cs: 
	does not perform authentication if Page.IsValid returns false;
	the fix makes control works with disabled client side validation.


svn path=/trunk/mcs/; revision=88568
2007-10-31 15:53:40 +00:00
Igor Zelmanovich 4aefe0917f 2007-10-31 Igor Zelmanovich <[email protected]>
* DataList.cs: 
	state of DataList.Items are restored correct on PostBack
	such Items.Count and ItemType.

2007-10-31 Igor Zelmanovich <[email protected]>

	* DataListTest.cs:
	Added new test.

svn path=/trunk/mcs/; revision=88546
2007-10-31 11:03:56 +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 2c0432a258 2007-10-30 Igor Zelmanovich <[email protected]>
* Image.cs: fixed management state of Enabled property.
	* WebControl.cs: refactoring in management state of Enabled property.

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

	* ImageTest.cs:
	* WebControlTest.cs:	
	Added new tests.


svn path=/trunk/mcs/; revision=88457
2007-10-30 14:21:51 +00:00
Marek Habersack e24a2ac597 2007-10-23 Marek Habersack <[email protected]>
* ListBox.cs, Table.cs: use Render{Begin,End}Tag
	instead of the Write* counterparts when	rendering contents.

svn path=/trunk/mcs/; revision=87978
2007-10-23 12:14:27 +00:00
Marek Habersack beda9a6afe 2007-10-18 Marek Habersack <[email protected]>
* Menu.js: a workaround for an IE bug. IE recalculates element's
	 offsetWidth when the element's _height_ is set - which in case of
	 elements with overflowing content results in a value that's just
	 slightly smaller than the client window width. In effect, a long
	 submenu will also be very wide, which isn't desirable. Fixes bug
	 #322809

svn path=/trunk/mcs/; revision=87728
2007-10-18 01:39:42 +00:00
Marek Habersack c024be4598 2007-10-15 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs, WebServiceCompiler.cs,
	BuildProvider.cs, BaseCompiler.cs, CachingCompiler.cs: use
	HttpApplication.LoadType instead of Type.GetType.
2007-10-15  Marek Habersack  <[email protected]>

	* ProvidersHelper.cs: use HttpApplication.LoadType instead of
	Type.GetType.
2007-10-15  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: use HttpApplication.LoadType instead of
	Type.GetType.
2007-10-15  Marek Habersack  <[email protected]>

	* ProfileBase.cs: use HttpApplication.LoadType instead of
	Type.GetType.

svn path=/trunk/mcs/; revision=87506
2007-10-15 13:07:47 +00:00
Marek Habersack 37ac56e45d 2007-10-15 Marek Habersack <[email protected]>
* BulletedList.cs: html encode the item text. Fixes bug #333550.

svn path=/trunk/mcs/; revision=87489
2007-10-15 09:17:41 +00:00
Marek Habersack 7b644dae90 2007-10-01 Marek Habersack <[email protected]>
* ListItem.cs: make HasAttributes available for the 1.1 profile as
	well.

	* DropDownList.cs: render custom ListItem attributes in the 1.1
	profile. Fixes bug #326288

svn path=/trunk/mcs/; revision=86701
2007-10-01 13:30:11 +00:00
Marek Habersack a2cd8e0caf it's an _override_, after all
svn path=/trunk/mcs/; revision=86461
2007-09-27 07:17:33 +00:00
Marek Habersack fe3691f5cd 2007-09-27 Marek Habersack <[email protected]>
* Button.cs: added missing OnPreRender method.

svn path=/trunk/mcs/; revision=86460
2007-09-27 07:06:34 +00:00
Marek Habersack a53f2c9675 2007-09-25 Marek Habersack <[email protected]>
* WebControl.cs: added an internal method, BuildScriptAttribute,
	which merges the specified JavaScript code in an attribute, with
	the value of that attribute specified by the user.

	* CheckBox.cs, DropDownList.cs: AutoPostBack handling makes sure to
	preserve user-specified attribute value, if present.

	* ListBox.cs, TextBox.cs: AddAttributesToRender calls the base
	after doing its job. AutoPostBack handling makes sure to preserve
	user-specified attribute value, if present. Fixes bug #327816.

svn path=/trunk/mcs/; revision=86294
2007-09-25 00:22:04 +00:00
Marek Habersack 008a69040e formatting
svn path=/trunk/mcs/; revision=86117
2007-09-20 22:59:03 +00:00
Marek Habersack 971171f146 2007-09-21 Marek Habersack <[email protected]>
* ListItem.cs: don't save StateBag in the control state - the
            class is not serializable and therefore ObjectStateFormatter
            cannot convert it. Instead have the sb object save its own state
            and store the returned value. Fixes bug #326288.

svn path=/trunk/mcs/; revision=86116
2007-09-20 22:49:53 +00:00
Marek Habersack f2a284f108 remove debug code
svn path=/trunk/mcs/; revision=86094
2007-09-20 18:08:19 +00:00
Marek Habersack 592d6443e9 2007-09-20 Marek Habersack <[email protected]>
* LoginView.cs: implemented RoleGroups support. Fixes bug
            #324633.

2007-09-20  Marek Habersack  <[email protected]>

            * TemplateControlCompiler.cs: if a member passed to
            GetExpressionFromString has a TypeConverter attribute set, try to
            use the named type converter to convert the string value into the
            target type. Fixes bug #325489.


svn path=/trunk/mcs/; revision=86092
2007-09-20 18:01:19 +00:00
Marek Habersack 27037fb3ad 2007-09-19 Marek Habersack <[email protected]>
* GridView.cs: copy attributes from GridView to the child table,
            as this is where the rendering takes place. Fixes bug #326309.


svn path=/trunk/mcs/; revision=86000
2007-09-19 11:41:48 +00:00
Marek Habersack 37e2c920d4 2007-09-18 Marek Habersack <[email protected]>
* Calendar.cs: correctly apply day cell style. Fixes bug #315903

svn path=/trunk/mcs/; revision=85946
2007-09-17 22:13:01 +00:00
Marek Habersack 28223e810c 2007-09-17 Marek Habersack <[email protected]>
* Calendar.cs: style attribute value must be enclosed in quotes.

            * TableStyle.cs: do not capitalize the align styles. Fixes bug
            #313766.

svn path=/trunk/mcs/; revision=85863
2007-09-17 09:29:29 +00:00
Igor Zelmanovich 15674a6a3d 2007-09-06 Igor Zelmanovich <[email protected]>
* ListControl.cs: partially restored r85314
	whenever a property that can affect data binding
	is set, make sure to set RequiresDataBinding.


svn path=/trunk/mcs/; revision=85410
2007-09-06 12:37:53 +00:00
Igor Zelmanovich 25f25dd97a 2007-09-06 Igor Zelmanovich <[email protected]>
* DataBoundControl.cs: fixed DataBind flow:
	prevent double binding when not necessary.
	fixed bug #81146	


svn path=/trunk/mcs/; revision=85409
2007-09-06 12:15:02 +00:00
Marek Habersack 5235b076f1 Revert r84984 and r85314
svn path=/trunk/mcs/; revision=85335
2007-09-05 08:54:41 +00:00
Marek Habersack e8d7450ffa 2007-09-04 Marek Habersack <[email protected]>
* DataBoundControl.cs: make sure no data binding is done after
            OnPagePreload has executed.

            * ListControl.cs: whenever a property that can affect data binding
            is set, make sure to set RequiresDataBinding.

svn path=/trunk/mcs/; revision=85314
2007-09-04 18:48:11 +00:00
Marek Habersack b99de95bf6 removed dos style line endigs, set svn-eol: native property
svn path=/trunk/mcs/; revision=85270
2007-09-04 12:12:59 +00:00
Marek Habersack 8c71431f01 2007-08-31 Marek Habersack <[email protected]>
* GridView.cs: instead of not adding hidden fields to the rows,
            mark the cells they would contain as invisible. Fixes bug #82615.

svn path=/trunk/mcs/; revision=85094
2007-08-31 11:30:58 +00:00
Igor Zelmanovich 94f2ece929 2007-08-30 Igor Zelmanovich <[email protected]>
* Menu.cs:
	* Menu.js:
	make Menu work in multi form environment.


svn path=/trunk/mcs/; revision=85051
2007-08-30 14:01:20 +00:00
Igor Zelmanovich 39e2d6a5bf 2007-08-30 Igor Zelmanovich <[email protected]>
* ListControl.cs: fixed selected items state management.

svn path=/trunk/mcs/; revision=85048
2007-08-30 13:48:50 +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
Marek Habersack ffd20cdf2a 2007-08-29 Marek Habersack <[email protected]>
* ListControl.cs: do not perform data binding twice if
            AppendDataBoundItems is true. Fixes bug #81146.

svn path=/trunk/mcs/; revision=84984
2007-08-28 23:44:44 +00:00
Igor Zelmanovich 25001d5cdb 2007-08-23 Igor Zelmanovich <[email protected]>
* Panel.cs: client script consider MultiForm environment.

svn path=/trunk/mcs/; revision=84693
2007-08-23 12:26:38 +00:00
Marek Habersack fcc675453f 2007-08-21 Marek Habersack <[email protected]>
* ApplicationHostTest.cs: adjust the test for the PrivateBinPath
        changes.

2007-08-21  Marek Habersack  <[email protected]>

        * ProvidersHelper.cs: use HttpApplication.LoadTypeFromPrivateBin
        to get the provider settings type.

2007-08-21  Marek Habersack  <[email protected]>

        * HttpApplicationFactory.cs: watch for changes in all the
        private binary directories for the current application domain.

        * HttpApplication.cs: turn the PrivateBinPath property into an
        internal enumerable, so that code throughout the assembly can
        iterate over the list of private bin directories configured for
        the application domain.
        Added a new internal method LoadTypeFromPrivateBin, for sharing
        with other parts of the assembly.

2007-08-21  Marek Habersack  <[email protected]>

        * SimpleWebHandlerParser.cs: use HttpApplication.PrivateBinPath
        enumerator when loading or adding assemblies from binary
        directories. Remove unused PrivateBinPath property.

        * ControlBuilder.cs: remove unused PrivateBinPath property.

        * TemplateParser.cs: use HttpApplication.PrivateBinPath when
        adding assemblis and loading types.

2007-08-21  Marek Habersack  <[email protected]>

        * ApplicationHost.cs: AppDomainSetup.PrivateBinPath should contain
        a list of paths relative to AppDomainSetup.ApplicationBase, not a
        full path.
        We no longer check if the bin directories exist, the user can
        create them while the application is running.

2007-08-21  Marek Habersack  <[email protected]>

        * ObjectDataSourceView.cs: get rid of PrivateBinPath property,
        it's unused.

2007-08-21  Marek Habersack  <[email protected]>

        * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
        to look up assemblies in the binary path(s).

svn path=/trunk/mcs/; revision=84589
2007-08-21 21:13:54 +00:00
Igor Zelmanovich 80ff804547 added #if !TERGET_J2EE
svn path=/trunk/mcs/; revision=84557
2007-08-21 15:26:18 +00:00
Marek Habersack 54ba93e32d 2007-08-20 Marek Habersack <[email protected]>
* MasterPage.cs: use the place holder IDs collection instead of
	the placholder collection to see if we have the place holder in
	the master page. Fixes bug #82485.

	* MasterPageParser.cs: store the content place holder ids in the
	internal cache to gain access to them when needed.

2007-08-20  Marek Habersack  <[email protected]>

	* ContentPlaceHolderBuilder.cs: store place holder id in the
	parser's internal place holder id list for later reference. Fixes
	bug #82485.

svn path=/trunk/mcs/; revision=84441
2007-08-20 10:38:56 +00:00
Vladimir Krasnov 1a69415f03 * BoundField.cs: FormatDataValue, refactored multiple use of ToString
svn path=/trunk/mcs/; revision=84394
2007-08-19 13:10:45 +00:00
Marek Habersack 798c365c89 2007-08-14 Marek Habersack <[email protected]>
* ChangePassword.cs: The change password button id changed to
	"ChangePasswordPushButton", the cancel button id changed to
	"CancelPushButton". The change makes the generated ids the same
	what on MS.NET. Fixes bug #82418.

2007-08-14  Marek Habersack  <[email protected]>

	* ChangePasswordTest.cs: adjust tests for the ChangePassword
	control button controls id changes. Part of fix for bug #82418.

svn path=/trunk/mcs/; revision=84055
2007-08-14 11:43:42 +00:00
Marek Habersack de3974edad 2007-08-14 Marek Habersack <[email protected]>
* SessionStateServerHandler.cs: remove unused field.

2007-08-14  Marek Habersack  <[email protected]>

	* Control.cs: include the actual exception when reporting control
	id clash.

2007-08-14  Marek Habersack  <[email protected]>

	* Roles.cs: remove unused field.

	* SqlMembershipProvider.cs: remove unused variable.

2007-08-14  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs: remove unused variable.

	* ChangePassword.cs: remove unused variable.

	* RoleGroupCollection.cs: OnValidate shouldn't be overridden.

2007-08-14  Marek Habersack  <[email protected]>

	* SqlProfileProvider.cs: remove unused variable.

2007-08-14  Marek Habersack  <[email protected]>

	* XmlSiteMapProvider.cs: do not hide this_lock.



svn path=/trunk/mcs/; revision=84041
2007-08-14 10:52:59 +00:00
Vladimir Krasnov d62161044f * ParameterCollection.cs: fixed IndexOfString, should use ordinal compare
svn path=/trunk/mcs/; revision=84033
2007-08-14 08:56:55 +00:00
Vladimir Krasnov 1cb30226e6 * Menu.cs: performance refactoring, used AddAttribute overload without encoding on known attribute values, optimized DynamicMenu rendering
svn path=/trunk/mcs/; revision=83581
2007-08-07 12:01:15 +00:00
Vladimir Krasnov 001edb1810 * TreeView.cs: refactoring, used AddAttribute overload without encoding on known attribute values,
used Page.ClientScript.GetWebResourceUrl call instead of AssemblyResourceLoader.GetResourceUrl

svn path=/trunk/mcs/; revision=83580
2007-08-07 11:45:27 +00:00
Igor Zelmanovich 2b7aca3342 2007-08-06 Igor Zelmanovich <[email protected]>
* DataSourceView.cs: fixed: 
	view raises onchange event when datasource is chenged.			

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

	* DataSourceViewTest.cs:
	Added new test.

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

	* AccessDataSource.cs: does not subscribed on view changed event.
	* ObjectDataSource.cs: fixed state management.
	* SqlDataSource.cs:	fixed state management.	 


svn path=/trunk/mcs/; revision=83541
2007-08-06 15:46:33 +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 c34ff0e8bc 2007-08-01 Igor Zelmanovich <[email protected]>
* DropDownList.cs: fixed onchange attribute.


svn path=/trunk/mcs/; revision=83198
2007-08-01 14:36:21 +00:00
Vladimir Krasnov a32c91560f * ListItemCollection.cs: fixed LoadViewState, items restored from viewstate were not saved, fixes bug #82192
svn path=/trunk/mcs/; revision=82779
2007-07-26 14:15:22 +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 22862a356e 2007-07-24 Igor Zelmanovich <[email protected]>
* TreeView.cs: refactoring:
	* TreeView.js:
	used ClientScriptManager.GetCallbackEventReference API instead calling 
	WebForm_DoCallback explicit.
		
2007-07-24 Igor Zelmanovich <[email protected]>

	* ClientScriptManager.cs: fixed: GetCallbackEventReference method.
		

svn path=/trunk/mcs/; revision=82560
2007-07-24 12:19:00 +00:00
Igor Zelmanovich 7f257ad214 fixed line ending
svn path=/trunk/mcs/; revision=82555
2007-07-24 12:00:17 +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