We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to render controls when unobtrusive is in enabled state?

When you enable the unobtrusive in your application, refer to the ej.unobtrusive.min.js file in the application.

You have to set the value of UnobtrusiveJavaScriptEnabled to true in Root directory web.config file as shown in the following code example.

Web.config

<appSettings>

    . . .

    <add key="UnobtrusiveJavaScriptEnabled" value="true" />

    . . .

  </appSettings>

After setting the value as true, refer to the unobtrusive script file in the _Layout page as shown in the following code example.

_Layout.cshtml

MVC sample is attached in unobtrusive mode and it can be downloaded from the following location.

Sample Location

 Sample

Article ID: Published Date: Last Revised Date: Platform: Control:
4464 04/17/2015 04/17/2015 ASP.NET MVC General
Did you find this information helpful?
Comments
Kevin Sep 10, 2016
added the unobtrusive js reference to asp.net webform but now got another error said "widget is undefined", does to make it work for asp.net webform?
Reply
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.