Click or drag to resize
HTMLHelperFixFormAction Method
Fixes the form action attribute within given HTML code.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static string FixFormAction(
	string sourceHtml,
	string extension,
	bool standardForm = true,
	bool ajaxForm = false,
	string rawUrl = null
)

Parameters

sourceHtml
Type: SystemString
Source HTML code
extension
Type: SystemString
Current extension
standardForm (Optional)
Type: SystemBoolean
Fix standard form action, true is used by default
ajaxForm (Optional)
Type: SystemBoolean
Fix AJAX form action, false is used by default
rawUrl (Optional)
Type: SystemString
Raw URL of current request, optional

Return Value

Type: String
See Also