I want to use such an activity $(\'#myModal\').show();
The original calling plugin routine is as follows:
If you are including a Partial view called Foo.cshtml
you could also create a partial view named FooScripts.cshtml
and render that view where the rest of your scripts are getting loaded:
<h2>Main View</h2>
@Html.Partial("Foo")
...
@section scripts {
@Scripts.Render("~/bundles/jquery")
@Html.Partial("FooScripts")
}