简体   繁体   English

带Webgrid而不是表的ASP.NET MVC模板

[英]ASP.NET MVC template with webgrid instead of table

是否有使用WebGrid而不是<table>的Asp.net MVC视图模板?

I should recommend you to set up a T4 template that generates the code that you want for your MVC View Template. 我应该建议您设置一个T4模板,该模板为MVC视图模板生成所需的代码。 Its pretty easy, have a look at this guide and you should get up and going... http://msdn.microsoft.com/en-us/magazine/ee291528.aspx 它非常简单,请看一下本指南,您应该起床并继续... http://msdn.microsoft.com/zh-cn/magazine/ee291528.aspx

Microsoft Visual Studio includes a code generation engine known as T4 (which is short for Text Template Transformation Toolkit). Microsoft Visual Studio包含一个称为T4的代码生成引擎(T4是“文本模板转换工具包”的简称)。 You've probably already used T4 templates in Visual Studio without even knowing they were working behind the scenes. 您可能已经在Visual Studio中使用了T4模板,甚至不知道它们在后台运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM