asp.net mvc - How to include a large inline SVG in my View? -


i avoid cluttering view (.cshtml) svg-data. there way put in separate file , input file in view (like latex' \input{})?

does make sense use partial view?

yes, highly suggest rendering partial views. easy way separate large amounts of html out if representative of data. might consider rendering partial view template if have model includes many occurrences of same data.

just replace applicable html/data call @html.partial("viewname") or @html.partial("viewname", model) you'd clean clutter.

see this discussion on efficiency of partial views vs. using model templates separate html out of view.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -