Share via


AjaxExtensions.GlobalizationScript Method

Definition

Overloads

GlobalizationScript(AjaxHelper, CultureInfo)

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

GlobalizationScript(AjaxHelper)

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

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
<Extension()>
Public Function GlobalizationScript (ajaxHelper As AjaxHelper, cultureInfo As CultureInfo) As MvcHtmlString

Parameters

ajaxHelper
AjaxHelper

The AJAX helper object that this method extends.

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.

Applies to

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
<Extension()>
Public Function GlobalizationScript (ajaxHelper As AjaxHelper) As MvcHtmlString

Parameters

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