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

<%--<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>--%>
<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl"
    TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<asp:content id="Content1" contentplaceholderid="MainContent" runat="server">
    
    <asp:ScriptManagerProxy ID="ScriptManager1" runat="server">
    </asp:ScriptManagerProxy>

    <link href="../App_Themes/confirmationBox.css" rel="stylesheet" type="text/css" />
    <%--<link href="../App_Themes/ELNLog.css" rel="stylesheet" type="text/css" />--%>
    <%--<link href="../App_Themes/ELNLog.css" rel="stylesheet" type="text/css" />--%>

    <%--<script src="Scripts/dragtable.js" type="text/javascript"></script>--%>

   <%-- <script src="../FinIQJS/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="../FinIQJS/jquery-color.js" type="text/javascript"></script>
    <script type="text/javascript" src="../FinIQJS/Jquery/jquery.min.js"></script>
    <script src="../FinIQJS/Jquery/jquery.js" type="text/javascript"></script>
    <script src="../FinIQJS/Jquery/jquery-ui.js" type="text/javascript"></script>--%>

    <link href="../App_Themes/confirmationBoxSolo.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/ELNStyle.css" rel="stylesheet" type="text/css" />
   <%-- <link rel="stylesheet" href="../FinIQJS/Jquery/jquery-ui.css" />--%>

    <style>
        .gridScroll {
            width: 1850px;
        }

       /* .lblError {
            color: #FF5050;
            font-weight: bold;
        }

        .lblMessage {
            color: #336699;
            font-weight: bold;
        }*/

        /*.btnGrid {
            background-color: #5e85b1;
            border-left: solid 1px #CCCCCC;
            border-top: solid 1px #CCCCCC;
            border-right: solid 1px #CCCCCC;
            border-bottom: solid 1px #CCCCCC;
            color: #CCC;
            height: 22px;
            font-size: 11px;
            font-family: Verdana;*/ /*border-radius:20px; */
            /*width: 70px;
            background-image: url(..\App_Themes\images\Experiment.png);
            background-color: #F0FFFF !important;*/ /*6ea1db */
            /*background-repeat: repeat-x !important;
        }*/

        /*.RadGrid_Black .rgHeader, .RadGrid_Black .rgHeaderWrapper {
            background-image: none !important;
            background-color: #333 !important;
            color: #00ccff !important;
        }

        .RadGrid_Black .rgrow {
            background-color: #464646 !important;
            color: White !important;
        }

        .RadGrid_Black .rgAltRow {
            background-color: #404040 !important;
            color: White !important;
        }

        .RadGrid_Web20 .rgHeader A {
            color: #fff !important;
        }

        .RadGrid_Web20 .rgHeader, .RadGrid_Web20 .rgHeaderWrapper {
            background-image: none !important;
            background-color: #4070B0 !important;
            color: #fff !important;
        }

        .RadGrid_Web20 .rgrow {
            color: Black !important;
        }

        .RadGrid_Web20 .rgAltRow {
            color: Black !important;
        }*/

        .divshadow {
            -moz-box-shadow: 2px 2px 2px #000;
            -webkit-box-shadow: 2px 2px 2px #000;
            box-shadow: 2px 2px 2px #000;
            -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000')";
            filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color= '#000' );
            font-family: Verdana !important;
        }

        .ajax__tab_xp .ajax__tab_body {
            background-color: #fff !important;
            border: 0px solid #999 !important;
            border-top: 0 !important;
            font-family: verdana,tahoma,helvetica !important;
            font-size: 10pt !important;
            padding: 0px !important;
        }

        .tdSpace {
            width: 10px;
        }
    </style>

    <script type="text/javascript">
        $(document).ready(function () {
            dragAndDrop();
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(dragAndDrop);

        });

        function dragAndDrop() {
            $(".draggable").draggable();
        }
    </script>

    <script language="javascript" type="text/javascript">

        setResolution();

        $(document).ready(function () {
            setResolution();

        });

        $(window).resize(function () {
            setResolution();
        });

        function setResolution() {
            var viewportWidth;
            if (document.compatMode === 'BackCompat') {
                viewportWidth = document.body.clientWidth;
            } else {
                viewportWidth = document.documentElement.clientWidth;
            }

            $(".gridScroll").width((Number(viewportWidth) - 20).toString() + "px");

        }

       <%-- function DataDelete(objID) {            
            var rowP = $("#ctl00_MainContent_grdTradeLimitELI.Grid").find($("#" + objID).parent().parent()).index()-1;         

            $.when(confirmDialog("", "Are you sure you want to delete the record?")).then(
                function (status) {                                       
                    if (status == "Yes") {
                        document.getElementById('<%= hdnCancel.ClientID %>').value = "TRUE";                         
                        __doPostBack('deleteRecords', rowP);
                    } else {
                        document.getElementById('<%= hdnCancel.ClientID %>').value = "FALSE";    
                        return false;
                    }
             });           
        }--%>

        function callBackFn(confirmed) {
            if (confirmed) {
                $find('<%= grdTradeLimitELI.ClientID %>').get_masterTableView().fireCommand("DELETERECORDS");
            }
        }

        function KeysAllowedForNotionalRMLimit() {

            var e = window.event;

            var key = window.event.keyCode;

            var obj;

            if (e.target) { obj = e.target; }

            else if (e.srcElement) { obj = e.srcElement; }

            if (key != 8) {

                if ((Len(obj.value) > 0) && (Right(obj.value, 1) != "." && Right(obj.value, 1) != "-" && (!(isNumeric(Right(obj.value, 1)))))) {
                    window.event.preventDefault ? window.event.preventDefault() : window.event.returnValue = false;             //<Return Statement replaced by Mohit Lalwani on 05-Aug-2015 for IE11 compatibility  Jira:EQBOSDEV-7>
                }

                else {
                    var character = String.fromCharCode(key);
                    var s = obj.value;
                    if ((s.indexOf(".") != -1) && (character == ".")) window.event.preventDefault ? window.event.preventDefault() : window.event.returnValue = false;       //<Return Statement replaced by Mohit Lalwani on 05-Aug-2015 for IE11 compatibility  Jira:EQBOSDEV-7>
                    else
                        if (key == 45 || key > 47 && key < 58) return;

                        else {
                            if (character == "K" || character == "M" || character == "B" || character == "T" || character == "L" || character == "P" || character == "k" || character == "m" || character == "b" || character == "t" || character == "l" || character == "p" || character == "." || character == "-")
                                return;
                            else
                                window.event.preventDefault ? window.event.preventDefault() : window.event.returnValue = false;         //<Return Statement replaced by Mohit Lalwani on 05-Aug-2015 for IE11 compatibility  Jira:EQBOSDEV-7>
                        }

                }

            }

        }
        function UpdateTab(sender, e) {
            $('#ctl00_MainContent_UpdatePanel1').hide();
            $("#tdTradeLimit").append("<div style='text-align:center; margin-top:40px; height:125px;'><img src='../App_Resources/ajax-loader7.gif' id='Img2' width='50px' height='50px' alt='x' /><div style='text-align:center;'>Loading...</div></div>");
            __doPostBack('<%= UpdatePanel1.ClientID %>', '');
        }
    </script>

    <table cellspacing="0" cellpadding="1em">
        <tr>
            <td>
                <asp:UpdatePanel ID="upnlError" runat="server" ChildrenAsTriggers="true" UpdateMode="Always">
                    <ContentTemplate>
                        <asp:Label ID="lblerror" runat="server" CssClass="lblError"  Style="width: auto;"></asp:Label>
                        <asp:Label ID="lblMessage" runat="server" CssClass="lblInfo"  Style="width: auto;"></asp:Label>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        
        <tr>
            <td>&nbsp;
            </td>
        </tr>

        <tr>
            <td align="left" valign="top">
                <ajax:TabContainer ID="tabContainer" runat="server" ActiveTabIndex="0" CssClass="ajax__tab_xp ajax__tab_container ajax__tab_default"
                    Style="vertical-align: top" AutoPostBack="false" OnClientActiveTabChanged="UpdateTab">
                    
                    <ajax:TabPanel ID="tabPanelACC" runat="server" TabIndex="0">
                        <HeaderTemplate>
                            ELI
                        </HeaderTemplate>
                    </ajax:TabPanel>                                 
                </ajax:TabContainer>
            </td>
        </tr>
        <tr>
            <td id="tdTradeLimit" style="width: 100%;" align="left" valign="top">                
                <table width="70%" id="t1 !important">
                    <tr>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" UpdateMode="Always">
                                <ContentTemplate>
                                    <asp:Panel ID="pnlGrid" runat="server" Height="100%">
                                        <table style="z-index: 9999px;" cellspacing="1px" cellpadding="1px">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblID" runat="server" CssClass="lbl" Text="" Style="font-weight: bold"
                                                        Visible="false"></asp:Label>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:label runat="server" Text="Product" CssClass="lbl"></asp:label>
                                                            </td>

                                                            <td>
                                                                <asp:DropDownList ID="ddlProductFilter" runat="server" CssClass="ddl" Width="120px" AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </td>                                                           

                                                            <td class="tdSpace"></td>

                                                            <td>
                                                                <asp:Button ID="btnLoad" runat="server" Text="Load" Width="80px"  class="btn"
                                                                    Visible="true" />
                                                            </td>

                                                            <td class="tdSpace"></td>

                                                             <td>
                                                                <asp:Button ID="btnAdd" runat="server" Text="Add" Width="80px" class="btn"  Visible="true" />
                                                            </td>
                                                        </tr>

                                                        <tr>

                                                            <td>
                                                                <asp:label ID="lblCcy" runat="server" Text="Currency" CssClass="lbl"></asp:label>
                                                            </td>

                                                            <td>
                                                                <asp:DropDownList ID="ddlCcyFilter" runat="server" CssClass="ddl" Width="120px" AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </td>

                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>

                                        <table  cellspacing="0" cellpadding="1em">
                                            <tr>
                                                <td align="left" valign="top">
                                                    <div id="dgDiv" runat="server" style="float: left; overflow: hidden; height: auto;"
                                                        class="gridScroll">
                                                        <table id="tblElnLog" runat="server">
                                                            <tr>
                                                                <td align="left" valign="top">
                                                                    
                                                                    <div style="overflow: auto; min-height: 150px !important;" class="gridScroll">
                                                                        <asp:DataGrid ID="grdTradeLimitELI" runat="server" AutoGenerateColumns="False" PageSize="20"
                                                                            AllowPaging="true" AllowSorting="true" CssClass="Grid" ItemStyle-Wrap="false">

                                                                            <FooterStyle CssClass="GridFooter"></FooterStyle>
                                                                            <ItemStyle CssClass="GridItem " />
                                                                            <SelectedItemStyle CssClass="GridItemSelect" />
                                                                            <AlternatingItemStyle CssClass="AlternatItemStyle" />
                                                                            <HeaderStyle CssClass="GridHeaderTitle1" />
                                                                            <PagerStyle CssClass="GridPager" />

                                                                            <Columns>                                                                                
                                                                                <asp:TemplateColumn>
                                                                                    <ItemStyle VerticalAlign="Top" Width="50px"></ItemStyle>
                                                                                    <ItemTemplate>
                                                                                        <asp:Button ID="btnEdit" runat="server" Width="40px" CommandName="EDITRECORDS" Text='Edit'
                                                                                            CausesValidation="False" ToolTip="Click to edit record." CssClass="btn" ></asp:Button>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateColumn>

                                                                                <asp:TemplateColumn>
                                                                                    <ItemStyle VerticalAlign="Top" Width="50px"></ItemStyle>
                                                                                    <ItemTemplate>
                                                                                        <asp:Button ID="btnDelete" runat="server" Width="50px" OnClientClick="return confirmationDialog(this, 'Confirmation', '\n Are you sure you want to delete this record?');"
                                                                                            CommandName="DELETERECORDS" Text='Delete' ToolTip="Click to delete record." CssClass="btn" ></asp:Button><%--OnClientClick="DataDelete(this.id);"--%>
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateColumn>

                                                                                <asp:BoundColumn HeaderText="ID" DataField="ID" Visible="false" HeaderStyle-Width="100" ItemStyle-Width="90">
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Left" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>

                                                                                <asp:BoundColumn HeaderText="Product" DataField="Product">
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>
                                                                               

                                                                                <asp:BoundColumn HeaderText="Currency" DataField="Ccy">
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>

                                                                                <asp:BoundColumn HeaderText="Minimum Tranche Limit" DataField="MIN_LIMIT">
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="140"/>
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Right" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>

                                                                                 <asp:BoundColumn HeaderText="Maximum Tranche Limit" DataField="MAX_LIMIT" >
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="140"/>
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Right" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>

                                                                                <asp:BoundColumn HeaderText="Minimum Order Size" DataField="Min_Order_Size" >
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="140"/>
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Right" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>

                                                                                <asp:BoundColumn HeaderText="Denomination" DataField="Denom" >
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" Width="100"/>
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Right" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>

                                                                                 <asp:BoundColumn HeaderText="Issuer" DataField="PPCode" Visible="false">
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Left" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>

                                                                                <asp:BoundColumn HeaderText="Created At" DataField="Created_At">
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>

                                                                                <asp:BoundColumn HeaderText="Created By" DataField="Created_By">
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Left" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>

                                                                                <asp:BoundColumn HeaderText="Updated At" DataField="Updated_At">
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>

                                                                                <asp:BoundColumn HeaderText="Updated By" DataField="Updated_By">
                                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="true" />
                                                                                    <ItemStyle Wrap="false" HorizontalAlign="Left" VerticalAlign="Middle" />
                                                                                </asp:BoundColumn>
                                                                                
                                                                            </Columns>
                                                                            <PagerStyle Mode="NumericPages" CssClass="GridPager" />
                                                                        </asp:DataGrid>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </ContentTemplate>
                            </asp:UpdatePanel>

                            <asp:UpdatePanel ID="updFilledStatusPopUp" runat="server" UpdateMode="Always">
                                <ContentTemplate>
                                    <asp:Panel ID="EditRecordPopup" runat="server" class="draggable divshadow UCCustomerFind" Width="300px"
                                        Visible="false" Style="position: absolute; top: 250px; left: 550px; padding:10px; ">
                                        <div class="FinIQ_MenuBG" style="cursor: move;  height: 30px; margin-top: -7px;">
                                            <h1>
                                                <asp:Image runat="server" ID="imgEdit" ImageUrl="~/App_Themes/images/edit.png" Height="15px"
                                                    Style="margin-left: 5px; margin-top: 5px;" />
                                                <asp:Label ID="lblUpdateTitle" runat="server" Text="Edit Details" Style="background-color: Transparent; color: White; font-size: larger; text-decoration: underline;"></asp:Label>
                                                <asp:Button ID="imgUpdateClose" runat="server" Text="X" CssClass="closebtn" Style="position: relative; float: right; margin-top: 5px; margin-right: 5px;" /></h1>
                                        </div>
                                        </br>
                                       
                                        <asp:Table runat="server" ID="Table1" CellPadding="3">
                                            <asp:TableRow ID="TableRow2" runat="server">
                                                <asp:TableCell>
                                                    <asp:Label ID="lblProductPopup" runat="server">Product</asp:Label>
                                                </asp:TableCell>
                                                <asp:TableCell>
                                                    <asp:DropDownList ID="ddlProductPopup" runat="server" AutoPostBack="True" CssClass="ddl"
                                                        Width="120px" TabIndex="1" Enabled="false">                                                       
                                                    </asp:DropDownList>
                                                </asp:TableCell>
                                            </asp:TableRow>                                                                                                                                   

                                            <asp:TableRow>
                                                <asp:TableCell>
                                                    <asp:Label ID="lblCcyPopup" runat="server">Limit Ccy</asp:Label>
                                                </asp:TableCell>
                                                <asp:TableCell>
                                                    <asp:DropDownList ID="ddlccy" runat="server" AutoPostBack="True" CssClass="ddl"
                                                        Width="120px" TabIndex="3" Enabled="false">
                                                    </asp:DropDownList>
                                                </asp:TableCell>
                                            </asp:TableRow>

                                            <asp:TableRow>
                                                <asp:TableCell>
                                                    <asp:Label ID="lblPPCode1" runat="server">Price Provider</asp:Label>
                                                </asp:TableCell>
                                                <asp:TableCell>
                                                    <asp:DropDownList ID="ddlPPCode1" runat="server" AutoPostBack="True" CssClass="ddl"
                                                        Width="120px" TabIndex="3" Enabled="false">
                                                    </asp:DropDownList>
                                                </asp:TableCell>
                                            </asp:TableRow>

                                             <asp:TableRow>
                                                <asp:TableCell>
                                                    <asp:Label ID="lblMinNotionalPopup" runat="server" >Minimum Investment</asp:Label>
                                                </asp:TableCell>
                                                <asp:TableCell>
                                                    <asp:TextBox Width="115px" ID="txtMinNotionalPopup" runat="server" Enabled="true"
                                                        MaxLength="14" AutoPostBack="true" onkeypress="Javascript:KeysAllowedForNotionalRMLimit();" OnTextChanged="txtAmount_TextChanged"
                                                        TabIndex="4" style="text-align:right"></asp:TextBox>
                                                </asp:TableCell>
                                            </asp:TableRow>

                                            <asp:TableRow>
                                                <asp:TableCell>
                                                    <asp:Label ID="lblMaxNotionalPopup" runat="server" >Maximum Investment</asp:Label>
                                                </asp:TableCell>
                                                <asp:TableCell>
                                                    <asp:TextBox Width="115px" ID="txtMaxNotionalPopup" runat="server" Enabled="true" OnTextChanged="txtAmount_TextChanged"
                                                        MaxLength="14" AutoPostBack="true" onkeypress="Javascript:KeysAllowedForNotionalRMLimit();"
                                                        TabIndex="4" style="text-align:right"></asp:TextBox>
                                                </asp:TableCell>
                                            </asp:TableRow>
                                           
                                            <asp:TableRow>
                                                <asp:TableCell>
                                                    <asp:Label ID="lblMinOrderNotionalPopup" runat="server" >Minimum Order Investment</asp:Label>
                                                </asp:TableCell>
                                                <asp:TableCell>
                                                    <asp:TextBox Width="115px" ID="txtMinOrderNotionalPopup" runat="server" Enabled="true" OnTextChanged="txtAmount_TextChanged"
                                                        MaxLength="14" AutoPostBack="true" onkeypress="Javascript:KeysAllowedForNotionalRMLimit();"
                                                        TabIndex="4" style="text-align:right"></asp:TextBox>
                                                </asp:TableCell>
                                            </asp:TableRow>

                                            <asp:TableRow ID="Demon" runat="server">
                                                <asp:TableCell>
                                                    <asp:Label ID="lblDenom" runat="server" style="text-align:right">Denomination</asp:Label>
                                                </asp:TableCell>
                                                <asp:TableCell>
                                                    <asp:TextBox Width="115px" ID="txtDenom" runat="server" Enabled="true" MaxLength="14" OnTextChanged="txtAmount_TextChanged"
                                                        AutoPostBack="true" onkeypress="Javascript:KeysAllowedForNotionalRMLimit();"
                                                        TabIndex="5" style="text-align:right"></asp:TextBox>
                                                </asp:TableCell>
                                            </asp:TableRow>

                                            <asp:TableRow>                                               
                                                <asp:TableCell>
                                                    <asp:Button runat="server" ID="btnSave" Text="Save" CssClass="btn" Width="80px" />
                                                    <asp:Button runat="server" ID="btnUpdate" Text="Update" CssClass="btn" Width="80px" />
                                                </asp:TableCell>
                                            </asp:TableRow>

                                            <asp:TableRow ID="TableRow1" runat="server">
                                                <asp:TableCell>
                                                    <asp:Label ID="lblPPCode" runat="server" style="text-align:right" Visible="false"></asp:Label>
                                                </asp:TableCell>                                                
                                            </asp:TableRow>
                                           
                                        </asp:Table>
                                        <asp:Label ID="lblPoppErr" runat="server" CssClass="lblInfo" Style="margin-left: 5px;"></asp:Label>
                                                                               
                                        <br></br>                                        

                                    </asp:Panel>
                                    
                                </ContentTemplate>
                                <Triggers>
                                    <asp:PostBackTrigger ControlID="btnSave" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>   

     <asp:HiddenField ID="hdnCancel" runat="server" Value="FALSE" />
</asp:content>
