222 Commits
Author SHA1 Message Date
rbazinet-exago 6c465b42d5 Update HtmlForm.cs for issue #8526
When running with cookieless sessions, the file_path does not necessarily contain a leading '/' character which can lead to a Uri being constructed from something that looks like, "http://hostmyPage.aspx" which immediately fails and throw an exception stating that the hostname could not be parsed.
2018-05-02 23:25:52 +02:00
Alexander Köplinger a22bb15e6b [System.Web] Rename method parameters to match .NET contract 2017-03-16 13:02:09 +01:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Zoltan Varga 032f313d5f [bcl] Remove NET_4_0 defines from class libs. 2015-01-13 16:06:31 -05:00
Etienne CHAMPETIER 227b0d1b55 [cleanup] System.Web*: remove TARGET_J2EE
done using unifdef
git grep -l TARGET_J2EE | grep -v ChangeLog | xargs -n1 unifdef -m -UTARGET_J2EE

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2014-12-01 23:57:18 +01:00
Martin ccf786075c Fixes an ASP.NET postback problem. 2011-12-14 12:11:29 +01:00
Marek Habersack d7ae726e35 [asp.net] HtmlForum.Name rendering updates + test updates 2011-03-25 22:48:22 +01:00
Marek Habersack ed85fa3ebf [asp.net] Fixes bug #676008. HtmlForm 'name' attribute rendering fixes.
The 'name' attribute is rendered using the static ID of 'aspnetForm' if
the form is in a naming container other than the Page control. Inside Page,
the form's ID is rendered. The attribute is output in .NET 4.0 only if control
rendering compatibility is less than 4.0
2011-03-17 00:56:03 +01:00
Marek Habersack 5d3c9886fe [asp.net] Fix for bug #662918. Do not create the HtmlTitle child control for HtmlHead if <title> wasn't used in the page code. 2011-01-11 23:19:57 +01:00
Marek Habersack 552458f072 [asp.net] Fix for bug #650050. HtmlSelect must render non-standard attributes of every ListItem. 2010-10-30 03:36:10 +02:00
Marek Habersack b5de6386ee 2010-07-09 Marek Habersack <[email protected]>
* HtmlInputButton.cs: if ServerClick handler is found, do NOT
	attribute-encode the onclick attribute.

svn path=/trunk/mcs/; revision=160185
2010-07-10 00:24:59 +00:00
Marek Habersack 91eeb59971 2010-06-21 Marek Habersack <[email protected]>
* HtmlControl.cs: PreProcessRelativeReference deos not
    	atribute-encode the attribute value. Fixes bug #596430

    2010-06-21  Marek Habersack  <[email protected]>

    	* HtmlImageTest.cs: fixed an invalid test.

svn path=/trunk/mcs/; revision=159250
2010-06-21 12:31:12 +00:00
Marek Habersack 0b08553dbc 2010-06-01 Marek Habersack <[email protected]>
* HtmlHead.cs: added code to render description and keywords metas
	if the corresponding HtmlMeta controls aren't found and the user
	set either Description or Keywords properties.

2010-06-01  Marek Habersack  <[email protected]>

	* TemplateControlCompiler.cs: added new virtual method,
	AddStatementsToInitMethodBottom and renamed
	AddStatementsToInitMethod to AddStatementsToInitMethodTop.

	* PageCompiler.cs: code to set Meta{Description,Keywords}
	properties, if present.

2010-06-01  Marek Habersack  <[email protected]>

	* PageParser.cs: added support for MetaDescription and
	MetaKeywords main directive attributes

	* Page.cs: implemented MetaDescription and MetaKeywords
	4.0 properties.

svn path=/trunk/mcs/; revision=158303
2010-06-01 22:01:28 +00:00
Marek Habersack fc6da81e12 More cosmetics
svn path=/trunk/mcs/; revision=154749
2010-04-03 00:40:48 +00:00
Marek Habersack dd0fe78418 Removed another batch of pre 2.0 code + some cosmetics
svn path=/trunk/mcs/; revision=154746
2010-04-03 00:25:13 +00:00
Marek Habersack 3d083fe3fe 2009-12-22 Marek Habersack <[email protected]>
* HtmlForm.cs: RenderChildren is slightly more efficient now.

