<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Mvcmode.Mvc_ad>>" %>
<ul class="<%=ViewData["classen"].ToString()%>_adlist">
<%
 string adfile = "";
 int i = 0;
 foreach (var ad in Model)
  {
      i = i + 1;
adfile = Fun.Webdirectory + ad.Adfile;%>
  <li class="li<%=i%>"><a href="<%=ad.Adlink%>" target="_blank" onclick="$.get('<%=Fun.Webdirectory%>jquery/adcount?linkid=<%=ad.Id%>')" title="<%=ad.Adtitle%>">
  <img src="<%=adfile%>" width="<%=ad.Adwidth%>" height="<%=ad.Adheight%>" alt="" />
  </a></li>
<%}%>
</ul>

