<%@ Page Language="C#" MasterPageFile="~/masterpage/MasterPage.master" AutoEventWireup="true" CodeFile="PanCardDetail.aspx.cs" Inherits="Agent_PanCardDetail" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

<script src="../javascript/scriptvalidation.js" type="text/javascript"></script>

<script type="text/javascript">
    function askToConfirm() 
    {
        if (confirm('Rs. 112.00 will be debit from your account as Pan Card Fee. Are you sure want to continue')) {
            //alert('Hahaha!! I just joking');
            return true;
        }
        else {

            alert('Its Better to check the Name Again');
            return false;
        }
    }
    
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="middle">
        
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td colspan="4" class="hdr">
                    <a href="PanCard.aspx" class="active">PAN Card</a> 
                </td>
            </tr>
            <tr>
                <td colspan="4" style="text-align:center"><asp:Label ID="lblMsg" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="4">
                  <div id="divControl" runat="server" visible="false" >
                     <table>
                        <tr>
                    <td width="15%"> </td>
                    <td width="32%">Name of Pan Card Holder </td>
                    <td width="3%">
                        <strong>:</strong>
                    </td>
                    <td width="50%">
                        <asp:TextBox ID="txtName" runat="server" onkeypress="return isAlpha(event)" MaxLength="25"></asp:TextBox>
                  
                        <asp:RequiredFieldValidator ID="rfvPanCardHolderName" runat="server" ErrorMessage="Please Enter Name" ControlToValidate="txtName" Display="None"></asp:RequiredFieldValidator>
                        <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="rfvPanCardHolderName">
                        </cc1:ValidatorCalloutExtender>
                    </td>
                </tr>
                        <tr>
                            <td width="15%">
                            </td>
                            <td width="32%">
                                Customer Mobile No 
                            </td>
                            <td width="3%">
                                <strong>:</strong>
                            </td>
                            <td width="50%">
                                <asp:TextBox ID="txtMobNo" runat="server" onkeypress="return digitonly(this,event)" MaxLength="10"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvCusterMobileNo" runat="server" ErrorMessage="Please Enter Mobile No." ControlToValidate="txtMobNo" Display="None"></asp:RequiredFieldValidator>
                                <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="rfvCusterMobileNo">
                                </cc1:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        
                        <tr>
                            <td width="15%">
                            </td>
                            <td width="32%">
                                Customer Address 
                            </td>
                            <td width="3%">
                                <strong>:</strong>
                            </td>
                            <td width="50%">
                                <asp:TextBox ID="txtAddress" runat="server" onkeypress="return isAlpha(event)"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvAddress" runat="server" ErrorMessage="Please Enter Address" ControlToValidate="txtAddress" Display="None"></asp:RequiredFieldValidator>
                                <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="rfvAddress">
                                </cc1:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td width="15%">
                            </td>
                            <td width="32%">
                            </td>
                            <td width="3%">
                                <strong></strong>
                            </td>
                            <td width="50%">
                                <asp:Button ID="btnPancard" runat="server" Text="Submit" 
                                    CssClass="button active" OnClientClick="return askToConfirm()"
                                    onclick="btnPancard_Click1"/>
                            </td>
                        </tr>
                     </table>
                 </div>
                 <div>
                 <p style=" text-align:center; font-size:medium"><a href="pancardN.aspx" style=" font-weight:bold; font-size:23px; color:Red;">Click Here</a> For Pan Card Application Form.</p>
                 </div>
               </td>
            </tr>
            
            <tr>
                <td colspan="4" align="center">
                    <%--<div id="divconfirm" style="padding-left:40%" runat="server">
                       <table>
                              <tr>
                                  <td style="text-align:center"><asp:Label ID="lblConfirm" runat="server" Text="Rs. 110.00 will be debit from your account as Pan Crad Fee. Are you sure want to continue"></asp:Label></td>
                              </tr>
                              <tr>
                                  <td style="text-align:center"><asp:Button ID="btnyes" runat="server" Text="yes" onclick="btnyes_Click"  />&nbsp;&nbsp;&nbsp;
                                                                <asp:Button ID="btnNo" runat="server" Text="No" 
                                          onclick="btnNo_Click" /></td>
                              </tr>
                       </table>
                           
                           
                   </div>--%>
                </td>
            </tr>
            <tr>
                <td style="height: 10px;" colspan="4">
                    
                </td>
            </tr>
            
            <tr> 
                 <td colspan="4" style="height: 30px"><asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager></td>
            </tr>
        </table>
    </div>
    <div id="right" style="background: none">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td class="cdr">
                    <strong>Instruction : Pan Card</strong>
                </td>
            </tr>
            <tr>
                <td style="padding: 10px 0 30px 5px; font-size: 15px">
                    Comming Soon
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

