<% 
    string url = System.Web.HttpContext.Current.Request.Url.ToString(); 
    if(url.Contains("?"))
    {
        url = url.Substring(0, url.IndexOf("?"));
    } 
%>
<select name="LanguageCombo" id="LanguageCombo" onchange="window.location.href = '<% Response.Write(url); %>?<%=Request.QueryString %>&gl=' + $('#LanguageCombo').val();">
    <option value="1" <% if(LangCode.Equals("en-US")){ Response.Write("selected"); } %> data-image="img/en-US.png" ><%=Seven.Front.L.LBL("LblGENEnglish") %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>  
    <option value="2" data-image="img/es-ES.png" <% if(LangCode.Equals("es-NI")){ Response.Write("selected"); } %> ><%=Seven.Front.L.LBL("LblGENSpanish") %></option>
    <option value="3" data-image="img/fr-FR.png" <% if(LangCode.Equals("fr-FR")){ Response.Write("selected"); } %> ><%=Seven.Front.L.LBL("LblGENFrench") %></option>
    <option value="4" data-image="img/pt-BR.png"<% if(LangCode.Equals("pt-BR")){ Response.Write("selected"); } %> ><%=Seven.Front.L.LBL("LblGENPortuguese") %></option>
</select>