繁体   English   中英

在ASP.NET MVC中为多语言结构创建表单时需要帮助

[英]Need help with creating a form for a multi-language structure in ASP.NET MVC

我的数据库中有两个表。 第一个是类别ID,第二个是类别名称。 之所以将其值和id分开是因为网站将是多语言的。 例如:

tableCategory - id | stringID | dateOfCreation
tableString - id | stringID | value | languageID 
// these two tables are connected with their stringIDs, 
// so the categories in the tableCategory can have different names 
// according to the user's language

好的,现在,我正在使用LINQ TO SQL,我想为管理员创建一个表单以插入新的类别名称。 例如:

English | Italiano | Français 

entertainment | divertimento | divertissement

// where language names are column names and the values are within a textbox

因此,如何通过使用Html.TextBoxHtml.TextBoxFor帮助程序来完成此任务? 请提供一个很好的示例,说明控制器和模型中的过程。 感谢您对MVC中的新手的帮助:)

阅读了aligray发布给您的博客链接,它帮助我解决了类似问题:-)

暂无
暂无

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

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