c# - Razor Syntax. Disable Compile Warning for "Element 'summary' can appear no more than 1 time(s) inside element 'details'" -


how can disable visual studio compile warning html "element 'summary' can appear no more 1 time(s) inside element 'details'"?

or how can find pragma warning number surround code in pragma warning disable , pragma warning restore?

            <details id="hearing_audition" @html.tabopen("hearing_audition", (string)viewbag.tab)>                 @if (model.definition.schedulingindicator)                 {                     <summary>@resources.tabscheduling</summary>                 }                 else                 {                     <summary>@resources.tabhearing</summary>                 }                 @html.partial("_editscheduledhearing")             </details> 

put if inside summary:

         <summary>          @if (model.definition.schedulingindicator)             {                 <text>@resources.tabscheduling</text>             }             else             {                 <text>@resources.tabhearing</text>             }          </summary> 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -