Adding a script link into the <head> of page

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Hi there I am trying to install a gallery onto a page I have created.

I am trying this

@{
    ViewBag.Title = "Images";
    Layout = "~/Views/Shared/_ColumnsTwo.cshtml";
    Html.AddTitleParts("Image Gallery and Photo's");
    Html.AppendScriptParts("~/Scripts/jquery-1.7.1.js");
    Html.AppendScriptParts("~/galleria/galleria-1.2.9.js");
    }


But the scripts are not apearing on the page when I look at the view source :(

This is obviously something simple..... but needs more than a simple person :)
11 years ago
Hi

Have you tried to put it into the _root.head.cshtml file?
11 years ago
Yes I can, but dont want to have the sript on everypage of the website only on the page I actually need the gallery on. Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.