2009-12-22  Marek Habersack  <[email protected]>

	* Page.cs: form javascript declaration block is rendered only if
	necessary. Fixes bug #566541

	* ClientScriptManager.cs: added internal property ScriptsPresent
	used to determine if it is necessary to render form javascript
	declaration block.
	Hidden fields block is output without indenting the controls and
	without rendering trailing empty line.
	Made Write{Begin,End}ScriptBlock slightly faster.

svn path=/trunk/mcs/; revision=148840
2009-12-22 12:24:19 +00:00
Marek Habersack 40fcf24bf5 2009-11-13 Marek Habersack <[email protected]>
* HtmlForm.cs: reverted part of the previous patch - action is not
	set to the result of calling ResolveClientUrl(action)
	anymore. Fixes bug #554324

svn path=/trunk/mcs/; revision=146086
2009-11-13 01:18:33 +00:00
Marek Habersack 1201ed9a1d 2009-10-30 Marek Habersack <[email protected]>
* HttpRequest.cs: added internal property ClientFilePath, which
	may have a different value than FilePath when virtual path has
	been rewritten, but the caller specified that the client paths
	should still be constructed using the original url.

	* HttpContext.cs: RewritePath always sets Request.FilePath,
	Request.ClientFilePath is set only when setClientFilePath is
	true. This makes client urls work correctly when url rewriting is
	being used.

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

	* Control.cs: ResolveClientUrl takes base path from
	Request.ClientFilePath, so that it works correctly for rewritten
	urls.

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

	* HtmlForm.cs: action is built using Request.ClientFilePath
	(instead of Request.FilePath) and ResolveClientUrl, so that it's
	correct even if url rewriting is being used.

svn path=/trunk/mcs/; revision=145069
2009-10-30 00:52:53 +00:00
Marek Habersack 5c59801fff Performance improvements:
- made sure invariant culture is used with String.ToLower, String.ToUpper and String.Compare
- replaced all calls to CultureInfo.InvariantCulture with a reference to a static field System.Web.Util.Helpers.InvariantCulture

svn path=/trunk/mcs/; revision=143587
2009-10-07 00:10:03 +00:00
Gonzalo Paniagua Javier 4a65b9ae43 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* HtmlSelectBuilder.cs: <option> allows the value of the 'selected'
	attribute to be a boolean or the string "selected", which is treated
	as "true".


svn path=/trunk/mcs/; revision=143105
2009-10-01 02:24:00 +00:00
Marek Habersack 2ad931f695 2009-06-16 Marek Habersack <[email protected]>
* HtmlHeadBuilder.cs: use faster String.Compare overloads.

	* HtmlHead.cs: implemented 4.0 properties Description and
	Keywords.

2009-06-16  Marek Habersack  <[email protected]>

	* IPersistedSelector.cs: removed AspNetHostingPermission
	attributes from the 4.0 profile.

	* IDataBoundControl.cs, IDataBoundItemControl.cs,
	IDataBoundListControl.cs, IFieldControl.cs: added

	* DetailsView.cs: control implements 4.0 IDataBoundItemControl
	interface.

	* DataBoundControl.cs: implemented 4.0 property DataSourceObject
	and made the InternalPerformDataBinding method internal for the
	4.0 profile.

2009-06-16  Marek Habersack  <[email protected]>

	* net_4_0_System.Web.dll.sources:
	Added
	System.Web.UI.WebControls/IDataBoundControl.cs,
	System.Web.UI.WebControls/IDataBoundItemControl.cs,
	System.Web.UI.WebControls/IDataBoundListControl.cs,,
	System.Web.UI.WebControls/IFieldControl.cs

svn path=/trunk/mcs/; revision=136192
2009-06-16 01:46:33 +00:00
Gonzalo Paniagua Javier 5fcada6106 2009-06-11 Gonzalo Paniagua Javier <[email protected]>
* HtmlTitle.cs: HtmlTitle allows children that are not
	LiteralControls. Fixes bug #511882.


svn path=/trunk/mcs/; revision=135958
2009-06-11 22:14:41 +00:00
Marek Habersack f3160d4154 2009-05-15 Marek Habersack <[email protected]>
* HtmlForm.cs: if application isn't running on /, make sure we
	generate the correct relative path for the action form attribute.

