I have two tables in my database. The first one is holding category ID's and the second one category names. The reason of holding its values and ids apart is because the website will be multi-language. For example:
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
Okay, now, I am using LINQ TO SQL and I want to create a form for an admin to insert new category names. For example:
English | Italiano | Français
entertainment | divertimento | divertissement
// where language names are column names and the values are within a textbox
So, how can I accomplish this task by using Html.TextBox
or Html.TextBoxFor
helpers? Please provide me a good example with describing also the process in the controller and model. I appreciate your help to a newbie in MVC :)
阅读了aligray发布给您的博客链接,它帮助我解决了类似问题:-)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.