<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_AreaMaster, App_Web_susspz30" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


  <style type="text/css">
        .style2
       {
            width: 100%;
            margin-left: 0px;
        }
     
    
      		 .shadow_five444 
      		 {
        background-color: #FFF0DB;
        -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-right:10px;
        margin-left:3px;
        margin-bottom: 10px;
    }
     .regular-checkboxgrid1 {
	-webkit-appearance: none;
	background-color: #fafafa;
	border: 1px solid #cacece;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
	padding: 9px;
	border-radius: 3px;
	display: inline-block;
	position: relative;
	width: 110px;
	overflow:auto;
	height:100px;
            top: 0px;
            left: 0px;
        }
        .shadow_five1 {
            background-color: #F2FFC6;
            -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;
        }
        .lb
    {
            clear: left;
            margin: 5px 2px 0 0;
            text-align: right;
            font-size: 14px;
            color: #660033;
            text-transform: capitalize;
            text-shadow: 0px 0.5px 0px #444;
            font-weight:normal;
            font-family:Eurostile LT;
        }
    .Label
    {
 /* IE10 Consumer Preview */ 
background-image: -ms-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Mozilla Firefox */ 
background-image: -moz-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Opera */ 
background-image: -o-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Webkit (Safari/Chrome 10) */ 
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #FFCE47), color-stop(1, #F2813F));

/* Webkit (Chrome 11+) */ 
background-image: -webkit-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* W3C Markup, IE10 Release Preview */ 
background-image: linear-gradient(to top, #FFCE47 0%, #F2813F 100%);
}
       .modelbackground
        {
        	background-color:Gray;
	        filter:alpha(opacity=70);
	        opacity:0.7;
        }
        .categorypanel
        {
        	background-color:White;
        	border:2px solid black;
        		}
          .contactpanelcss
        {
        	width:80%;
        	margin:0px;
        	background-color:White;
        	border:10px solid ActiveBorder;
        	padding:10px;
        	margin-top:50px;
        	     	   	
        }   
     
        .style3
        {
            width: 339px;
        }
          .myButtonChangeColor {
        
        -moz-box-shadow: 3px 4px 0px 0px #A9A9A9;
        -webkit-box-shadow: 3px 4px 0px 0px #A9A9A9;
        box-shadow: 3px 4px 0px 0px #A9A9A9;
        
        background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #D3D3D3), color-stop(1, #D3D3D3));
        background:-moz-linear-gradient(top, #D3D3D3 5%, #D3D3D3 100%);
        background:-webkit-linear-gradient(top, #D3D3D3 5%, #D3D3D3 100%);
        background:-o-linear-gradient(top, #D3D3D3 5%, #D3D3D3 100%);
        background:-ms-linear-gradient(top, #D3D3D3 5%, #D3D3D3 100%);
        background:linear-gradient(to bottom, #D3D3D3 5%, #D3D3D3 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#D3D3D3', endColorstr='#D3D3D3',GradientType=0);
        
        background-color:#D3D3D3;
        
        -moz-border-radius:5px;
        -webkit-border-radius:5px;
        border-radius:5px;
        
        border:1px solid #A9A9A9;
        
        display:inline-block;
        color:#BDB76B;
        font-family:arial;
        font-size:17px;
        font-weight:bold;
        padding:5px 5px;
        text-decoration:none;
        
        text-shadow:0px 1px 0px #528ecc;
       cursor:pointer;
        
    }
     
        .style4
        {
            height: 31px;
        }
             
        .style6
        {
            width: 10px;
        }
        .style7
        {
            height: 31px;
            width: 10px;
        }
        .style8
        {
            width: 404px;
        }
        .style9
        {
            height: 31px;
            width: 404px;
        }
     
        .style12
        {
            width: 339px;
            height: 7px;
        }
        .style13
        {
            width: 404px;
            height: 32px;
        }
        .style14
        {
            width: 10px;
            height: 32px;
        }
        .style15
        {
            width: 339px;
            height: 32px;
        }
     
        .style16
        {
            width: 409px;
        }
        .style17
        {
            height: 31px;
            width: 409px;
        }
        
        
        
        
        .autocomplete_completionListElement 
{  
	visibility : hidden;
	margin : 0px!important;
	background-color : inherit;
	color : windowtext;
	border : buttonshadow;
	border-width : 1px;
	border-style : solid;
	cursor : 'default';
	overflow : auto;
	height : 180px;
    text-align : left; 
    list-style-type : none;
}
.autocomplete_highlightedListItem
{
	background-color: #ffff99;
	color: black;
	padding: 0px;
	width:auto;
}

/* AutoComplete item */

.autocomplete_listItem 
{
	background-color : Yellow;
	color : Red;
	padding : 0px;
	width:auto;
}
 
     
  </style>
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <link href="../css/ForTextBox.css" rel="stylesheet" type="text/css" />
    <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
    <link href="../css/Widthset.css" rel="stylesheet" type="text/css" />
    
<%--<div style="float:right;">
          <div id="inner-block" class="help_div">
       <div style="font-family:Verdana;font-size:12px;">
                     
                  <p align="left"  style="font-weight:bold;width:300px;margin-left:10px; "  > 
                 Help - Area Master
                     </p>                 
                 <ul  >                            
                    <li style="">        
                     For Area Master, There are two sections: Domestic, and International.  
                     </li>
                     <li>
                   For Domestic (India) we have provided list of States and Districts of each State.  
                    You can create the region structure by allocating States to each Region under ‘Domestic’. 
                     The Districts of each state are automatically allotted internally.  For each state, and for each District, there will be suitable code generated. 
                      You can ‘SELECT All’ for States and Districts, or ‘Deselect’ as required.  You will need to add Cities of each District.
                        Some major cities can be added initially. Later on as and when needed other cities can be added.
 </li>
 
 <li>
For International Section, You will allot Countries to Continents as per your arrangement of markets.  This will create automatically the Area Master.
 </li>
          
                       </ul> 
                      </div>
                  </div> 
</div> --%>



   <asp:UpdateProgress ID="UpdateProgress2" 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="98%" CssClass="shadow_five444">  <%--BorderStyle="Groove"--%>


    <table class="style2" width="100%">
    
      <tr>
            <td align="justify" valign="middle" colspan="5">
               <%-- <asp:Label ID="Label5" runat="server" Text="ADD Area/Region" CssClass="Label" 
                    Height="50px" Width="100%" ForeColor="White" Font-Bold="True" 
                    Font-Size="X-Large"></asp:Label>--%>
                    
                     <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;">
   ADD Area/Region
      </p>
           </div>
                  </td>
        </tr>
    
    
       
        <tr id="ddd" runat="server" visible="false">
        <td align="right" class="style8">
            &nbsp;</td>
        <td class="style6">
        
            &nbsp;</td>
        <td align="left" class="style16">
            <asp:RadioButton ID="rdbdomestic" runat="server" Checked="True" 
                Font-Bold="True" Font-Size="16px" ForeColor="#990033" GroupName="3" 
                Text="Domestic" oncheckedchanged="rdbdomestic_CheckedChanged" AutoPostBack="true" />
            &nbsp;&nbsp;
            <asp:RadioButton ID="rdbinternational" runat="server" Font-Bold="True" 
                Font-Size="16px" ForeColor="#990033" GroupName="3" Text="International" 
                oncheckedchanged="rdbinternational_CheckedChanged" AutoPostBack="true" />
            </td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        
        </tr>
        
    
              
                <tr>
                    <td colspan="5" >
                        <br />
                        
                        I - <b style="color:#007500;">Assign region & its states.</b> 
                        (Select Region & its States. Districts of States are added automatically.)
                        <br />
                      
                        
                        II -  <b style="color:#007500;">Add Cites to Districts</b> (Click "Add" in front of the District.) 
                           <br />  <br /> 
                    </td>
                </tr>
                <tr ID="trCountry" runat="server" visible="false">
                    <td align="right" class="style9">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="Label2" runat="server" CssClass="lb" Font-Names="Verdana" 
                            Font-Size="14px" Text="Country"></asp:Label>
                    </td>
                    <td class="style7">
                        <a style="color:Red; vertical-align:middle; font-size: larger;">*</a>
                    </td>
                    <td align="left" class="style17">
                        <asp:TextBox ID="txtCountry" runat="server" AutoPostBack="True" Height="10px" 
                            Width="150px" ReadOnly="true"></asp:TextBox>
                        <asp:TextBox ID="txtCountryid" runat="server" AutoPostBack="True" Height="16px" 
                            Visible="false" Width="64px"></asp:TextBox>
                    </td>
                </tr>
                
                <tr ID="trregion" runat="server" visible="false">
                    <td align="right" class="style9">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="Label15" runat="server" CssClass="lb" Font-Names="Verdana" 
                            Font-Size="14px" Text="Area/Region Name"></asp:Label>
                    </td>
                    <td class="style7">
                        <a style="color:Red; vertical-align:middle; font-size: larger;">*</a>
                    </td>
                    <td align="left" class="style17">
                        <asp:DropDownList ID="ddlArea" runat="server" AppendDataBoundItems="true" 
                            AutoPostBack="true" Height="20px" 
                            onselectedindexchanged="ddlArea_SelectedIndexChanged" widht="150px">
                        </asp:DropDownList>
                        <asp:TextBox ID="txtAreaCode" runat="server" AutoPostBack="True" Height="16px" 
                            Visible="false" Width="64px"></asp:TextBox>
                     
                        <asp:Label ID="lblArea" runat="server" Font-Names="Verdana" Font-Size="14px" 
                            ForeColor="#FF3300" Visible="false"></asp:Label>
                            
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator_domistic" runat="server" ControlToValidate="ddlArea" InitialValue="-Select-" ErrorMessage="Select Area/Region Name" ValidationGroup="1"></asp:RequiredFieldValidator>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator_international" runat="server" ControlToValidate="ddlArea" InitialValue="-Select-" ErrorMessage="Select Continent Name" ValidationGroup="1"></asp:RequiredFieldValidator>

                    </td>
                    <td class="style4" colspan="2">
                        &nbsp;&nbsp;
                      
                    </td>
                </tr>
                
                <tr ID="trregion1" runat="server" visible="false">
                    <td align="right" class="style9">
                        <asp:Label ID="lblRegion" runat="server" CssClass="lb" Font-Names="Verdana" 
                            Font-Size="14px" Text="Region"></asp:Label>
                    </td>
                    <td class="style7">
                        <a style="color:Red; vertical-align:middle; font-size: larger;">*</a>
                    </td>
                    <td align="left" class="style17">
                        <asp:TextBox ID="txtRegion1" runat="server" AutoPostBack="True" Height="10px" 
                            Width="150px" ontextchanged="txtRegion1_TextChanged"></asp:TextBox>
                            
                             <div id="divwidth1"></div>
                       
                         <cc1:AutoCompleteExtender ID="autotest" runat="server" TargetControlID="txtRegion1" ServiceMethod="GetRegion_International"
                        ServicePath="~/Admin/Auto_complete_InRegion_name.asmx" MinimumPrefixLength="1"
    EnableCaching="true" CompletionSetCount="1" CompletionInterval="1000"  
    CompletionListElementID="divwidth1"
     CompletionListCssClass="AutoExtender"
      CompletionListItemCssClass="AutoExtenderList"
    CompletionListHighlightedItemCssClass="AutoExtenderHighlight" > </cc1:AutoCompleteExtender>
                            
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRegion1" ErrorMessage="Select Region" ValidationGroup="1"></asp:RequiredFieldValidator>
                        
                        
                        <asp:TextBox ID="txtRegionCode" runat="server" AutoPostBack="True" Height="10px" Visible="false" 
                            ></asp:TextBox><br />
                        &nbsp;<asp:Label ID="lblregionnote" runat="server" Font-Names="Verdana" Font-Size="13px" 
                            ForeColor="#007500" Text="Please enter name of region and 'Submit'"
                            ></asp:Label>
                       
                    </td>
                    <td class="style4" colspan="2">
                        &nbsp;&nbsp;
                    </td>
                </tr>
                <tr ID="trdbcountry" runat="server" visible="false">
                    <td align="right" class="style8">
                        <asp:Label ID="Label16" runat="server" CssClass="lb" Font-Names="Verdana" 
                            Font-Size="14px" Text="Country"></asp:Label>
                    </td>
                    <td class="style6">
                        &nbsp;</td>
                    <td align="left" class="style16">
                      
                     <%--<asp:DropDownList ID="ddlCountry" runat="server" AppendDataBoundItems="true" 
                            AutoPostBack="true" Height="20px" 
                             widht="150px" onselectedindexchanged="ddlCountry_SelectedIndexChanged1">
                        </asp:DropDownList>--%>
                        <asp:CheckBoxList ID="ddlCountry" runat="server" CssClass="regular-checkboxnew">
                    
                   </asp:CheckBoxList>
                         <asp:TextBox ID="txtCountryCode" runat="server" AutoPostBack="True" Height="16px" 
                            Visible="false" Width="64px"></asp:TextBox>
                            
<%--                       <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddlCountry" InitialValue="-Select-" ErrorMessage="Select Country name" ValidationGroup="1"></asp:RequiredFieldValidator>
--%>                   
                    
                    <br />
                    </td>
                    <td colspan="2">
                        &nbsp;&nbsp; &nbsp;</td>
                </tr>
                
                
                <tr ID="trdbState" runat="server" visible="false">
                    <td align="right" class="style8">
                        <asp:Label ID="Label17" runat="server" CssClass="lb" Font-Names="Verdana" 
                            Font-Size="14px" Text="State"></asp:Label>
                    </td>
                    <td class="style6">
                        <a style="color:Red; vertical-align:middle; font-size: larger;">*</a></td>
                    <td align="left" class="style16">
                     
                     
                        <%--<asp:DropDownList ID="ddlState" runat="server" AppendDataBoundItems="true" 
                            AutoPostBack="true" Height="20px" widht="150px" 
                            >
                        </asp:DropDownList>--%>
                         <asp:CheckBoxList ID="ddlState" runat="server" CssClass="regular-checkboxnew">
                    
                </asp:CheckBoxList> 
                &nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="txtstatename1" runat="server" Font-Names="Verdana" Font-Size="14px" 
                             ForeColor="red" Visible="false"></asp:Label>
                            
<%--    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlState" InitialValue="-Select-" ErrorMessage="Select State Name" ValidationGroup="1"></asp:RequiredFieldValidator>
--%>
                        <br />
                    </td>
                    <td colspan="2">
                        &nbsp;&nbsp;
                      
                    </td>
                </tr>
                
             
                <tr ID="trAddRegion" runat="server" visible="false">
                    <td align="right" class="style8">
                        <asp:Label ID="lblAddRegion" runat="server" CssClass="lb" Font-Names="Verdana" 
                            Font-Size="14px" Text="Area/Region Name"></asp:Label>
                    </td>
                    <td class="style6">
                      </td>
                    <td align="left" class="style16">
                 
                     <asp:TextBox ID="txtAddRegion" runat="server" AutoPostBack="True" Height="10px" 
                            Width="150px" ReadOnly="true"></asp:TextBox>
                            <asp:TextBox ID="txtAddRegionId" runat="server" AutoPostBack="True" Height="16px" 
                            Visible="false" Width="40px"></asp:TextBox>
                        <br />
                    </td>
                    <td colspan="2">
                        &nbsp;&nbsp;
                     
                    </td>
                </tr>
                
                <tr ID="trAddState" runat="server" visible="false">
                    <td align="right" class="style8">
                        <asp:Label ID="lblAddState" runat="server" CssClass="lb" Font-Names="Verdana" 
                            Font-Size="14px" Text="State"></asp:Label>
                    </td>
                    <td class="style6">
                      </td>
                    <td align="left" class="style16">
                 
                     <asp:TextBox ID="txtAddState" runat="server" AutoPostBack="True" Height="10px" 
                            Width="150px" ReadOnly="true"></asp:TextBox>
                            
                              <asp:TextBox ID="txtAddStateId" runat="server" AutoPostBack="True" Height="16px" 
                             Visible="false" Width="40px"></asp:TextBox>
                              <asp:TextBox ID="txtAddDistid" runat="server" AutoPostBack="True" Height="16px" 
                             Visible="false" Width="40px"></asp:TextBox>
                        <br />
                    </td>
                    <td colspan="2">
                        &nbsp;&nbsp;
                      
                    </td>
                </tr>
                
                <tr ID="trAddDistricts" runat="server" visible="false">
                    <td align="right" class="style8">
                        <asp:Label ID="Label1" runat="server" CssClass="lb" Font-Names="Verdana" 
                            Font-Size="14px" Text="Districts"></asp:Label>
                    </td>
                    <td class="style6">
                      </td>
                    <td align="left" class="style16">
                 
                     <asp:TextBox ID="txtAddDistricts" runat="server" AutoPostBack="True" Height="10px" 
                            Width="150px" ReadOnly="true"></asp:TextBox>
                            
                            
                        <br />
                    </td>
                    <td colspan="2">
                        &nbsp;&nbsp;
                    
                    </td>
                </tr>
                
                   <tr ID="trAddCities" runat="server" visible="false">
                    <td align="right" class="style8">
                        <asp:Label ID="lblCities" runat="server" CssClass="lb" Font-Names="Verdana" 
                            Font-Size="14px" Text="Cities"></asp:Label>
                    </td>
                    <td class="style6">
                        <a style="color:Red; vertical-align:middle; font-size: larger;">*</a></td>
                    <td align="left" class="style16">
                   
                     <asp:TextBox ID="txtCity" runat="server" AutoPostBack="True" Height="10px" 
                            Width="150px"></asp:TextBox>
                            
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCity" ErrorMessage="Enter City Name." ValidationGroup="1"></asp:RequiredFieldValidator>
                        <br />
                    </td>
                    <td colspan="2">
                        &nbsp;&nbsp;
                      
                    </td>
                </tr>
             
                
                <tr>
                    <td align="right" class="style8">
                        &nbsp;</td>
                    <td class="style6">
                        &nbsp;</td>
                    <td align="left" class="style16">
                        <asp:Button ID="btnSubmit" runat="server" CssClass="myButton" 
                                OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
                                UseSubmitBehavior="false" onclick="btnSubmit_Click" Text="Submit" ValidationGroup="1" Width="100px" />
                           
                        &nbsp;&nbsp;
                        <asp:Button ID="btnShow" runat="server" CssClass="myButton" 
                                 OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
                                UseSubmitBehavior="false"  onclick="btnShow_Click" Text="Show All" Width="110px" />
                        <br />
                    

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


                         var prm = Sys.WebForms.PageRequestManager.getInstance();
                         prm.add_endRequest(function() {
                             $(document).ready(function() {
                                 $("span[id$='lblInsert']").delay(7000).fadeOut(7000, function() {
                                     //                         $(this).innerHTML("");
                                 });
                             });
                         });

                 </script>
<br />
                        <asp:Label ID="lblInsert" runat="server" Font-Names="Verdana" Font-Size="13px" 
                            ForeColor="#FF3300" Font-Bold="true"></asp:Label>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="lblTest" runat="server" Font-Names="Verdana" Font-Size="13px" 
                            ForeColor="Red" Font-Bold="true"></asp:Label>
                    </td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right" class="style13">
                    </td>
                    <td class="style14">
                    
                    </td>
                    <td align="left" class="style15" colspan="3">
                        <b><a style="color:Red; height: 29px; font-family:Verdana;font-size:13px;">* 
                        Indicates Compulsory Fields</a></b> </td>
                      
                </tr>
         
       
       
    
       
       
          
          
          </table>
          
          <table class="style2" width="100%">
         <tr>
         
         <td align="center">
             <asp:Panel ID="pnl_search_cust" runat="server" Visible="false" CssClass="shadow_five21" Width="90%" Height="80%">
         
        <b style="text-align:left">Select Search Type:</b>
          <a style="color:Red;">*</a>
           <asp:DropDownList ID="ddl_search_value" runat="server" AutoPostBack="True" Font-Bold="true" 
               
               Width="80px" onselectedindexchanged="ddl_search_value_SelectedIndexChanged" >
           <asp:ListItem Value="-Select-">-Select-</asp:ListItem>
               <asp:ListItem Value="1">Area</asp:ListItem>
                 <asp:ListItem Value="2">State</asp:ListItem>
                 <asp:ListItem Value="3">District</asp:ListItem>
                 <%-- <asp:ListItem Value="4">City</asp:ListItem>--%>
                   <asp:ListItem Value="4">Continent</asp:ListItem>
                    <asp:ListItem Value="5">Country</asp:ListItem>
                      
           </asp:DropDownList>
           
           <asp:Label ID="lbl_msg_heading" runat="server" Text="" Font-Bold="true"></asp:Label><a runat="server" id="star_red" style="color:Red;" visible="false">*</a>
      <%--    <asp:TextBox ID="txt_search_city_state_area"  runat="server" Width="100px" Visible="false"></asp:TextBox>--%>
          
          
             <asp:DropDownList ID="ddl_arearegin_name_list" runat="server" 
                  AppendDataBoundItems="true" Visible="false" AutoPostBack="True" Width="80px"
                  onselectedindexchanged="ddl_arearegin_name_list_SelectedIndexChanged">
           </asp:DropDownList>
           
           
          <asp:Label ID="lblsublable" runat="server" Visible="false" Text="" Font-Bold="true"></asp:Label>
             
             <asp:DropDownList ID="ddl_district" runat="server" AppendDataBoundItems="true" 
                     Visible="false" Width="100px" AutoPostBack="true" 
                     onselectedindexchanged="ddl_district_SelectedIndexChanged">
           </asp:DropDownList> 
           
<%--           <cc1:TextBoxWatermarkExtender ID="txtState_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="txt_search_city_state_area" WatermarkText="Enter area" EnableViewState ="true" BehaviorID ="flicker"></cc1:TextBoxWatermarkExtender>
--%>                

           

           <asp:Button ID="btn_search" runat="server" Text="Search All" 
               CssClass="myButton" Height="28px" Width="90px" ValidationGroup="5"
                  onclick="btn_search_Click" Visible="false"/>
               
           &nbsp;&nbsp;<asp:Button ID="btnexport" runat="server" CssClass="myButton" Height="28px"
                 OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
                                UseSubmitBehavior="false" Text="Search Active Areas"  Width="175px" onclick="btnexport_Click" />
               <asp:HiddenField ID="PageCount_val" runat="server" />
         <%--  &nbsp;&nbsp;&nbsp;    <asp:Label ID="lbl_no_search" runat="server" Text="" ForeColor="Red"></asp:Label>--%>
          
           <asp:Label ID="lbl_searchcount" runat="server" Text="" style="color:Green;font-family:Verdana;font-size:14px;font-weight:bold;"></asp:Label>
         <br />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddl_search_value" InitialValue="-Select-"  ErrorMessage="Select Type" ValidationGroup="5"> </asp:RequiredFieldValidator>
               
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

               <%--   <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_search_city_state_area"  ErrorMessage="Enter search string" ValidationGroup="5">
               </asp:RequiredFieldValidator>--%>
               
                  &nbsp;&nbsp;&nbsp;
                  <asp:HiddenField ID="hf_total_row_count" runat="server" />
              <%--    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddl_type_activity" InitialValue="-Select-"  ErrorMessage="Select Type/Activity." ValidationGroup="5">
               </asp:RequiredFieldValidator>--%></asp:Panel>
         </td>
         </tr>
          
          
          <tr ID="trregiongrid" runat="server" visible="false" >
                  
                    <td align="center">
                        <asp:HiddenField ID="hf_state_ids" runat="server" />
                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                            PageSize="50" AllowPaging="true"
                            PagerStyle-CssClass="paging"
                            CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black" 
                            GridLines="Both" ValidationGroup="1" Width="80%" 
                            onrowdatabound="GridView2_RowDataBound"  onpageindexchanging="GridView2_PageIndexChanging" 
                             >
                            <Columns>
                             <asp:TemplateField Visible="false">
                                     <ItemTemplate>
                                       <center>
                                        <asp:Label ID="lblgridAID" runat="server" Text='<%# Eval("AreaID")%>' Width="50px"></asp:Label>

                                        <asp:Label ID="lblgridSID" runat="server" Text='<%# Eval("SID")%>' Width="50px"></asp:Label>
                                        <asp:Label ID="lblgridDID" runat="server" Text='<%# Eval("DID")%>' Width="50px"></asp:Label>

                                    </center>
                                    </ItemTemplate>
                             </asp:TemplateField>
                                <asp:TemplateField HeaderText="Region Code" >
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblAreacode5" runat="server" Text='<%# Eval("SubRegionCode")%>' 
                                                Width="50px" ></asp:Label>
                                               
                                        </center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="Area Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblAName5" runat="server" Text='<%# Eval("AreaName")%>' 
                                            Width="50px"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="StateCode" ItemStyle-Width="60px">
                                    <ItemTemplate>
                                        <asp:Label ID="lblSubRegionName" runat="server" Text='<%# Eval("StateCode")%>' 
                                            Width="150px"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle Width="60px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="State">
                                    <ItemTemplate>
                                        <asp:Label ID="lblstatename2" runat="server" Text='<%# Eval("StateName")%>' 
                                            Width="150px"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                
                                   <asp:TemplateField HeaderText="DistrictCode" ItemStyle-Width="60px">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgridDistrictCode" runat="server" Text='<%# Eval("DistrictsCode")%>' 
                                            Width="150px"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle Width="60px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="District">
                                    <ItemTemplate>
                                        <asp:Label ID="lblgridDistrictName" runat="server" Text='<%# Eval("DistrictName")%>' 
                                            Width="150px"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                <asp:CommandField ShowEditButton="false" ValidationGroup="k" />
                            </Columns>
                              <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                                <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                        </asp:GridView>
                    </td>
                </tr>
           <tr ID="trinternationalregiongrid" runat="server" visible="false" align="center">
                
                    <td>
                        <asp:GridView ID="GridView5" runat="server" AutoGenerateColumns="False" 
                            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                            CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black" 
                            GridLines="Both" ValidationGroup="1" Width="80%" >
                            <Columns>
                                  <asp:TemplateField Visible="false">
                            <ItemTemplate>
                                <center>
                                    <asp:Label ID="lblinterRID" runat="server" Text='<%# Eval("RID")%>' Width="50px"></asp:Label>
                                    <asp:Label ID="lblinterAID" runat="server" Text='<%# Eval("AID")%>' Width="50px"></asp:Label>
                                    
                                    </center>
                                    </ItemTemplate>
                                    </asp:TemplateField>
                                <asp:TemplateField HeaderText="Continent Code" >
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblAreacode1" runat="server" Text='<%# Eval("SubRegionCode")%>' 
                                                Width="50px" ></asp:Label>
                                               
                                        </center>
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                <asp:TemplateField HeaderText="Continent Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblAName1" runat="server" Text='<%# Eval("AreaName")%>' 
                                            Width="50px"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField HeaderText="Region Code" ItemStyle-Width="60px">
                                    <ItemTemplate>
                                        <asp:Label ID="lblSubRegionName5" runat="server" Text='<%# Eval("RegionCode")%>' 
                                            Width="150px"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle Width="60px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Region Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblstatename3" runat="server" Text='<%# Eval("RegionName")%>' 
                                            Width="150px"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                
                                <asp:TemplateField HeaderText="Country Code" ItemStyle-Width="60px">
                                    <ItemTemplate>

                                        <asp:Label ID="lblCountrycode" runat="server" Text='<%# Eval("SubRegionName")%>' 
                                            Width="150px"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle Width="60px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Country Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCountryname" runat="server" Text='<%# Eval("CountryName")%>' 
                                            Width="150px"></asp:Label>
                                            
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                                <asp:CommandField ShowEditButton="false" ValidationGroup="k" />
                            </Columns>
                             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                                <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                        </asp:GridView>
                    </td>
                </tr>
         <tr>
        <td align="right">
                   <asp:Label ID="lblmsgall" runat="server" Font-Names="Verdana" 
                    Font-Size="14px" ForeColor="#FF3300" style="padding-right:200px;" ></asp:Label>
                            <script type="text/javascript" language="javascript" >
                                var prm = Sys.WebForms.PageRequestManager.getInstance();
                                prm.add_endRequest(function() {
                                    $(document).ready(function() {
                                        $("span[id$='lblTest']").delay(7000).fadeOut(7000, function() {
                                            //                         $(this).innerHTML("");
                                        });
                                    });
                                });

</script>
                </td>
                </tr>
               <tr>
          
            <td align="center" class="style12">
                
        
<asp:HiddenField ID="hf_id" runat="server" />
<asp:HiddenField ID="s_id" runat="server" />
<asp:HiddenField ID="d_id" runat="server" />

<asp:HiddenField ID="StateID" runat="server" />



  <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                    CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black" 
                    GridLines="Both" onrowediting="EditCustomer" PageSize="80" AllowPaging="true"
                            PagerStyle-CssClass="paging"
                    onrowupdating="UpdateCustomer" ValidationGroup="1" Width="80%"  
                    onrowdatabound="GridView1_RowDataBound" 
                    onpageindexchanging="GridView1_PageIndexChanging" onrowcancelingedit="GridView1_RowCancelingEdit" 
                    >
               
                    <Columns>
                        <asp:TemplateField Visible="false">
                            <ItemTemplate>
                                <center>
                                    <asp:Label ID="lblAID" runat="server" Text='<%# Eval("AreaID")%>' Width="50px"></asp:Label>
                                    <asp:Label ID="lblSID" runat="server" Text='<%# Eval("SID")%>' Width="50px"></asp:Label>
                                    <asp:Label ID="lblStateID" runat="server" Text='<%# Eval("StateId")%>' Width="50px"></asp:Label>

                                    <asp:Label ID="lblDID" runat="server" Text='<%# Eval("DID")%>' Width="50px"></asp:Label>
                                     <asp:Label ID="lblRID" runat="server" Text='<%# Eval("RID")%>' Width="50px"></asp:Label>
                                     <asp:Label ID="lblCID" runat="server" Text='<%# Eval("CityId")%>' Width="50px"></asp:Label>
                                     <asp:Label ID="lblDistrictId" runat="server" Text='<%# Eval("DistrictId")%>' Width="50px"></asp:Label>
                                     <asp:Label ID="lblDistrictRid" runat="server" Text='<%# Eval("DRID")%>' Width="50px"></asp:Label>
                                     <asp:Label ID="lblDistrictCid" runat="server" Text='<%# Eval("DRID")%>' Width="50px"></asp:Label>


                                  
                                    </center>
                                    </ItemTemplate>
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Area Code">
                                <ItemTemplate>
                                <center>
                                
                                    <asp:Label ID="lblRegioncode" runat="server" Text='<%# Eval("subregioncode")%>'></asp:Label>
                                    
                                    </center>
                                    </ItemTemplate>
                                    
                                    <EditItemTemplate>
                                    
                                     <asp:Label ID="lblGridAreacode" runat="server" Text='<%# Eval("subregioncode")%>'></asp:Label>


                                    </EditItemTemplate>
                                 </asp:TemplateField>
                                    
                         <asp:TemplateField HeaderText="Area">
                            <ItemTemplate>
                                <asp:Label ID="lblAName6" runat="server" Text='<%# Eval("areaname")%>' 
                                    Width="100px"></asp:Label></ItemTemplate>
                                    <EditItemTemplate>
                                <center>
                             
                                   <asp:DropDownList ID="gridchkAreaName" runat="server" AppendDataBoundItems="true" 
                                         AutoPostBack="true" Height="20px" widht="150px" onselectedindexchanged="gridchkAreaName_SelectedIndexChanged" 
                                        >
                                   </asp:DropDownList>
                                          
                                          </center></EditItemTemplate>
                                          </asp:TemplateField>
                                                                    
                              <asp:TemplateField HeaderText="State Code">
                                <ItemTemplate>
                                <center>
                                
                                    <asp:Label ID="lblStatecode" runat="server" Text='<%# Eval("StateCode")%>'></asp:Label>
                                    
                                    
                                    </center>
                                    </ItemTemplate>
                                    
                                    <EditItemTemplate>
                                  
                              <asp:Label ID="lblGridStatecode" runat="server" Text='<%# Eval("StateCode")%>' ></asp:Label>
                              <asp:Label ID="lblGridRID" runat="server" Text='<%# Eval("RID")%>' Visible="false"></asp:Label>

                                  </EditItemTemplate>
                                    
                                    </asp:TemplateField>
                             <asp:TemplateField HeaderText="State" ItemStyle-Width="60px">
                            <ItemTemplate>
                                <asp:Label ID="lblSubRegionName4" runat="server" Text='<%# Eval("StateName")%>' 
                                    Width="150px"></asp:Label></ItemTemplate>
                                    
                                    <EditItemTemplate>
                                     <asp:Label ID="lblgridchkState" runat="server" Text='<%# Eval("StateName")%>' 
                                    Width="150px"></asp:Label>
                                                           
                            
                            </EditItemTemplate>
                           
                                 <ItemStyle Width="60px" />
                           
                        </asp:TemplateField>

                          
                                <asp:TemplateField HeaderText="District Code" >
                            <ItemTemplate>
                                <center>
                                    <asp:Label ID="lbldistrictcode" runat="server" Text='<%# Eval("DistrictsCode")%>' Width="80px"></asp:Label>
                                </center>
                              </ItemTemplate>
                               <EditItemTemplate>
                                  
                                   <asp:Label ID="lblGridDistrictcode" runat="server" Text='<%# Eval("DistrictsCode")%>' Width="80px"></asp:Label>

                                  </EditItemTemplate>
                              
                      </asp:TemplateField>
                                <asp:TemplateField HeaderText="District">
                                   <ItemTemplate>
                                    <asp:Label ID="lbldistrictName" runat="server" Text='<%# Eval("DistrictName")%>' 
                                    Width="120px"></asp:Label></ItemTemplate>
                                    
                                   <EditItemTemplate>
                                  
                            <asp:Label ID="gridchkDistrict" runat="server" Text='<%# Eval("DistrictName")%>' 
                                    Width="120px"></asp:Label>
                            </EditItemTemplate>
                        
                                    
                                     </asp:TemplateField>
                             
                      
                             <asp:TemplateField HeaderText="City Code">
                            <ItemTemplate>
                                <center>
                                    <asp:Label ID="lblcitycode2" runat="server" Text='<%# Eval("CityCode")%>' Width="80px"></asp:Label>
                                    <asp:TextBox ID="TxtGridCityCode" runat="server" Text='<%# Eval("CityCode")%>' 
                                        Visible="false"></asp:TextBox>
                                    </center></ItemTemplate>
                                     <EditItemTemplate>
                                  
                                         <asp:Label ID="lblGridCitycode" runat="server" Text='<%# Eval("CityCode")%>' Width="80px" ></asp:Label>

                                  </EditItemTemplate>
                              
                                    </asp:TemplateField>
                          <asp:TemplateField HeaderText="Cities">
                            <ItemTemplate>
                            
                            
                                <asp:Label ID="lblCityname" runat="server" Text='<%# Eval("CityName")%>' 
                                    Width="180px" ></asp:Label>
                                    <asp:TextBox ID="TxtGridCityName" runat="server" Text='<%# Eval("CityName")%>' 
                                        Width="200px" Visible="false"></asp:TextBox>
                                    
                                    
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                    
                                 
                                           <asp:TextBox ID="TxtGridCity" runat="server" Text='<%# Eval("CityName")%>' 
                                        Width="200px" Visible="false"></asp:TextBox>
                                        
                               
                                  </EditItemTemplate>
                           </asp:TemplateField>
                        
                       
                        <asp:TemplateField HeaderText="Delete">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkRemove" runat="server" 
                                    CommandArgument='<%# Eval("AreaID")%>' OnClick="DeleteCustomer"  OnClientClick="return confirm('Do you want to delete?')"  Text="Delete">                                  
                                                 
                                   </asp:LinkButton>
                           
                            </ItemTemplate>
                        </asp:TemplateField>
                           <asp:TemplateField HeaderText="Add Cities">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkAdd" runat="server"
                                    CommandArgument='<%# Eval("AreaID")%>' OnClick="AddCity" OnClientClick="javascript:window.scrollTo(0,0);" Text="Add">                                
   
                                   
                                   </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                               <asp:CommandField ShowEditButton="True" HeaderText="Edit" ValidationGroup="k" />
                       
                    </Columns>
                     <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                                <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                </asp:GridView>
                
                
                 

            </td>
           
        </tr>
        
        <tr>
        <td align="center">
        
         <asp:GridView ID="GridView7" runat="server" AutoGenerateColumns="False"
                    BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                    CellPadding="2" Font-Names="Book Antiqua" Font-Size="11pt" ForeColor="Black" 
                    GridLines="Both" onrowcancelingedit="CancelEdit1" onrowediting="EditCustomer1" 
                    onrowupdating="UpdateCustomer1" ValidationGroup="1" Width="80%" PageSize="50"
                     AllowPaging="true" PagerStyle-CssClass="paging" 
                onrowdatabound="GridView7_RowDataBound"
                   
                    >
                 
                    <Columns>
                        <asp:TemplateField Visible="false">
                            <ItemTemplate>
                                <center>
                                    <asp:Label ID="lblAID1" runat="server" Text='<%# Eval("AreaID")%>' Width="50px"></asp:Label>
                                    <asp:Label ID="lblinternationalAID" runat="server" Text='<%# Eval("AID")%>' Width="50px"></asp:Label>
                                    <asp:Label ID="lblintersubRegionId" runat="server" Text='<%# Eval("SubRegID")%>' Width="50px"></asp:Label>
                                     <asp:Label ID="lblinterCountryid" runat="server" Text='<%# Eval("CountryID")%>' Width="50px"></asp:Label> 
                                   
                                    </center>
                                    </ItemTemplate>
                                    </asp:TemplateField>
                                     <asp:TemplateField HeaderText="Continent Code">
                                <ItemTemplate>
                                <center>
                                
                                    <asp:Label ID="lblContinentcode" runat="server" Text='<%# Eval("SubRegionCode")%>'></asp:Label>
                                    
                                </center>
                                    </ItemTemplate>
                                    
                                    <EditItemTemplate>
                                     <asp:Label ID="lblGridContinentcode" runat="server" Text='<%# Eval("subregioncode")%>'></asp:Label>
                                     <asp:Label ID="lblGridRID" runat="server" Text='<%# Eval("RID")%>' Visible="false"></asp:Label>
                                    </EditItemTemplate>
                                    
                                    </asp:TemplateField>
                                    
                         <asp:TemplateField HeaderText="Continent Name">
                            <ItemTemplate>
                                <asp:Label ID="lblcontinentname" runat="server" Text='<%# Eval("AreaName")%>' 
                                    Width="150px"></asp:Label></ItemTemplate>
                                    <EditItemTemplate>
                                    
                                <center>
                                 <asp:DropDownList ID="gridchkinterAreaName" runat="server" AppendDataBoundItems="true" 
                                         AutoPostBack="true" Height="20px" widht="150px" onselectedindexchanged="gridchkinterAreaName_SelectedIndexChanged"
                                        >
                                   </asp:DropDownList>
                              
                                          
                                          </center>
                                          </EditItemTemplate>
                                          </asp:TemplateField>
                                      
                                 
                             
                              <asp:TemplateField HeaderText="Region Code">
                                <ItemTemplate>
                                <center>
                                
                                    <asp:Label ID="lblRegioncode1" runat="server" Text='<%# Eval("RegionCode")%>'></asp:Label>
                                    
                                    </center>
                                    </ItemTemplate>
                                    
                                    <EditItemTemplate>
                                     <asp:Label ID="lblinterRegioncode" runat="server" Text='<%# Eval("RegionCode")%>'></asp:Label>
                                 

                                    
                                    </EditItemTemplate>
                                    
                                    </asp:TemplateField>
                             <asp:TemplateField HeaderText="Region Name" ItemStyle-Width="60px">
                            <ItemTemplate>
                                <asp:Label ID="lblRegionName1" runat="server" Text='<%# Eval("RegionName")%>' 
                                    Width="150px"></asp:Label></ItemTemplate>
                                    
                                    <EditItemTemplate>
                                <center>
                                 
                                   
                                      <asp:DropDownList ID="lblInterRegionName1" runat="server" AppendDataBoundItems="true" 
                                         AutoPostBack="true" Height="20px" widht="150px" 
                                           onselectedindexchanged="lblInterRegionName1_SelectedIndexChanged"></asp:DropDownList>
                                </center>
                            </EditItemTemplate>
                            <ItemStyle Width="60px" />
                        </asp:TemplateField>
                        
                         <asp:TemplateField HeaderText="Country Code">
                            <ItemTemplate>
                                <asp:Label ID="lblSubRegionName6" runat="server" Text='<%# Eval("SubRegionName")%>' 
                                    ></asp:Label></ItemTemplate>
                                    
                                    <EditItemTemplate>
                                <center>
                                 
                                        <asp:Label ID="lblinterCountrycode" runat="server" Text='<%# Eval("SubRegionName")%>'></asp:Label>
                                </center>
                            </EditItemTemplate>
                            <ItemStyle Width="60px" />
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="Country" ItemStyle-Width="60px">
                            <ItemTemplate>
                                <asp:Label ID="lblCountryName1" runat="server" Text='<%# Eval("CountryName")%>' 
                                    Width="150px"></asp:Label></ItemTemplate>
                                    
                                    
                              
                            <ItemStyle Width="60px" />
                        </asp:TemplateField>

                             
                      <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkRemove1" runat="server" 
                                    CommandArgument='<%# Eval("AreaID")%>' OnClick="DeleteCustomer1" Text="Delete" OnClientClick="return confirm('Do you want to delete?')">
                                   
                                   
                                   </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CommandField ShowEditButton="True" ValidationGroup="k" />
                    </Columns>
                     <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                                <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                </asp:GridView>
        
        </td>
        </tr>
   
        <tr>
           
            <td align="left" class="style3">
                <br />
            

            </td>
         
        </tr>
       
       
        
       
     
        
                
                </td></tr></table></asp:Panel>
                
                <%--</ContentTemplate>
                </asp:UpdatePanel>--%>
</asp:Content>

