![](/img/trans.png)
[英]ASP.net MVC 5 Multi-Language: language resources sometimes do not work consistently
[英]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.TextBox
或Html.TextBoxFor
幫助程序來完成此任務? 請提供一個很好的示例,說明控制器和模型中的過程。 感謝您對MVC中的新手的幫助:)
閱讀了aligray發布給您的博客鏈接,它幫助我解決了類似問題:-)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.