在我的數據庫我有tbales:categoreis和SubCategoreis。我想創建一個包含這兩個的Dropdownlist。喜歡的東西:MVC -DropDownList - 分類 - 子類
«Välj»
<option value='1000' style='background-color:#dcdcc3;font-weight:bold;' id='cat1000' >
-- FORDON -- /// this is from Categoreis Table
</option>
<option value='1020' id='cat1020' >
Bilar /// this is from SubCategoreis
</option>
<option value='1040' id='cat1040' >
Bildelar & Biltillbehör /// this is from Categoreis
</option>
<option value='1060' id='cat1060' >
Båtar /// this is from Categoreis
</option>
<option value='1080' id='cat1080' >
Båtdelar & tillbehör /// this is from Categoreis
</option>
任何樣品我怎麼能解決這個問題?我應該使用Helpers還是MVCUsercontrol?在這種情況下,我認爲緩存是重要的。幫助我! 謝謝!