Hi,
i finally done my flag where i can choose the culture of my site, the problem now is the following :
i have my table with ID , BODY, BODY_IT, BODY_FR, BODY_SP
for example, when i click on the french flag my culture is = fr
in this case, i would love to show the french BODY_FR in stead of the normal BODY :
<div class="form-group">
@Html.LabelFor(model => model.Body, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.LabelFor(model => model.Body, new { @class = "control-label col-md-2" })
@Html.ValidationMessageFor(model => model.Body)
</div>
</div>
and here
<dt>
@Html.DisplayNameFor(model => model.Body)
</dt>
and the same for my type, i have titre, titre_it, , titre_fr, , titre_sp but this time is a dropdownlist :
<div class="form-group">
@Html.LabelFor(model => model.Type, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownListFor(model => model.Type, new SelectList(ViewBag.MagazineType, "Id", "MagazineTypeNom"), "Select a Category")
@Html.ValidationMessageFor(model => model.Type)
</div>
</div>