<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="DisplayNews.aspx.vb" Inherits="FinIQWebApp.DisplayNewsGeneric" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />
</head>

<body>
    
    <form id="form1" runat="server">
        <style type="text/css">
            .lblDescription
            {
                white-space:pre-wrap !important;
            }

        </style>
        <div>
            <table>
                <tr>
                    <td style="height:23px; text-align:center;background-color:#B7274C !important; border-bottom:5px solid #ccc;" ><%--changed by Dashrath on 12-Mar-2018 for WLB bonds--%>
                      <asp:Label ID="Label17" runat="server" Text="News" Font-Bold="true" Height="20px" Width="150px" style="width: 1080px; display: inline-block; height: 23px; color: white; font-weight: bold; padding-top: 5px; padding-left: 10px;"  ForeColor="White"></asp:Label>  
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DataList ID="dlDisplayNews" runat="server" RepeatDirection="Vertical" CellPadding="4" CellSpacing="4">
                            <ItemTemplate>
                                <table cellpadding="2" cellspacing="2">
                                    
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblErrorMessage" runat="server" CssClass="lbl"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="../App_Resources/RMW_Images/seprator1.png" style="width:7px;"/>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblNewsCode" runat="server" style="font-size:14px; color:#024d99" Font-Bold="true" CssClass="lbl" Text='<%# Eval("News_Code")%>'></asp:Label>
                                        </td>
                            
                                        <td >
                                            <asp:Label ID="lblNewsPublishAt" runat="server"  style= "color:#024d99" CssClass="lbl" Text='<%# Convert.ToDateTime(Eval("News_Publish_At")).ToString("dd MMM yyyy, hh:mm:ss tt")%>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td style="width:900px; border-bottom:#aaaaaa dashed 1px; padding-bottom:10px; ">
                                            <asp:Label ID="lblNewsDescription" runat="server" style= "color:#024d99" CssClass="lbl lblDescription" Text='<%# Eval("News_Description")%>'></asp:Label>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>

                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
            </table>
            
        </div>
    </form>
</body>
</html>
