<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_Home, App_Web_fz5gj3qy" %>


<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>

<script runat="server">

   
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>

    <style type="text/css">
     
         .contactpanelcss
        {
        	width:65%;
        	margin:0px;
        	background-color:White;
        	border:6px solid ActiveBorder;
        	padding:5px;
        	margin-top:0px;
        	height:500px;
        	overflow:auto;
        	     	   	
        }   
        .style34
        {
            width: 11px;
           
        }
        .shadow_five {
        background-color: #FFECCE;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        -o-border-radius: 10px;
        -ms-border-radius: 10px;
        border-radius: 10px;
        -moz-box-shadow: 3px 3px 5px #B1A59A;
        -webkit-box-shadow: 3px 3px 5px #B1A59A;
        -o-box-shadow: 3px 3px 5px #B1A59A;
        -ms-box-shadow: 3px 3px 5px #B1A59A;
        box-shadow: 3px 3px 5px #B1A59A;
        padding: 10px;
        margin-bottom:10px;
        
    }

      .p1
        {
       background-image: linear-gradient(to bottom, #fcfcfc, #f7f7f7 3%, #ff9966 12%,#ff9966 90%, #bfbfbf);
-webkit-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
-moz-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white ;
box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
            height:35px;
            width:250px;
        } 
        
          .cssLoadingTimer
        {        	
        	/* filter:alpha(opacity=90);       	
        	opacity:0.7; */        	
        	text-align:center; 
        	position:fixed; 
        	margin:5% 0% 0px 30%; 
        	background-color:White;
          
        	width:300px;
        	height:150PX;
        	 background-color:#ffebcc;
        	
        
        }  
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


 <asp:UpdateProgress ID="UpdateProgress1" runat="server"  
                           DynamicLayout="true"  >
                          <ProgressTemplate>
                          <div style="width:100%;">
                              <div class="cssLoadingTimer"  >
                              <p> Please wait...</p>
                                  <img id="Img1" alt="Loading..." src="../images/Regloader.gif" runat="server" style="margin-top:15px;" align="middle"  />
                                  </div>
                                  
                                  </div>
                          </ProgressTemplate>
                      </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:Panel ID="Panel1" runat="server" Width="100%" >  <%--BorderStyle="Groove"--%>
   
         <div class="p12" style="width:200px;"  align="center" >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:White;font-weight:bold;padding-top:5px;">
      Client Master -<b style="color:White;">Add Client</b>
      </p>
           </div>
    
    <table width="100%"  >
              <tr>
            <td>
                </td>
            <td align="right">
                <asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text=" Client Code" Font-Bold="true"  ></asp:Label>
            </td>
            <td align="right">
                &nbsp;</td>
            <td >
                <asp:TextBox ID="txtCCode" runat="server" Height="22px" Width="100px" 
                    Enabled="False" ></asp:TextBox>
            </td>
            <td >
                &nbsp;</td>
        </tr>
        <tr>
            <td >
                </td>
            <td align="right">
               
                 <asp:Label ID="Label2" runat="server" Text=" Name of Company " 
                     Font-Names="Verdana" Font-Size="12px" Font-Bold="true" ></asp:Label></td>
            <td >
               <b style="color:Red;">*</b></td>
            <td >
                <asp:TextBox ID="txtCName" runat="server" Height="22px" Width="250px" ></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                    ControlToValidate="txtCName" ErrorMessage="Enter Name" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td >
               
            </td>
        </tr>
        
                <tr>
            <td >
                </td>
            <td align="right">
                
                <asp:Label ID="Label4" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Person Name" Font-Bold="true" ></asp:Label>
            </td>
            <td  align="right">
                &nbsp;</td>
            <td >
               <%-- <DIV >
                    <%-- <asp:TextBox ID="txtCAttention" runat="server" ></asp:TextBox>--%>


                  <%--  <asp:CheckBoxList ID="txtCAttention" runat="server" 
                                    DataSourceID="SqlDataSource2" DataTextField="PName"
                                    Font-Names="Verdana" Font-Size="12px">
                                </asp:CheckBoxList>--%>
                                
                                
                                 
                              <%--  <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:Project_monitorConnectionString %>" 
                                    SelectCommand="SELECT distinct [PName] FROM [Person_Master]">
                                    <SelectParameters>--%>
                                        <%--<asp:SessionParameter DefaultValue="user_id" Name="user_id" 
                                            SessionField="User_id" Type="Int32" />--%>
                                <%--    </SelectParameters>
                                </asp:SqlDataSource>

</DIV>--%>
               
                <asp:TextBox ID="txtCAttention" runat="server" Height="22px" Width="250px" ></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        
        <tr>
        <td></td>
        <td align="right">
         <asp:Label ID="Label10" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Client Email ID" Font-Bold="true" ></asp:Label>
        </td>
        <td> <b style="color:Red;"> *</b></td>
        <td ><asp:TextBox ID="txt_emailid" runat="server" Width="248px"  ></asp:TextBox>
         <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                       ControlToValidate="txt_emailid" ErrorMessage="Enter proper email ID" 
                       ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                       ValidationGroup="1" ForeColor="Red"></asp:RegularExpressionValidator>
                   <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                       ControlToValidate="txt_emailid" ErrorMessage="Enter EmailID" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
        
        </td>
        <td></td>
        </tr>
        <tr>
        <td></td>
        <td align="right">
        <asp:Label ID="Label11" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Mobile Number" Font-Bold="true" ></asp:Label>
        </td>
        <td></td>
        <td ><asp:TextBox ID="txt_mobileno" runat="server" Width="130px" MaxLength="12" ></asp:TextBox>
         <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers" TargetControlID="txt_mobileno">
                </cc1:FilteredTextBoxExtender>
        </td>
        <td></td>
        </tr>

        <tr>
            <td >
                </td>
            <td align="right">
                
                 <asp:Label ID="Label3" runat="server" Text=" Address  " 
                     Font-Names="Verdana" Font-Size="12px" Font-Bold="true"></asp:Label></td>
            <td  align="right">
                &nbsp;</td>
            <td  >
              <asp:TextBox ID="txtCAddress" runat="server" Height="44px" MaxLength="250"
                    TextMode="MultiLine" Width="250px" ></asp:TextBox>
                    
                    </td>
            <td >
                &nbsp;</td>
        </tr>
        <tr>
            <td >
                &nbsp;</td>
            <td align="right">
                <asp:Label ID="Label8" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text=" City  " Font-Bold="true"></asp:Label>
            </td>
            <td align="right" >
                &nbsp;</td>
            <td  >
                <asp:TextBox ID="txtCity" runat="server" Height="22px" MaxLength="250" 
                     Width="150px"></asp:TextBox>
                     &nbsp;&nbsp;
                 
            </td>
            <td >
                &nbsp;</td>
        </tr>
        <tr>
        <td></td> <td align="right" ><asp:Label ID="Label5" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Pincode  " Font-Bold="true"></asp:Label>
                    </td>
                     <td></td> 
                     <td> <asp:TextBox ID="txtPin" runat="server" Height="22px" MaxLength="10"
                     Width="100px" ></asp:TextBox> 
                       <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers" TargetControlID="txtPin">
                </cc1:FilteredTextBoxExtender>
                         </td> <td></td>
        </tr>
        <tr>
            <td >
                &nbsp;</td>
                <td align="right">
                     <asp:Label ID="Label9" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="State/Province" Font-Bold="true" ></asp:Label>
                </td>
            <td  align="right">
                &nbsp;</td>
            <td  >
            <asp:TextBox ID="txtState" runat="server" Height="22px" MaxLength="250"
                     Width="150px" ></asp:TextBox>
                     &nbsp;&nbsp;
                    
               
           </td>
            <td >
                &nbsp;</td>
        </tr>
         <tr>
        <td></td> <td align="right" ><asp:Label ID="Label6" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Country" Font-Bold="true"></asp:Label>
                    </td>
                     <td></td> 
                     <td>  <asp:TextBox ID="txtCountry" runat="server" Height="22px" MaxLength="200"
                     Width="100px"></asp:TextBox>         </td> <td></td>
        </tr>
<%--        added for GST no 101219--%>
         <tr>
        <td></td> <td align="right" ><asp:Label ID="Label7" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="GST No" Font-Bold="true"></asp:Label>
                    </td>
                     <td></td> 
                     <td>  <asp:TextBox ID="txtgst" runat="server" Height="22px" MaxLength="200"
                     Width="100px"></asp:TextBox>         </td> <td></td>
        </tr>

        <%--added for remark 111219--%>
         <tr>
            <td >
                </td>
            <td align="right">
                
                 <asp:Label ID="Label12" runat="server" Text=" Remark  " 
                     Font-Names="Verdana" Font-Size="12px" Font-Bold="true"></asp:Label></td>
            <td  align="right">
                &nbsp;</td>
            <td  >
              <asp:TextBox ID="Remark" runat="server" Height="44px" MaxLength="250"
                    TextMode="MultiLine" Width="250px" ></asp:TextBox>
                    
                    </td>
            <td >
                &nbsp;</td>
        </tr>
        
              
        <tr>
            <td >
                &nbsp;</td>
            <td  align="center">
                &nbsp;</td>
            <td  align="center">
                &nbsp;</td>
            <td >
            <br/>
                <asp:Button ID="btnSave" runat="server" CssClass="myButton" 
                         OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
                                UseSubmitBehavior="false" onclick="btnSave_Click" Text="Submit" ValidationGroup="1" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                             
                     <asp:Button ID="btnShowAll" runat="server" CssClass="myButton" 
                       
                                UseSubmitBehavior="false" onclick="btnShowAll_Click" Text="Show All Client" />
               <%--  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <%--   this button is for Add Client --%>     
                    <%-- <asp:Button ID="Button1" runat="server" CssClass="myButton" 
                       
                                UseSubmitBehavior="false" onclick="btnAddperson_Click" Text="Add Person" />--%>
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <%--this button is for Show client--%>
                             
                    <%-- <asp:Button ID="Button2" runat="server" CssClass="myButton" 
                       
                                UseSubmitBehavior="false" onclick="btnShowAllperson_Click" Text="Show All Person" />--%>
                <asp:Label ID="lblTest" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="Red"></asp:Label>
                    <br />
                     <asp:Label ID="lblInsert" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="Red"></asp:Label>
                    <br /><b> <a style="color:Red;  padding-right:20px; float:right; ">* Indicates Compulsory Fields</a></b>
                </td>
            <td>
                &nbsp;</td>
        </tr>
 
 
        <tr>
            <td >
                &nbsp;</td>
            <td >
                &nbsp;</td>
            <td >
                &nbsp;</td>
            <td >
               
            </td>
            <td>
   
                &nbsp;</td>
        </tr>
       
    </table>
</asp:Panel>

<%--<table >
<tr>
<td>--%>
<%--  <asp:Button ID="btn_popup" runat="server" style="display:none;" Text="Popup" />
                <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" 
                    CancelControlID="btn_Close1" PopupControlID="Panel4" 
                    TargetControlID="btn_popup">
                </cc1:ModalPopupExtender>--%>
                <asp:Panel ID="Panel4" runat="server" CssClass="contactpanelcss" Width="95%">
                
           
         
                    <div style="height:350px">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"  AllowPaging="true" 
                            CellPadding="4"  ForeColor="#333333" GridLines="Both" Font-Names="Verdana" Font-Size="12px" 
                            onrowcancelingedit="CancelEdit" onrowediting="EditCustomer" 
                            onrowupdating="UpdateCustomer" 
                            onpageindexchanging="GridView1_PageIndexChanging">
                        <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                            <Columns>
                              
                                <%--fIRST record--%>
                                <asp:TemplateField HeaderText="Code" ItemStyle-Width="50px">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblCCode" runat="server" Text='<%# Eval("CCode")%>' Width="50px"></asp:Label>
                                        </center>
                                    </ItemTemplate>
                                  
                                </asp:TemplateField>
                                <%-- 2nd record--%>
                                <asp:TemplateField HeaderText="Name of Company " ItemStyle-Width="250px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lblCName" runat="server" Text='<%# Eval("CName")%>' 
                                                Width="250px"></asp:Label>
                                      
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        
                                            <asp:TextBox ID="txtCName" runat="server" Text='<%# Eval("CName")%>' 
                                                TextMode="MultiLine" Width="250px"></asp:TextBox>
                                       
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>
                                <%--  3rd record--%>
                                <asp:TemplateField HeaderText="Address" ItemStyle-Width="220px">
                                    <ItemTemplate>
                                        
                                            <asp:Label ID="lblCAddr" runat="server" Text='<%# Eval("CAddr")%>' 
                                                Width="170px"></asp:Label>
                                       
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                       
                                            <asp:TextBox ID="txtCAddr" runat="server" Text='<%# Eval("CAddr")%>' 
                                                Width="160px"></asp:TextBox>
                                        
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>
                                
                                  <%--  3rd record--%>
                                <asp:TemplateField HeaderText="City & Pincode" ItemStyle-Width="150px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lblcitypincode" runat="server" Text='<%# Eval("citypincode")%>' 
                                                Width="150px"></asp:Label>
                                     
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                       
                                            <asp:TextBox ID="txtcitypincode" runat="server" Text='<%# Eval("citypincode")%>' 
                                                Width="140px"></asp:TextBox>
                                       
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>
                                
                                   <%--  3rd record--%>
                                <asp:TemplateField HeaderText="State & Country" ItemStyle-Width="180px">
                                    <ItemTemplate>
                                        
                                            <asp:Label ID="lblstateCountry" runat="server" Text='<%# Eval("stateCountry")%>' 
                                                Width="170px"></asp:Label>
                                       
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        
                                            <asp:TextBox ID="txtstateCountry" runat="server" Text='<%# Eval("stateCountry")%>' 
                                                Width="170px"></asp:TextBox>
                                       
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>
                                
                                <%-- 4th record--%>
                                <asp:TemplateField HeaderText="Person Name" ItemStyle-Width="150px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lblCAttention" runat="server" Text='<%# Eval("CAttention")%>' 
                                                Width="150px"></asp:Label>
                                       
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                       
                                            <asp:TextBox ID="txtCAttention" runat="server" Text='<%# Eval("CAttention")%>' 
                                                Width="165px"></asp:TextBox>
                                       
                                    </EditItemTemplate>
                              
                                </asp:TemplateField>
                                
                                
                                <%--   5th record--%>
                                <asp:TemplateField HeaderText="Client Email ID" ItemStyle-Width="200px">
                                    <ItemTemplate>
                                      
                                            <asp:Label ID="lbl_emailid" runat="server" 
                                                Text='<%# Eval("Emailid")%>' Width="180"></asp:Label>
                                        
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                       
                                            <asp:TextBox ID="txt_emailid" runat="server" 
                                                Text='<%# Eval("Emailid")%>' Width="180px"></asp:TextBox>
                                       
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>
                                <%--  End entry of records--%>
                                
                                <%--   5th record--%>
                                <asp:TemplateField HeaderText="Mobile No." ItemStyle-Width="100px">
                                    <ItemTemplate>
                                      
                                            <asp:Label ID="lbl_mobileno" runat="server" 
                                                Text='<%# Eval("Mobile_no")%>' Width="100px"></asp:Label>
                                      
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                       
                                            <asp:TextBox ID="txt_mobileno" runat="server" 
                                                Text='<%# Eval("Mobile_no")%>' Width="90px"></asp:TextBox>
                                     
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>

                              <%--  adda Gst No 101219--%>
                                 <asp:TemplateField HeaderText="Gst No." ItemStyle-Width="100px">
                                    <ItemTemplate>
                                      
                                            <asp:Label ID="lbl_GstNo" runat="server" 
                                                Text='<%# Eval("GstNo")%>' Width="100px"></asp:Label>
                                      
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                       
                                            <asp:TextBox ID="txtgstno" runat="server" 
                                                Text='<%# Eval("GstNo")%>' Width="90px"></asp:TextBox>
                                     
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>

                               <%-- added for remark 111219--%>

                                 <asp:TemplateField HeaderText="Remark." ItemStyle-Width="100px">
                                    <ItemTemplate>
                                      
                                            <asp:Label ID="Remark" runat="server" 
                                                Text='<%# Eval("Remark")%>' Width="100px"></asp:Label>
                                      
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                       
                                            <asp:TextBox ID="Remark" runat="server" 
                                                Text='<%# Eval("Remark")%>' Width="90px"></asp:TextBox>
                                     
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>



                                <%--  End entry of records--%>
                              <asp:CommandField ShowEditButton="True" ItemStyle-ForeColor="Blue" ItemStyle-Width="60px" /> 
                                <asp:TemplateField  ItemStyle-Width="60px">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkRemove" runat="server" 
                                            CommandArgument='<%# Eval("CCode")%>' OnClick="DeleteCustomer" 
                                            OnClientClick="return confirm('Do you want to delete?')" Text="Delete">
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                   </asp:TemplateField>
                               
                            </Columns>
                              <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" CssClass="cssPager" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                            
                        </asp:GridView>
                    </div>
                <%--    <asp:Button ID="btn_Close1" runat="server"   CssClass="myButton"
                        Font-Size="Medium" Text="Close" />--%>
                </asp:Panel>

<%--</td>

</tr>
</table>--%>


</ContentTemplate>
<%--<Triggers>
<asp:AsyncPostBackTrigger ControlID="insert_time" EventName="insert_time_Tick" />
</Triggers>--%>
</asp:UpdatePanel>

</asp:Content>

