Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
- <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
- <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
- <%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
- <%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
- <%@ Import Namespace="Microsoft.SharePoint" %>
- <%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
- <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VisualWebPart1UserControl.ascx.cs" Inherits="TestProject.VisualWebPart1.VisualWebPart1UserControl" %>
- <asp:Repeater ID="pgRpt" runat="server">
- <HeaderTemplate>
- <asp:Label ID="Label1" runat="server" Text="News" Font-Size="20"></asp:Label>
- </HeaderTemplate>
- <ItemTemplate>
- <asp:Table ID="Table1" runat="server">
- <asp:TableRow runat="server">
- <asp:TableCell runat="server">
- <img src='<%# DataBinder.Eval(Container.DataItem, "NewsImageUrl")%> http://primrep.ru/wp-content/uploads/2016/10/REU_embl.png' width="78" height="78" />
- </asp:TableCell>
- <asp:TableCell runat="server">
- <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title") %>'
- Height="50" Font-Bold="True" Font-Size="15"></asp:Label>
- <br />
- <asp:Label ID="Label3" runat="server" Text ='<%# DataBinder.Eval(Container.DataItem, "NewsText") %>'
- Width="120"></asp:Label>
- </asp:TableCell>
- </asp:TableRow>
- </asp:Table>
- </ItemTemplate>
- </asp:Repeater>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement