This is the code which I have in my partial view
@model Contoso.MvcApplication.Models.Exercises.AbsoluteArithmetic @using(Html.BeginForm()) {
You can add the script directly at the end of the partial view html, without script section (because script section is not rendered in partial views)