Skip to main content

Alert message with the HTML/JavaScript/CSS content appears when you use callback-aware extensions

Solution:

Do the following to solve the issue:

  • The SettingsBase.Name property value should be the same between callbacks.

  • Define extensions in a separate PartialView file without additional tags (for example, HTML markup, scripts).

  • Use the Html.Partial, Html.RenderPartial expression/code block or the Html.Action, Html.RenderAction that return the PartialViewResult to render the PartialView.

  • The action method (CallbackRouteValues.Action) should return the same PartialViewResult that contains the callback-aware extensions.