MVC4:处理大块文本 [英] MVC4: handling large blocks of text

查看:109
本文介绍了MVC4:处理大块文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是MVC的新手。必须在我正在处理的MVC4项目的某些页面上显示大块文本。文本由其他部门每年提供几次,因此必须是可更新的。 MVC4项目有哪些选项可以正确处理这些文本块?可以使用资源文件吗?

谢谢

I am new to MVC. Large blocks of text has to be displayed on some pages in the MVC4 project that I am working on. Text is supplied by another department few times a year, so must be updatable. What options are available for MVC4 project to handle these text blocks properly ? Can resource files be used?
Thank you

推荐答案

MVC4与它无关。你有文本块。您可以将它们存储在数据库中,也可以将它们直接粘贴到控制器中。没什么特别的。如果文本可以更改,或者您想要一个灵活的系统,请将其放在数据库中。
MVC4 has nothing to do with it. You have blocks of text. You can store them in your database, or you can paste them directly in to your controllers. There's nothing special about it. If the text can change, or you'd like a flexible system, put it in a database.


这篇关于MVC4:处理大块文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