AjaxOptions.LoadingElementId Property

Gets or sets the id attribute of an HTML element that is displayed while the Ajax function is loading.

Namespace:  System.Web.Mvc.Ajax
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Property LoadingElementId As String
    Get
    Set
public string LoadingElementId { get; set; }
public:
property String^ LoadingElementId {
    String^ get ();
    void set (String^ value);
}

Property Value

Type: System.String
The ID of the element that is displayed while the Ajax function is loading.

Remarks

You can use this property to specify an HTML element to display, such as an image or a text-based element that can display a message. The specified element is displayed when the OnBegin function is called. The element is hidden when the OnComplete function is called.

See Also

Reference

AjaxOptions Class

System.Web.Mvc.Ajax Namespace