I have a .js file for Modal popup, but i cann't call it. Here is my code in cshtml Modal TO call modal.js
@section scripts {
@Scripts.Render("~/Scripts/jquery-ui.js")
@Scripts.Render("~/bundles/jqueryval")
@Scripts.Render(ACHelper.PathFolder() + "Modal.js?d=" + DateTime.Now.ToString("yyyyMMddhhmmss"))
}
Call a function from your .js file? or render your .js file?
if calling a function: im expecting your Scripts.Render called/placed under your layout. and call your function in modal open callback.
if rendering your .js file: how about add them to your bundle or create a bundle then load them base on controller or path?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.