London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi,
I think you can add language as route value, @Html.BeginForm("Index", "ProductPage", new { language = ContentLanguage.PreferredCulture.Name } )
How is the way to specify action/controller for a Razor Html.BeginForm???
It seems to me that it's Html.BeginForm(action, controller...), but in name of controller, we've to use the friendly url, not the controller name (error 404 not found).
But what happens with language????, is it necessary to to write the code like this???: Html.BeginForm(action, language/url...)... for example, to access the index action of productpagecontroller,
we have to write something like Html.BeginForm("", actual-language/products...), is that right??? Can anybody explain me how to work with Html.BeginForm for multisite multilanguage websites????
Thank you in advance.