AjaxExtensions.GlobalizationScript AjaxExtensions.GlobalizationScript Method

Definition

Overloads

GlobalizationScript(AjaxHelper, CultureInfo) GlobalizationScript(AjaxHelper, CultureInfo)

Returns an HTML script element that contains a reference to a globalization script that defines the specified culture information.

GlobalizationScript(AjaxHelper) GlobalizationScript(AjaxHelper)

Returns an HTML script element that contains a reference to a globalization script that defines the culture information.

GlobalizationScript(AjaxHelper, CultureInfo) GlobalizationScript(AjaxHelper, CultureInfo)

Returns an HTML script element that contains a reference to a globalization script that defines the specified culture information.

public static System.Web.Mvc.MvcHtmlString GlobalizationScript (this System.Web.Mvc.AjaxHelper ajaxHelper, System.Globalization.CultureInfo cultureInfo);
static member GlobalizationScript : System.Web.Mvc.AjaxHelper * System.Globalization.CultureInfo -> System.Web.Mvc.MvcHtmlString

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper object that this method extends.

cultureInfo
CultureInfo CultureInfo

Encapsulates information about the target culture, such as date formats.

Returns

An HTML script element whose src attribute is set to the globalization script, as in the following example:<script type="text/javascript" src="/MvcApplication1/Scripts/Globalization/en-US.js"></script>

Exceptions

The cultureInfo parameter is null.

GlobalizationScript(AjaxHelper) GlobalizationScript(AjaxHelper)

Returns an HTML script element that contains a reference to a globalization script that defines the culture information.

public static System.Web.Mvc.MvcHtmlString GlobalizationScript (this System.Web.Mvc.AjaxHelper ajaxHelper);
static member GlobalizationScript : System.Web.Mvc.AjaxHelper -> System.Web.Mvc.MvcHtmlString

Parameters

ajaxHelper
AjaxHelper AjaxHelper

The AJAX helper object that this method extends.

Returns

A script element whose src attribute is set to the globalization script, as in the following example: <script type="text/javascript" src="/MvcApplication1/Scripts/Globalization/en-US.js"></script>

Applies to