How to add a script in a partial view in MVC4?

前端 未结 9 1943
天涯浪人
天涯浪人 2020-12-05 09:15

This is the code which I have in my partial view

@model Contoso.MvcApplication.Models.Exercises.AbsoluteArithmetic

@using(Html.BeginForm())
{
9条回答
  •  囚心锁ツ
    2020-12-05 10:01

    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)

    
    

提交回复
热议问题