AjaxOptions.UpdateTargetId Property

Gets or sets the ID of the DOM element to update by using the response from the server.

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

member UpdateTargetId : string with get, set

Property Value

Type: System.String
The ID of the DOM element to update.

The following example shows how to use the UpdateTargetId property to set the ID of the elements that are used to display the status message and to enter text.

Show: