<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="Registration_Favourites.aspx.vb" Inherits="FinIQWebApp.Registration_Favourites" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:scriptmanagerproxy runat="server" ID="scriptMANG1"></asp:scriptmanagerproxy>

    <script type="text/javascript">

        function search(event) {
            var keyCode = event.keyCode || event.which;
            if (keyCode == 13) {

                $("#ctl00_MainContent_btnSearch").click();
                
                return true;

            }

        }
     



        </script>

    <style type="text/css">

        .loader {
            position: absolute;
            top: 50px;
            left: 324px;
        }
        </style>
       <asp:UpdatePanel ID="uPnlMain" runat="server">
        <ContentTemplate>

   <asp:UpdateProgress ID="UpdateProgress1" runat="server" Visible="true" DisplayAfter="1">
                <ProgressTemplate>
                    <div class="loader">
                        <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading... </span>
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>

   

    <table>
        <tr>
            <td>
                <asp:textbox runat="server" ID="txtBoxSearch" CssClass="txt" Placeholder="Search" onkeyup="return search(event);"></asp:textbox>   
                 
                </td>
            <td>
 <asp:button runat="server"  CssClass="btn" text="Search" ID="btnSearch"/>

                               </td>
         <td>
             <asp:button runat="server"  CssClass="btn" text="Add Favourite" ID="btnSave" />
         
             </td>
           
            <td>
                <asp:button runat="server"  CssClass="btn" text="Remove Favourite" ID="btnRemove" />
                </td>
             <td>
                    <asp:Label ID="lblinfomsg" runat="server" Text="" CssClass="lblerror"></asp:Label>
                </td>

            </tr>
          </table>
    <table>
        <tr>
            <td>
                 <asp:DataGrid ID="grdV_REGFAV" runat="server" AllowPaging="true"
                            AutoGenerateColumns="False" CssClass="Grid"  style="width:524px;" PageSize="20">
                            <ItemStyle CssClass="GridItem" />
                            <HeaderStyle CssClass="GridHeader" />
                            <FooterStyle CssClass="GridFooter" />
                            <PagerStyle CssClass="GridPager" />
                            <Columns>
                             <%--   OnCheckedChanged="chkAll_CheckedChanged"
                                 OnCheckedChanged="chkAll_CheckedChanged"--%>
                                <asp:TemplateColumn>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chkAll" runat="server" AutoPostBack="false"  Visible="false" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk" runat="server" AutoPostBack="false" />
                                    </ItemTemplate>
                                    <HeaderStyle Width="25px" HorizontalAlign="Center" />
                                    <ItemStyle Width="25px" HorizontalAlign="Center" />
                                </asp:TemplateColumn>
                                <asp:TemplateColumn HeaderText="App ID">
                                    <HeaderStyle Wrap="true" HorizontalAlign="Center"></HeaderStyle>
                                    <ItemStyle Wrap="false" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblAPPID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AppId").ToString)%>'>
                                        </asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:TemplateColumn HeaderText="App Name">
                                    <HeaderStyle Wrap="true" CssClass="setWidth" HorizontalAlign="Center"></HeaderStyle>
                                    <ItemStyle Wrap="false" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblAppName" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.AppName").ToString)%>'>
                                        </asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                               
                            </Columns>
                            <PagerStyle Font-Size="9pt" Mode="NumericPages" />
                        </asp:DataGrid>
                </td>
            </tr>
        </table>
               </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
