Hi Patrik,
Thanks for your update.
We suspect that the cause of the issue is, script section is not referred properly on your view page(AddAccessory.cshtml). So, we suggest you can define a section named ‘scripts’ using @section directive in the content views to include our Javascript functions. That is, you can use script tag inside the @section directives. Please find the below code for your reference.
|
AddAccessory.cshtml
@section scripts { // You can refer all javascript function inside the @section directive
<script type="text/javascript">
function tabCreated() {
…………..
}
</script>
} |
We have faced some core problem when running your shared project. You can try on above solution to your project. If still facing a problem, you can get back to us with below details.
- Are you creating AddAccessory.cshtml page as a normal or partial view page?
- Are you sending any ajax post for viewing AddAccessory.cshtml page?
Meanwhile, we will try to run your shared project.
Regards,
Buvana S