I need to switch language in my masterpage file. the masterpage file contains the menue and there I also need to switch my language. Is there a workaround how I can also use Multi Language Support in the Master Page?
I have build the language switcher with this tutorial. My MLS.cs
file (In the tutorial named BasePage.cs) MLS
inherits from System.Web.UI.Page
but my Master Page inherits from System.Web.UI.MasterPage
.
I hope that there is a simple solution to switch language also in the masterpage without writing the menue in all content pages.
Here is the content of my Design.Master (MasterPge for the user):
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Design.Master.cs" Inherits="ProjectName.Site1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>...</head>
<body class="skin-blue">
<form id="form1" runat="server">
<div class="wrapper">
<aside class="main-sidebar">
<div class="slimScrollDiv" style="width: auto; height: 422px; overflow: hidden; position: relative;">
<div class="sidebar" id="scrollspy" style="width: auto; height: 422px; overflow: hidden; -ms-touch-action: none;">
<ul class="nav sidebar-menu">
<li class="header">data lookup</li>
<li><a href="~/datalookup.aspx"><i class="fa fa-arrow-right"></i>to data file</a></li>
</ul>
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="nav sidebar-menu">
<li class="header">quick selection menue</li>
<li class="active"><a href="#table1"><i class="fa fa-circle-o"></i>to table 1</a></li>
<li ><a href="#table2"><i class="fa fa-circle-o"></i>to table 2</a></li>
<li ><a href="#table3"><i class="fa fa-circle-o"></i>to table 3</a></li>
<li ><a href="#table4"><i class="fa fa-circle-o"></i>to table 4</a></li>
</ul>
</div>
</div>
<!-- /.sidebar -->
</aside>
<!-- /.aside -->
Hope somebody can help.