|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<System.IO.FileInfo>>" %>
<ul class="ui-helper-reset" style="padding-left: 10px;">
<%
var d = (System.IO.DirectoryInfo)ViewData["Dir"];
foreach (var f in Model)
{
if (f.Extension.ToLower().Equals(".resx"))
{
System.Globalization.CultureInfo ci = null;
if (d.Name == f.Name.Replace(".resx", ""))
ci = new System.Globalization.CultureInfo(1033);
else
ci = new System.Globalization.CultureInfo(System.IO.Path.GetFileNameWithoutExtension(f.FullName).Replace(d.Name + ".", ""));
%>
<li style="float:left;margin-left:5px;"><a href="<%:Url.Action("DownloadLanguage",new {name=d.Name,lang=ci.Name}) %>" target="_blank">
<img src="<%:Url.Content("~/Content/Images/flags/"+ci.Name+".gif") %>" alt="" /><span
style="margin-left: 2px;"><%:ci.DisplayName %></span></a></li>
<%}
} %>
</ul>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
In 1999, I started programming using Delphi, VB, VJ.From 2002 I started with .NET using C#.Since 2005 when i had became an EIP product manager I was focus on EIP and CMS technique. In 2008 i established dotnetage.com and started to shared my ideas and projects online. I believe "No shared no grow"
www.dotnetage.com