ascx(c#)
<table cellpadding="0" cellspacing="0">
<tr>
<td> Announcement Details
</td>
</tr>
<tr>
<td>
<asp:GridView ID="grdAnnouncements" runat="server" AutoGenerateColumns="false"
onrowdatabound="grdAnnouncements_RowDataBound">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="lnkTitle" runat="server" Text='<%#Bind("Title") %>' NavigateUrl='<%#Bind("EncodedAbsUrl") %>' ></asp:HyperLink>
<asp:Label ID="lblItemID" runat="server" Text='<%#Bind("ID") %>'></asp:Label>
<asp:Label ID="lblFileDirRef" runat="server" Text='<%#Bind("FileDirRef") %>'></asp:Label>
</ItemTemplate>
<HeaderTemplate>
Title
</HeaderTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblTitle" runat="server" Text='<%#Bind("Body") %>'></asp:Label>
</ItemTemplate>
<HeaderTemplate>
Body
</HeaderTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
<asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
<table cellpadding="0" cellspacing="0">
<tr>
<td> Announcement Details
</td>
</tr>
<tr>
<td>
<asp:GridView ID="grdAnnouncements" runat="server" AutoGenerateColumns="false"
onrowdatabound="grdAnnouncements_RowDataBound">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="lnkTitle" runat="server" Text='<%#Bind("Title") %>' NavigateUrl='<%#Bind("EncodedAbsUrl") %>' ></asp:HyperLink>
<asp:Label ID="lblItemID" runat="server" Text='<%#Bind("ID") %>'></asp:Label>
<asp:Label ID="lblFileDirRef" runat="server" Text='<%#Bind("FileDirRef") %>'></asp:Label>
</ItemTemplate>
<HeaderTemplate>
Title
</HeaderTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="lblTitle" runat="server" Text='<%#Bind("Body") %>'></asp:Label>
</ItemTemplate>
<HeaderTemplate>
Body
</HeaderTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</td>
</tr>
</table>
<asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
No comments:
Post a Comment