svn path=/trunk/mcs/; revision=134176
2009-05-15 01:21:14 +00:00
Marek Habersack 988d663bae Micro optimization - don't call Page twice
svn path=/trunk/mcs/; revision=131734
2009-04-15 07:19:42 +00:00
Gonzalo Paniagua Javier eec30e3beb 2009-04-15 Gonzalo Paniagua Javier <[email protected]>
* HtmlInputText.cs: make sure we're inside a Page before dereferencing
	it.


svn path=/trunk/mcs/; revision=131730
2009-04-15 05:41:41 +00:00
Marek Habersack b9555d9c31 2008-11-06 Marek Habersack <[email protected]>
* HtmlForm.cs: added the undocumented, but supported, Action
	attribute. Fixes bug #442104

svn path=/trunk/mcs/; revision=118098
2008-11-06 11:33:00 +00:00
Marek Habersack ef9c9e51ce Do not abuse the 'private' keyword
svn path=/trunk/mcs/; revision=116539
2008-10-20 17:37:54 +00:00
Marek Habersack 81c4068d12 2008-10-17 Marek Habersack <[email protected]>
* ImageMap.cs: added the SupportsEventValidation attribute to the
	class.
	Validate the event in RaisePostBackEvent ().
	Register for event validation in Render ().

	* DropDownList.cs, ListBox.cs: validate the event in LoadPostData ().

	* TextBox.cs: validate the event in LoadPostData ().
	Register for event validation in AddAttributesToRender ().

	* HiddenField.cs: validate the event in RaisePostDataChangedEvent.
	Register for event validation in Render ().

	* RadioButton.cs: validate the event in LoadPostData ().
	Register for event validation in InternalAddAttributesToRender.

	* CheckBox.cs, RadioButtonList.cs: validate the event in
	RaisePostDataChangedEvent.

	* Menu.cs: added the SupportsEventValidation attribute to the
	class.
	Validate the event in RaisePostBackEvent ().
	Register for event validation in GetClientEvent ().

	* DetailsView.cs, GridView.cs: validate the event in
	RaisePostBackEvent ().
	Register for validation in GetCallbackScript () and in OnPreRender

	* Button.cs, Table.cs, BulletedList.cs, Calendar.cs, LinkButton.cs,
	ImageButton.cs, TreeView.cs: validate the event in RaisePostBackEvent ().

2008-10-17  Marek Habersack  <[email protected]>

	* Control.cs: added the ValidateEvent internal method, used by
	classes descending from Control to automatically trigger event
	validation.

	* Page.cs: removed the CheckForValidationSupport method. It moved
	to Control.cs
	RaisePostBackEvent no longer validates the events, this
	functionality has been moved to Control.ValidateEvent.

2008-10-17  Marek Habersack  <[email protected]>

	* HtmlInputHidden.cs: validate the event in LoadPostDataInternal.

	* HtmlInputButton.cs: validate the event in
	RaisePostBackEventInternal ().
	Register for event validation in RenderAttributes ()

	* HtmlTextArea.cs: validate the event in
	RaisePostBackDataChangedEvent ().

	* HtmlButton.cs: validate the event in RaisePostBackEvent ().
	Register for event validation in RenderAttributes ()

	* HtmlAnchor.cs: validate the event in RaisePostBackEvent ().
	Register for event validation in RenderAttributes ().

	* HtmlInputRadioButton.cs, HtmlSelect.cs: validate the event in
	LoadPostData.

	* HtmlInputText.cs, HtmlInputImage.cs, HtmlInputCheckBox.cs,
	HtmlInputPassword.cs: validate the event in
	RaisePostDataChangedEvent ().

2008-10-17  Marek Habersack  <[email protected]>

	* MenuAdapterTest.cs: work around event validation failure in the
	test environment.

2008-10-17  Marek Habersack  <[email protected]>

	* PageTest.cs: use a custom version of HtmlInputHidden control to
	work around the new event validation code which doesn't work in
	this instance.

svn path=/trunk/mcs/; revision=116231
2008-10-17 14:56:19 +00:00
Christian Hergert 3eb3075f11 2008-10-07 Christian Hergert <[email protected]>
* System.Web.UI.HtmlControls/HtmlImage.cs: Do not render the src
	attribute if it is null or empty.  An empty src attribute makes
	browsers download the current page url as the url of the image.

	* Test/System.Web.UI.HtmlControls/HtmlImageTest.cs: Add test to
	make sure the src attribute is not rendered when it is empty.


svn path=/trunk/mcs/; revision=115158
2008-10-07 23:41:53 +00:00
Marek Habersack cc8bdf8225 2008-08-29 Marek Habersack <[email protected]>
* HttpApplication.cs: do not cache handlers which aren't
	reusable.

2008-08-29  Marek Habersack  <[email protected]>

	* HtmlHead.cs: call base.OnInit ()
	If Page is null, throw an exception.

svn path=/trunk/mcs/; revision=111939
2008-08-29 19:42:58 +00:00
Dean Brettle 382be2e62f ++ System.Web.UI.HtmlControls/ChangeLog (working copy)
* HtmlControl.cs (PreProcessRelativeReference), 
	HtmlForm.cs (RenderAttributes), HtmlInputButton (RenderAttributes),
	HtmlInputRadioButton (RenderAttributes), HtmlSelect (RenderChildren):
	Encode attributes that could contain HTML special chars.
	
	* HtmlSelect (RenderChildren): HTML-encode option text.

++ Test/System.Web.UI.HtmlControls/ChangeLog	(working copy)

	* HtmlInputButtonTest.cs, HtmlImageTest.cs, HtmlFormTest.cs, 
	HtmlInputRadioButtonTest.cs, HtmlSelectTest.cs:	Added tests 
	for HTML-encoded of attributes. 


svn path=/trunk/mcs/; revision=109349
2008-07-31 14:34:51 +00:00
Marek Habersack 4944213e17 2008-06-30 Marek Habersack <[email protected]>
* AspGenerator.cs: hush the warnings and fix invalid type
	comparison.

	* AssemblyBuilder.cs: hush the warnings and add some debugging
	CWLs.

	* AspParser.cs, AppResourcesCompiler.cs, TemplateBuildProvider.cs,
	CachingCompiler.cs, BaseCompiler.cs, TemplateControlCompiler.cs,
	SimpleBuildProvider.cs, BuildManager.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* HtmlForm.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* ObjectDataSourceView.cs, Menu.cs, DataList.cs,
	CustomValidator.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* MachineKeyRegistryStorage.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* SqliteMembershipProvider.cs, SqliteRoleProvider.cs: remove
	unused method

	* SqlRoleProvider.cs, AspNetDBSchemaChecker.cs: hush the warnings

2008-06-30  Marek Habersack  <[email protected]>

	* UserControlParser.cs: hush the warnings and remove unnecessary
	code.

	* ControlCachePolicy.cs, PageParser.cs, ControlBuilder.cs,
	TemplateParser.cs, SimpleWebHandlerParser.cs, TemplateControl.cs,
	ApplicationFileParser.cs: hush the warnings

	* Page.cs: Context is protected internal in .NET 3.5
	Initialize encryption IVs before returning the transform.

	* Control.cs: Hush the warnings.

2008-06-30  Marek Habersack  <[email protected]>

	* HttpRuntime.cs, HttpApplication.cs: hush the warnings

	* HttpContext.cs: Hush the warnings.

2008-06-30  Marek Habersack  <[email protected]>

	* SqliteProfileProvider.cs: remove unused method

2008-06-30  Marek Habersack  <[email protected]>

	* CompilationSection.cs: hush the warnings



svn path=/trunk/mcs/; revision=106886
2008-06-30 13:20:58 +00:00
Gert Driesen 105bb93866 * HtmlAnchor.cs: Do not render empty name, target or title attribute.
Removed extra check for target attribute in RenderAttributes. Use
string.Empty instead of "", and check string's Length instead of
comparison with "" or string.Empty. Minor code formatting.
* HtmlAnchorTest.cs: Added RenderAttributes tests for empty or null 
HRef, Name, Target and Title.

