The index controller get all the information needed and set the View variable to send the web page to the client. The Index controller was developed as follows:
public ActionResult Index(int langid = 1)
{
//Help strings
Text Text_ = new Text ();
ViewBag.Texto = Text_.textMainMenu(langid);
ViewBag.Labels = Text_.textEtMenu(langid);
ViewBag.Lang = Text_.textLang();
ViewBag.langid = langid;
return View();
}
Here, the controller call to the Text Model to get all the web page strings as (Text) that is send to the veiw as viewbag. Then this viewbag is interpreted by @razor technology
The index controller get all the information needed and set the View variable to send the web page to the client. The Index controller was developed as follows:
Here, the controller call to the Text Model to get all the web page strings as (Text) that is send to the veiw as viewbag. Then this viewbag is interpreted by @razor technology
The view code was developed as follows:
Last edit: Fernando Pérez Rodríguez 2018-02-05