svn path=/trunk/mcs/; revision=105270
2008-06-08 21:11:28 +00:00
Juraj Skripsky 15ff3947b3 2008-06-04 Juraj Skripksy <[email protected]>
* HtmlAnchor.cs (Render): Add missing call to
	ClientScriptManager.RegisterForEventValidation. Fixes bug #397142.


svn path=/trunk/mcs/; revision=104878
2008-06-04 16:05:47 +00:00
Juraj Skripsky cd6f013967 2008-06-04 Juraj Skripsky <[email protected]>
* HtmlAnchor.cs: Do not render an empty href attribute.


svn path=/trunk/mcs/; revision=104864
2008-06-04 13:20:22 +00:00
Vladimir Krasnov a2a60e93ab * HtmlForm.cs: fixed action attribute in RenderAttributes under TARGET_JVM
svn path=/trunk/mcs/; revision=95563
2008-02-13 10:09:28 +00:00
Marek Habersack ea972c1c97 2008-02-06 Marek Habersack <[email protected]>
* HtmlMeta.cs: render XHTML compliant tag if not in the Legacy
	mode. Fixes bug #3544252008-02-06  Marek Habersack  <[email protected]>


svn path=/trunk/mcs/; revision=95013
2008-02-06 12:10:38 +00:00
Igor Zelmanovich 9c0b7dbb83 2008-01-17 Igor Zelmanovich <[email protected]>
* HtmlSelect.cs: refactoring. 


svn path=/trunk/mcs/; revision=93138
2008-01-17 09:56:59 +00:00
Igor Zelmanovich 9346fb6e37 2008-01-17 Igor Zelmanovich <[email protected]>
* HtmlSelect.cs: fix databinding (only 2.0), state management. 


svn path=/trunk/mcs/; revision=93134
2008-01-17 09:47:54 +00:00
Sebastien Pouliot ac593f73e6 2008-01-14 Sebastien Pouliot <[email protected]>
* HtmlSelect.cs: Fix infinite recursion (only in 2.0) found using 
	Gendarme.


svn path=/trunk/mcs/; revision=92855
2008-01-14 12:37:30 +00:00
Igor Zelmanovich 1c19004b60 TARGET_J2EE:
resolve action url as relative

svn path=/trunk/mcs/; revision=92845
2008-01-14 11:50:36 +00:00
Igor Zelmanovich dfcc1aa1c4 refactoring
svn path=/trunk/mcs/; revision=92574
2008-01-10 09:46:48 +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 c7166273ee for TARGET_J2EE only:
implement integration with JSF.

svn path=/trunk/mcs/; revision=91823
2007-12-23 10:36:14 +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 e1616dd47f fixed HttpContext.CurrentExecutionFilePath for Transfer/Execute
used JSF API for ResolveClientUrl and create action url.

svn path=/branches/mainsoft/JSF/mcs/; revision=90798
2007-12-06 10:08:04 +00:00
Igor Zelmanovich 5c6b9ea5e2 implement JSF life cycle on the page
added IHttpExtendedHandler interface

svn path=/branches/mainsoft/JSF/mcs/; revision=89931
2007-11-19 15:22:55 +00:00
Juraj Skripsky d34118b5c3 2007-11-07 Juraj Skripsky <[email protected]>
* HtmlForm.cs (RenderAttributes): Render ClientID of DefaultButton.
        Fixes bug #339426 for master pages.


svn path=/trunk/mcs/; revision=89077
2007-11-07 09:35:55 +00:00
Marek Habersack ecae308f79 2007-11-06 Marek Habersack <[email protected]>
* HtmlForm.cs: a small DetermineRenderUplevel optimization - the
	result is now cached in a nullable boolean variable.
	Render the 'onkeypress' attribute if DefaultButton is used. Fixes
	bug #339426.
2007-11-06  Marek Habersack  <[email protected]>

	* Page.cs: formatting

svn path=/trunk/mcs/; revision=88959
2007-11-06 11:22:15 +00:00
Marek Habersack 3aad4659a6 2007-08-27 Marek Habersack <[email protected]>
* HtmlForm.cs: make sure the ID is set before HtmlControls renders
            the attributes. Fixes bug #82596

svn path=/trunk/mcs/; revision=84871
2007-08-27 12:16:31 +00:00