C# ASP.net Division District and Thana Cascading DropDownList with XML and SQL inside Update Panel

XML File: LGED.xml

<?xml version=”1.0″ encoding=”utf-8″?>
<root>
<division id=”Barishal” value=”Barishal”>
<district id=”Barguna” value=”Barguna”>
<thana id=”Amtali” value=”Amtali”></thana>
<thana id=”Bamna” value=”Bamna”></thana>
<thana id=”Barguna hq” value=”Barguna hq”></thana>
<thana id=”Betagi” value=”Betagi”></thana>
<thana id=”Patharghata” value=”Patharghata”></thana>
<thana id=”Taltoli” value=”Taltoli”></thana>
</district>
<district id=”Barisal” value=”Barisal”>
<thana id=”Agoiljhara” value=”Agoiljhara”></thana>
<thana id=”Babugonj” value=”Babugonj”></thana>
<thana id=”Bakergonj” value=”Bakergonj”></thana>
<thana id=”Banaripara” value=”Banaripara”></thana>
<thana id=”Gouranadi” value=”Gouranadi”></thana>
<thana id=”Hijla” value=”Hijla”></thana>
<thana id=”Kotwali” value=”Kotwali”></thana>
<thana id=”Mahendigonj” value=”Mahendigonj”></thana>
<thana id=”Muladi” value=”Muladi”></thana>
<thana id=”Uzirpur” value=”Uzirpur”></thana>
</district>
<district id=”Bhola” value=”Bhola”>
<thana id=”Bhola ” value=”Bhola “></thana>
<thana id=”Borhanuddien” value=”Borhanuddien”></thana>
<thana id=”Carfession” value=”Carfession”></thana>
<thana id=”Daulotkhan” value=”Daulotkhan”></thana>
<thana id=”Lalmohan” value=”Lalmohan”></thana>
<thana id=”Monpura” value=”Monpura”></thana>
<thana id=”Tazumuddin” value=”Tazumuddin”></thana>
</district>
<district id=”Jhalakati” value=”Jhalakati”>
<thana id=”Jhalokati” value=”Jhalokati”></thana>
<thana id=”Kathalia” value=”Kathalia”></thana>
<thana id=”Nolcity” value=”Nolcity”></thana>
<thana id=”Rajapur” value=”Rajapur”></thana>
</district>
<district id=”Patuakhali” value=”Patuakhali”>
<thana id=”Boufal” value=”Boufal”></thana>
<thana id=”Dashmina” value=”Dashmina”></thana>
<thana id=”Dumki” value=”Dumki”></thana>
<thana id=”Galachipa” value=”Galachipa”></thana>
<thana id=”Kolapara” value=”Kolapara”></thana>
<thana id=”Mirjagonj” value=”Mirjagonj”></thana>
<thana id=”Patuakhali hq” value=”Patuakhali hq”></thana>
<thana id=”Rangabali” value=”Rangabali”></thana>
</district>
<district id=”Pirojpur” value=”Pirojpur”>
<thana id=”Bhandaria” value=”Bhandaria”></thana>
<thana id=”Kowkhali” value=”Kowkhali”></thana>
<thana id=”Motbaria” value=”Motbaria”></thana>
<thana id=”Najirpur” value=”Najirpur”></thana>
<thana id=”Nesarabad” value=”Nesarabad”></thana>
<thana id=”Pirojpur PS” value=”Pirojpur PS”></thana>
<thana id=”Zianagar” value=”Zianagar”></thana>
</district>
</division>
<division id=”Chittagong” value=”Chittagong”>
<district id=”Bandarban” value=”Bandarban”>
<thana id=”Alikadam” value=”Alikadam”></thana>
<thana id=”Bandarban” value=”Bandarban”></thana>
<thana id=”Lama” value=”Lama”></thana>
<thana id=”Nikongchhari” value=”Nikongchhari”></thana>
<thana id=”Roangchhari” value=”Roangchhari”></thana>
<thana id=”Ruma” value=”Ruma”></thana>
<thana id=”Thanchi” value=”Thanchi”></thana>
<thana id=”Unknown thana” value=”Unknown thana”></thana>
</district>
<district id=”Brahmanbaria” value=”Brahmanbaria”>
<thana id=”Akhaura” value=”Akhaura”></thana>
<thana id=”Ashugonj” value=”Ashugonj”></thana>
<thana id=”Bancharampur” value=”Bancharampur”></thana>
<thana id=”Brahmanbaria hq” value=”Brahmanbaria hq”></thana>
<thana id=”Kashba” value=”Kashba”></thana>
<thana id=”Nabinagar” value=”Nabinagar”></thana>
<thana id=”Nasir nagar” value=”Nasir nagar”></thana>
<thana id=”Sarail” value=”Sarail”></thana>
</district>
<district id=”Chandpur” value=”Chandpur”>
<thana id=”Chandpur hq” value=”Chandpur hq”></thana>
<thana id=”Faridgonj” value=”Faridgonj”></thana>
<thana id=”Haimchar” value=”Haimchar”></thana>
<thana id=”Hajigonj” value=”Hajigonj”></thana>
<thana id=”Kachua” value=”Kachua”></thana>
<thana id=”Matlab north” value=”Matlab north”></thana>
<thana id=”Motlob south” value=”Motlob south”></thana>
<thana id=”Shahrasti” value=”Shahrasti”></thana>
</district>
<district id=”Chittagong” value=”Chittagong”>
<thana id=”Anowara” value=”Anowara”></thana>
<thana id=”Baizid Bostami” value=”Baizid Bostami”></thana>
<thana id=”Bakolia” value=”Bakolia”></thana>
<thana id=”Bandar” value=”Bandar”></thana>
<thana id=”Bashkhali” value=”Bashkhali”></thana>
<thana id=”Boalkhali” value=”Boalkhali”></thana>
<thana id=”Chandanaish” value=”Chandanaish”></thana>
<thana id=”Chandgaon” value=”Chandgaon”></thana>
<thana id=”Doublemooring” value=”Doublemooring”></thana>
<thana id=”Fatikchhari” value=”Fatikchhari”></thana>
<thana id=”Halishahar” value=”Halishahar”></thana>
<thana id=”Hathazari” value=”Hathazari”></thana>
<thana id=”Karnafulli” value=”Karnafulli”></thana>
<thana id=”Khulshi” value=”Khulshi”></thana>
<thana id=”Kotowali” value=”Kotowali”></thana>
<thana id=”Lohagara” value=”Lohagara”></thana>
<thana id=”Mirsharai” value=”Mirsharai”></thana>
<thana id=”Pahartali” value=”Pahartali”></thana>
<thana id=”Panchlaish” value=”Panchlaish”></thana>
<thana id=”Patia” value=”Patia”></thana>
<thana id=”Potenga” value=”Potenga”></thana>
<thana id=”Rangunia” value=”Rangunia”></thana>
<thana id=”Raujan” value=”Raujan”></thana>
<thana id=”Shandip” value=”Shandip”></thana>
<thana id=”Shatkania” value=”Shatkania”></thana>
<thana id=”Shitakunda” value=”Shitakunda”></thana>
</district>
<district id=”Comilla” value=”Comilla”>
<thana id=”Barura” value=”Barura”></thana>
<thana id=”Brahmanpara” value=”Brahmanpara”></thana>
<thana id=”Burichong” value=”Burichong”></thana>
<thana id=”Chandina” value=”Chandina”></thana>
<thana id=”Choddagram” value=”Choddagram”></thana>
<thana id=”Daudkandi” value=”Daudkandi”></thana>
<thana id=”Debidwer” value=”Debidwer”></thana>
<thana id=”Homna” value=”Homna”></thana>
<thana id=”Kotwali” value=”Kotwali”></thana>
<thana id=”Laksham” value=”Laksham”></thana>
<thana id=”Langolkoat” value=”Langolkoat”></thana>
<thana id=”Meghna” value=”Meghna”></thana>
<thana id=”Monohargong” value=”Monohargong”></thana>
<thana id=”Muradnagar” value=”Muradnagar”></thana>
<thana id=”Sador South” value=”Sador South”></thana>
<thana id=”Titas” value=”Titas”></thana>
</district>
<district id=”Cox’s Bazar” value=”Cox’s Bazar”>
<thana id=”Chakoria” value=”Chakoria”></thana>
<thana id=”Cox’s bazar hq” value=”Cox’s bazar hq”></thana>
<thana id=”Cox’s bazar” value=”Cox’s bazar”></thana>
<thana id=”Kutubdia” value=”Kutubdia”></thana>
<thana id=”Maheshkhali” value=”Maheshkhali”></thana>
<thana id=”Ramu” value=”Ramu”></thana>
<thana id=”Teknaf” value=”Teknaf”></thana>
<thana id=”Ukhia” value=”Ukhia”></thana>
<thana id=”Unknown thana” value=”Unknown thana”></thana>
</district>
<district id=”Feni” value=”Feni”>
<thana id=”Chhagolnayia” value=”Chhagolnayia”></thana>
<thana id=”Dagon vuia” value=”Dagon vuia”></thana>
<thana id=”Feni sadar” value=”Feni sadar”></thana>
<thana id=”Fulgaji” value=”Fulgaji”></thana>
<thana id=”Porsuram” value=”Porsuram”></thana>
<thana id=”Shonagaji” value=”Shonagaji”></thana>
</district>
<district id=”Khagrachari” value=”Khagrachari”>
<thana id=”Dhighinala” value=”Dhighinala”></thana>
<thana id=”Guimara” value=”Guimara”></thana>
<thana id=”Khagrachari” value=”Khagrachari”></thana>
<thana id=”Laksmichari” value=”Laksmichari”></thana>
<thana id=”Mahalchari” value=”Mahalchari”></thana>
<thana id=”Manikchari” value=”Manikchari”></thana>
<thana id=”Matiranga” value=”Matiranga”></thana>
<thana id=”Panchari” value=”Panchari”></thana>
<thana id=”Ramgor” value=”Ramgor”></thana>
</district>
<district id=”Lakshmipur” value=”Lakshmipur”>
<thana id=”Komolnagor” value=”Komolnagor”></thana>
<thana id=”Lakshmipur Sadar” value=”Lakshmipur Sadar”></thana>
<thana id=”Raipur” value=”Raipur”></thana>
<thana id=”Ramganj” value=”Ramganj”></thana>
<thana id=”Ramgoti” value=”Ramgoti”></thana>
</district>
<district id=”Noakhali” value=”Noakhali”>
<thana id=”Begamgonj” value=”Begamgonj”></thana>
<thana id=”Char jabber” value=”Char jabber”></thana>
<thana id=”Chatkhil” value=”Chatkhil”></thana>
<thana id=”Companigonj” value=”Companigonj”></thana>
<thana id=”Hatia” value=”Hatia”></thana>
<thana id=”Kobirhaat” value=”Kobirhaat”></thana>
<thana id=”Shenbag” value=”Shenbag”></thana>
<thana id=”Shonaimuri” value=”Shonaimuri”></thana>
<thana id=”Sudaram” value=”Sudaram”></thana>
</district>
<district id=”Rangamati” value=”Rangamati”>
<thana id=”Baghaichhari” value=”Baghaichhari”></thana>
<thana id=”Barkal” value=”Barkal”></thana>
<thana id=”Bilychhari” value=”Bilychhari”></thana>
<thana id=”Chandorgana” value=”Chandorgana”></thana>
<thana id=”Jurachari” value=”Jurachari”></thana>
<thana id=”Kaptai” value=”Kaptai”></thana>
<thana id=”Kotwali” value=”Kotwali”></thana>
<thana id=”Koukhali” value=”Koukhali”></thana>
<thana id=”Longadu” value=”Longadu”></thana>
<thana id=”Naniarchar” value=”Naniarchar”></thana>
<thana id=”Rajasthai” value=”Rajasthai”></thana>
</district>
</division>
<division id=”Dhaka” value=”Dhaka”>
<district id=”Dhaka” value=”Dhaka”>
<thana id=”Adabor” value=”Adabor”></thana>
<thana id=”Airport” value=”Airport”></thana>
<thana id=”Ashulia” value=”Ashulia”></thana>
<thana id=”Badda” value=”Badda”></thana>
<thana id=”Cantonment” value=”Cantonment”></thana>
<thana id=”Demra” value=”Demra”></thana>
<thana id=”Dhamrai” value=”Dhamrai”></thana>
<thana id=”Dhanmondi” value=”Dhanmondi”></thana>
<thana id=”DocKhin Khan” value=”DocKhin Khan”></thana>
<thana id=”Dohar” value=”Dohar”></thana>
<thana id=”Gulshan” value=”Gulshan”></thana>
<thana id=”Hajaribag” value=”Hajaribag”></thana>
<thana id=”Kafrul” value=”Kafrul”></thana>
<thana id=”Kamrangichar” value=”Kamrangichar”></thana>
<thana id=”Keranigonj” value=”Keranigonj”></thana>
<thana id=”Khilgaon” value=”Khilgaon”></thana>
<thana id=”Khilkhet” value=”Khilkhet”></thana>
<thana id=”Kotwali” value=”Kotwali”></thana>
<thana id=”Lalbag” value=”Lalbag”></thana>
<thana id=”Mirpur” value=”Mirpur”></thana>
<thana id=”Mohammadpur” value=”Mohammadpur”></thana>
<thana id=”Motizheel” value=”Motizheel”></thana>
<thana id=”Nawabgonj” value=”Nawabgonj”></thana>
<thana id=”New Market” value=”New Market”></thana>
<thana id=”Newmarket” value=”Newmarket”></thana>
<thana id=”Pallabi” value=”Pallabi”></thana>
<thana id=”Palton” value=”Palton”></thana>
<thana id=”Ramna” value=”Ramna”></thana>
<thana id=”Sabujbag” value=”Sabujbag”></thana>
<thana id=”Savar” value=”Savar”></thana>
<thana id=”Shahali” value=”Shahali”></thana>
<thana id=”Shahbag” value=”Shahbag”></thana>
<thana id=”Shampur” value=”Shampur”></thana>
<thana id=”South Keranigonj” value=”South Keranigonj”></thana>
<thana id=”Sutrapur” value=”Sutrapur”></thana>
<thana id=”Tejgaon” value=”Tejgaon”></thana>
<thana id=”Turag” value=”Turag”></thana>
<thana id=”Uttar Khan” value=”Uttar Khan”></thana>
<thana id=”Uttara” value=”Uttara”></thana>
</district>
<district id=”Faridpur” value=”Faridpur”>
<thana id=”Alfadanga” value=”Alfadanga”></thana>
<thana id=”Bhanga” value=”Bhanga”></thana>
<thana id=”Boalmari” value=”Boalmari”></thana>
<thana id=”Charbhadrason” value=”Charbhadrason”></thana>
<thana id=”Kotwali” value=”Kotwali”></thana>
<thana id=”Madukhali” value=”Madukhali”></thana>
<thana id=”Nagarkanda” value=”Nagarkanda”></thana>
<thana id=”Saltha” value=”Saltha”></thana>
<thana id=”Sundarpur” value=”Sundarpur”></thana>
</district>
<district id=”Gazipur” value=”Gazipur”>
<thana id=”Gazipur hq” value=”Gazipur hq”></thana>
<thana id=”Kaliaquir” value=”Kaliaquir”></thana>
<thana id=”Kaligonj” value=”Kaligonj”></thana>
<thana id=”Kapasia” value=”Kapasia”></thana>
<thana id=”Sreepur” value=”Sreepur”></thana>
<thana id=”Tangi” value=”Tangi”></thana>
</district>
<district id=”Gopalganj” value=”Gopalganj”>
<thana id=”Gopalgonj” value=”Gopalgonj”></thana>
<thana id=”Kashiani” value=”Kashiani”></thana>
<thana id=”Kotalipara” value=”Kotalipara”></thana>
<thana id=”Mokshudpur” value=”Mokshudpur”></thana>
<thana id=”Tungipara” value=”Tungipara”></thana>
</district>
<district id=”Jamalpur” value=”Jamalpur”>
<thana id=”Bakshigonj” value=”Bakshigonj”></thana>
<thana id=”Dewangonj” value=”Dewangonj”></thana>
<thana id=”Islampur” value=”Islampur”></thana>
<thana id=”Jamalpur” value=”Jamalpur”></thana>
<thana id=”Medargonj” value=”Medargonj”></thana>
<thana id=”Melandah” value=”Melandah”></thana>
<thana id=”Sharishabari” value=”Sharishabari”></thana>
</district>
<district id=”Kishoreganj” value=”Kishoreganj”>
<thana id=”Austagram” value=”Austagram”></thana>
<thana id=”Bajitpur” value=”Bajitpur”></thana>
<thana id=”Bhairab” value=”Bhairab”></thana>
<thana id=”Hossainpur” value=”Hossainpur”></thana>
<thana id=”Itna” value=”Itna”></thana>
<thana id=”Karimgonj” value=”Karimgonj”></thana>
<thana id=”Kishoregonj Sadar” value=”Kishoregonj Sadar”></thana>
<thana id=”Kotiyadi” value=”Kotiyadi”></thana>
<thana id=”Kuliarchar” value=”Kuliarchar”></thana>
<thana id=”Mithamoin” value=”Mithamoin”></thana>
<thana id=”Nikli” value=”Nikli”></thana>
<thana id=”Pakundia” value=”Pakundia”></thana>
<thana id=”Tarail” value=”Tarail”></thana>
</district>
<district id=”Madaripur” value=”Madaripur”>
<thana id=”Kalkini” value=”Kalkini”></thana>
<thana id=”Madaripur hq” value=”Madaripur hq”></thana>
<thana id=”Madaripur” value=”Madaripur”></thana>
<thana id=”Rajoir” value=”Rajoir”></thana>
<thana id=”Shibchar” value=”Shibchar”></thana>
<thana id=”Unknown thana” value=”Unknown thana”></thana>
</district>
<district id=”Manikganj” value=”Manikganj”>
<thana id=”Doulatpur” value=”Doulatpur”></thana>
<thana id=”Ghior” value=”Ghior”></thana>
<thana id=”Horirampur” value=”Horirampur”></thana>
<thana id=”Manikgonj” value=”Manikgonj”></thana>
<thana id=”Shaturia” value=”Shaturia”></thana>
<thana id=”Shibaloy” value=”Shibaloy”></thana>
<thana id=”Singair” value=”Singair”></thana>
</district>
<district id=”Munshiganj” value=”Munshiganj”>
<thana id=”Gozaria” value=”Gozaria”></thana>
<thana id=”Louhojong” value=”Louhojong”></thana>
<thana id=”Munshigonj hq” value=”Munshigonj hq”></thana>
<thana id=”Sirajdikhan” value=”Sirajdikhan”></thana>
<thana id=”Sreenagor” value=”Sreenagor”></thana>
<thana id=”Tongibari” value=”Tongibari”></thana>
</district>
<district id=”Mymensingh” value=”Mymensingh”>
<thana id=”Bhaluka” value=”Bhaluka”></thana>
<thana id=”Chandhara” value=”Chandhara”></thana>
<thana id=”Dhobaura” value=”Dhobaura”></thana>
<thana id=”Fulbaria” value=”Fulbaria”></thana>
<thana id=”Fulpur” value=”Fulpur”></thana>
<thana id=”Gaforgaon” value=”Gaforgaon”></thana>
<thana id=”Gouripur” value=”Gouripur”></thana>
<thana id=”Haluaghat” value=”Haluaghat”></thana>
<thana id=”Isshargonj” value=”Isshargonj”></thana>
<thana id=”Kotwali” value=”Kotwali”></thana>
<thana id=”Muktagachha” value=”Muktagachha”></thana>
<thana id=”Mymensingh” value=”Mymensingh”></thana>
<thana id=”Nandail” value=”Nandail”></thana>
<thana id=”Tarakanda” value=”Tarakanda”></thana>
<thana id=”Trishal” value=”Trishal”></thana>
<thana id=”Unknown thana” value=”Unknown thana”></thana>
</district>
<district id=”Narayanganj” value=”Narayanganj”>
<thana id=”Arihajar” value=”Arihajar”></thana>
<thana id=”Bandar” value=”Bandar”></thana>
<thana id=”Fatullah” value=”Fatullah”></thana>
<thana id=”Narayangonj” value=”Narayangonj”></thana>
<thana id=”Rupgonj” value=”Rupgonj”></thana>
<thana id=”Shonargoan” value=”Shonargoan”></thana>
<thana id=”Siddirgonj” value=”Siddirgonj”></thana>
<thana id=”Unknown thana” value=”Unknown thana”></thana>
</district>
<district id=”Narsingdi” value=”Narsingdi”>
<thana id=”Belabo” value=”Belabo”></thana>
<thana id=”Manohordi” value=”Manohordi”></thana>
<thana id=”Narsingdi MU” value=”Narsingdi MU”></thana>
<thana id=”Palash” value=”Palash”></thana>
<thana id=”Raipura” value=”Raipura”></thana>
<thana id=”Shibpur” value=”Shibpur”></thana>
</district>
<district id=”Netrakona” value=”Netrakona”>
<thana id=”Atpara” value=”Atpara”></thana>
<thana id=”Barhatta” value=”Barhatta”></thana>
<thana id=”Durgapur” value=”Durgapur”></thana>
<thana id=”Kendua” value=”Kendua”></thana>
<thana id=”Khaliajuri” value=”Khaliajuri”></thana>
<thana id=”Komlakanda” value=”Komlakanda”></thana>
<thana id=”Madon” value=”Madon”></thana>
<thana id=”Mohongonj” value=”Mohongonj”></thana>
<thana id=”Netrokona hq” value=”Netrokona hq”></thana>
<thana id=”Netrokona” value=”Netrokona”></thana>
<thana id=”Purbadhala” value=”Purbadhala”></thana>
<thana id=”Unknown thana” value=”Unknown thana”></thana>
</district>
<district id=”Rajbari” value=”Rajbari”>
<thana id=”Baliakandi” value=”Baliakandi”></thana>
<thana id=”Goalanda” value=”Goalanda”></thana>
<thana id=”Kalukhali” value=”Kalukhali”></thana>
<thana id=”Pangsha” value=”Pangsha”></thana>
<thana id=”Rajbari hq” value=”Rajbari hq”></thana>
</district>
<district id=”Shariatpur” value=”Shariatpur”>
<thana id=”Bhedargonj” value=”Bhedargonj”></thana>
<thana id=”Damudda” value=”Damudda”></thana>
<thana id=”Goshairhat” value=”Goshairhat”></thana>
<thana id=”Jajira” value=”Jajira”></thana>
<thana id=”Noria” value=”Noria”></thana>
<thana id=”Palung” value=”Palung”></thana>
<thana id=”Sakhiipur” value=”Sakhiipur”></thana>
</district>
<district id=”Sherpur” value=”Sherpur”>
<thana id=”Jhenigati” value=”Jhenigati”></thana>
<thana id=”Nalitabari” value=”Nalitabari”></thana>
<thana id=”Nokla” value=”Nokla”></thana>
<thana id=”Serebordi” value=”Serebordi”></thana>
<thana id=”Sherpur” value=”Sherpur”></thana>
</district>
<district id=”Tangail” value=”Tangail”>
<thana id=”Basail” value=”Basail”></thana>
<thana id=”Bhuapur  ” value=”Bhuapur  “></thana>
<thana id=”Delduar” value=”Delduar”></thana>
<thana id=”Dhanbari” value=”Dhanbari”></thana>
<thana id=”Ghatail” value=”Ghatail”></thana>
<thana id=”Gopalpur” value=”Gopalpur”></thana>
<thana id=”Kalihati” value=”Kalihati”></thana>
<thana id=”Madhupur” value=”Madhupur”></thana>
<thana id=”Mirjapur” value=”Mirjapur”></thana>
<thana id=”Nagarpur” value=”Nagarpur”></thana>
<thana id=”Sakhipur” value=”Sakhipur”></thana>
<thana id=”Tangail Sadar” value=”Tangail Sadar”></thana>
</district>
</division>
<division id=”Khulna” value=”Khulna”>
<district id=”Bagerhat” value=”Bagerhat”>
<thana id=”Bagerhat hq” value=”Bagerhat hq”></thana>
<thana id=”Chitalmari” value=”Chitalmari”></thana>
<thana id=”Fakirhat” value=”Fakirhat”></thana>
<thana id=”Kachua” value=”Kachua”></thana>
<thana id=”Mollahat” value=”Mollahat”></thana>
<thana id=”Mongla” value=”Mongla”></thana>
<thana id=”Morrelganj” value=”Morrelganj”></thana>
<thana id=”Rampal” value=”Rampal”></thana>
<thana id=”Sharonkhola” value=”Sharonkhola”></thana>
</district>
<district id=”Chuadanga” value=”Chuadanga”>
<thana id=”Alamdanga” value=”Alamdanga”></thana>
<thana id=”Chuadanga hq” value=”Chuadanga hq”></thana>
<thana id=”Damurhuda” value=”Damurhuda”></thana>
<thana id=”Jibonnagar” value=”Jibonnagar”></thana>
</district>
<district id=”Jessore” value=”Jessore”>
<thana id=”Abhoynagar” value=”Abhoynagar”></thana>
<thana id=”Bagarpara” value=”Bagarpara”></thana>
<thana id=”Chowgachha” value=”Chowgachha”></thana>
<thana id=”Jhikargachha” value=”Jhikargachha”></thana>
<thana id=”Keshobpur” value=”Keshobpur”></thana>
<thana id=”Kotwali” value=”Kotwali”></thana>
<thana id=”Manirampur” value=”Manirampur”></thana>
<thana id=”Sharsha” value=”Sharsha”></thana>
</district>
<district id=”Jhenaidah” value=”Jhenaidah”>
<thana id=”Horinakunda” value=”Horinakunda”></thana>
<thana id=”Jhenidah” value=”Jhenidah”></thana>
<thana id=”Kaligonj” value=”Kaligonj”></thana>
<thana id=”Koatchandpur” value=”Koatchandpur”></thana>
<thana id=”Maheshpur” value=”Maheshpur”></thana>
<thana id=”Shailkupa” value=”Shailkupa”></thana>
</district>
<district id=”Khulna” value=”Khulna”>
<thana id=”Batiaghata” value=”Batiaghata”></thana>
<thana id=”Dakop” value=”Dakop”></thana>
<thana id=”Daulatpur” value=”Daulatpur”></thana>
<thana id=”Dighlia” value=”Dighlia”></thana>
<thana id=”Dumuria” value=”Dumuria”></thana>
<thana id=”Fultala” value=”Fultala”></thana>
<thana id=”Khalishpur” value=”Khalishpur”></thana>
<thana id=”Khanjahanali” value=”Khanjahanali”></thana>
<thana id=”Khulna thana” value=”Khulna thana”></thana>
<thana id=”Koyra” value=”Koyra”></thana>
<thana id=”Paikghacha” value=”Paikghacha”></thana>
<thana id=”Rupsha” value=”Rupsha”></thana>
<thana id=”Sonadanga” value=”Sonadanga”></thana>
<thana id=”Terkhada” value=”Terkhada”></thana>
</district>
<district id=”Kushtia” value=”Kushtia”>
<thana id=”Bheramara” value=”Bheramara”></thana>
<thana id=”Dowlotpur” value=”Dowlotpur”></thana>
<thana id=”Islami university” value=”Islami university”></thana>
<thana id=”Khoksha” value=”Khoksha”></thana>
<thana id=”Kumarkhali” value=”Kumarkhali”></thana>
<thana id=”Kustia hq” value=”Kustia hq”></thana>
<thana id=”Mirpur” value=”Mirpur”></thana>
</district>
<district id=”Magura” value=”Magura”>
<thana id=”Magura Sadar” value=”Magura Sadar”></thana>
<thana id=”Mohammadpur” value=”Mohammadpur”></thana>
<thana id=”Shalikha” value=”Shalikha”></thana>
<thana id=”Sreepur” value=”Sreepur”></thana>
</district>
<district id=”Meherpur” value=”Meherpur”>
<thana id=”Gangni” value=”Gangni”></thana>
<thana id=”Meherpur ” value=”Meherpur “></thana>
<thana id=”Mujibnagar” value=”Mujibnagar”></thana>
</district>
<district id=”Narail” value=”Narail”>
<thana id=”Kalia” value=”Kalia”></thana>
<thana id=”Lohagora” value=”Lohagora”></thana>
<thana id=”Naragathi” value=”Naragathi”></thana>
<thana id=”Narail” value=”Narail”></thana>
</district>
<district id=”Satkhira” value=”Satkhira”>
<thana id=”Ashashuni” value=”Ashashuni”></thana>
<thana id=”Debhata” value=”Debhata”></thana>
<thana id=”Kalaroa” value=”Kalaroa”></thana>
<thana id=”Kaligonj” value=”Kaligonj”></thana>
<thana id=”Patkelghata” value=”Patkelghata”></thana>
<thana id=”Satkhira  Sadhar” value=”Satkhira  Sadhar”></thana>
<thana id=”Shamnagar” value=”Shamnagar”></thana>
<thana id=”Tala” value=”Tala”></thana>
</district>
</division>
<division id=”Rajshahi” value=”Rajshahi”>
<district id=”Bogra” value=”Bogra”>
<thana id=”Adamdighi” value=”Adamdighi”></thana>
<thana id=”Bogra hq” value=”Bogra hq”></thana>
<thana id=”Dhonut” value=”Dhonut”></thana>
<thana id=”Dupchachia” value=”Dupchachia”></thana>
<thana id=”Gabtoli” value=”Gabtoli”></thana>
<thana id=”Kahalu” value=”Kahalu”></thana>
<thana id=”Nondigram” value=”Nondigram”></thana>
<thana id=”Shajahan pur” value=”Shajahan pur”></thana>
<thana id=”Shariakandhi” value=”Shariakandhi”></thana>
<thana id=”Sherpur” value=”Sherpur”></thana>
<thana id=”Shibgonj” value=”Shibgonj”></thana>
<thana id=”Shonatala” value=”Shonatala”></thana>
</district>
<district id=”Jaipurhat” value=”Jaipurhat”>
<thana id=”Akkelpur” value=”Akkelpur”></thana>
<thana id=”Joypurhat” value=”Joypurhat”></thana>
<thana id=”Kalai” value=”Kalai”></thana>
<thana id=”Khetlal” value=”Khetlal”></thana>
<thana id=”Panchbibi” value=”Panchbibi”></thana>
</district>
<district id=”Naogaon” value=”Naogaon”>
<thana id=”Atri” value=”Atri”></thana>
<thana id=”Badolghachi” value=”Badolghachi”></thana>
<thana id=”Dahmurhat” value=”Dahmurhat”></thana>
<thana id=”Mahadebpur” value=”Mahadebpur”></thana>
<thana id=”Manda” value=”Manda”></thana>
<thana id=”Naogaon” value=”Naogaon”></thana>
<thana id=”Nyamatpur” value=”Nyamatpur”></thana>
<thana id=”Patnitala” value=”Patnitala”></thana>
<thana id=”Porsha” value=”Porsha”></thana>
<thana id=”Raninagar” value=”Raninagar”></thana>
<thana id=”Shapahar” value=”Shapahar”></thana>
</district>
<district id=”Natore” value=”Natore”>
<thana id=”Bagatipara” value=”Bagatipara”></thana>
<thana id=”Burigram” value=”Burigram”></thana>
<thana id=”Guradashpur” value=”Guradashpur”></thana>
<thana id=”Lalpur” value=”Lalpur”></thana>
<thana id=”Natore hq” value=”Natore hq”></thana>
<thana id=”Noldanga” value=”Noldanga”></thana>
<thana id=”Singra” value=”Singra”></thana>
</district>
<district id=”Nawabganj” value=”Nawabganj”>
<thana id=”Bholahat” value=”Bholahat”></thana>
<thana id=”Gomostapur” value=”Gomostapur”></thana>
<thana id=”Nachoal” value=”Nachoal”></thana>
<thana id=”Nawabgonj hq” value=”Nawabgonj hq”></thana>
<thana id=”Nawabgonj Pauroshova” value=”Nawabgonj Pauroshova”></thana>
<thana id=”Shibgonj” value=”Shibgonj”></thana>
</district>
<district id=”Pabna” value=”Pabna”>
<thana id=”Ataikula” value=”Ataikula”></thana>
<thana id=”Atghoria” value=”Atghoria”></thana>
<thana id=”Bangura” value=”Bangura”></thana>
<thana id=”Bera” value=”Bera”></thana>
<thana id=”Chatmahor” value=”Chatmahor”></thana>
<thana id=”Faridpur” value=”Faridpur”></thana>
<thana id=”Isurdi” value=”Isurdi”></thana>
<thana id=”Pabna” value=”Pabna”></thana>
<thana id=”Shathia” value=”Shathia”></thana>
<thana id=”Sujanagar” value=”Sujanagar”></thana>
</district>
<district id=”Rajshahi” value=”Rajshahi”>
<thana id=”Bagha” value=”Bagha”></thana>
<thana id=”Bagmara” value=”Bagmara”></thana>
<thana id=”Boalia” value=”Boalia”></thana>
<thana id=”Charghat” value=”Charghat”></thana>
<thana id=”Durgapur” value=”Durgapur”></thana>
<thana id=”Godagari” value=”Godagari”></thana>
<thana id=”Mohonpur” value=”Mohonpur”></thana>
<thana id=”Motiher” value=”Motiher”></thana>
<thana id=”Poba” value=”Poba”></thana>
<thana id=”Puthia” value=”Puthia”></thana>
<thana id=”Rajpara” value=”Rajpara”></thana>
<thana id=”Shahmakhdoom” value=”Shahmakhdoom”></thana>
<thana id=”Tanore” value=”Tanore”></thana>
</district>
<district id=”Sirajganj” value=”Sirajganj”>
<thana id=”Belkuchi” value=”Belkuchi”></thana>
<thana id=”Chowhali” value=”Chowhali”></thana>
<thana id=”Enayetpur” value=”Enayetpur”></thana>
<thana id=”Kamarkhanda” value=”Kamarkhanda”></thana>
<thana id=”Kazipur” value=”Kazipur”></thana>
<thana id=”Raigonj” value=”Raigonj”></thana>
<thana id=”Salonga” value=”Salonga”></thana>
<thana id=”Shahjadpur” value=”Shahjadpur”></thana>
<thana id=”Sirajgonj” value=”Sirajgonj”></thana>
<thana id=”Tarash” value=”Tarash”></thana>
<thana id=”Ullapara” value=”Ullapara”></thana>
</district>
</division>
<division id=”Rangpur” value=”Rangpur”>
<district id=”Dinajpur” value=”Dinajpur”>
<thana id=”Birampur” value=”Birampur”></thana>
<thana id=”Birgonj” value=”Birgonj”></thana>
<thana id=”Birol” value=”Birol”></thana>
<thana id=”Bochagong” value=”Bochagong”></thana>
<thana id=”Chirirbandar” value=”Chirirbandar”></thana>
<thana id=”Dinajpur hq (powrosoba)” value=”Dinajpur hq (powrosoba)”></thana>
<thana id=”Fulbari” value=”Fulbari”></thana>
<thana id=”Ghoraghat” value=”Ghoraghat”></thana>
<thana id=”Hakimpur” value=”Hakimpur”></thana>
<thana id=”Kaharul” value=”Kaharul”></thana>
<thana id=”Khanshama” value=”Khanshama”></thana>
<thana id=”Nawabgonj” value=”Nawabgonj”></thana>
<thana id=”Parbatipur” value=”Parbatipur”></thana>
</district>
<district id=”Gaibandha” value=”Gaibandha”>
<thana id=”Fulchhari” value=”Fulchhari”></thana>
<thana id=”Gaibandha hq” value=”Gaibandha hq”></thana>
<thana id=”Gobindagonj” value=”Gobindagonj”></thana>
<thana id=”Palashbari” value=”Palashbari”></thana>
<thana id=”Saghata” value=”Saghata”></thana>
<thana id=”Shadullhapur” value=”Shadullhapur”></thana>
<thana id=”Sundargonj” value=”Sundargonj”></thana>
</district>
<district id=”Kurigram” value=”Kurigram”>
<thana id=”Bhurungimari” value=”Bhurungimari”></thana>
<thana id=”Chilmari” value=”Chilmari”></thana>
<thana id=”Dusmara” value=”Dusmara”></thana>
<thana id=”Fulbari” value=”Fulbari”></thana>
<thana id=”Kachakata” value=”Kachakata”></thana>
<thana id=”Kurigram hq” value=”Kurigram hq”></thana>
<thana id=”Nageshori” value=”Nageshori”></thana>
<thana id=”Rajarhat” value=”Rajarhat”></thana>
<thana id=”Rajibpur” value=”Rajibpur”></thana>
<thana id=”Rowmari” value=”Rowmari”></thana>
<thana id=”Ulipur” value=”Ulipur”></thana>
</district>
<district id=”Lalmonirhat” value=”Lalmonirhat”>
<thana id=”Aditmari” value=”Aditmari”></thana>
<thana id=”Hatibanda” value=”Hatibanda”></thana>
<thana id=”Kaligonj” value=”Kaligonj”></thana>
<thana id=”Lalmonirhat hq” value=”Lalmonirhat hq”></thana>
<thana id=”Patgram” value=”Patgram”></thana>
</district>
<district id=”Nilphamari” value=”Nilphamari”>
<thana id=”Dimla” value=”Dimla”></thana>
<thana id=”Domar” value=”Domar”></thana>
<thana id=”Jhaldhaka” value=”Jhaldhaka”></thana>
<thana id=”Kisharegonj” value=”Kisharegonj”></thana>
<thana id=”Nilphamari hq” value=”Nilphamari hq”></thana>
<thana id=”Syedpur” value=”Syedpur”></thana>
</district>
<district id=”Panchagarh” value=”Panchagarh”>
<thana id=”Atwari” value=”Atwari”></thana>
<thana id=”Boda” value=”Boda”></thana>
<thana id=”Debogonj” value=”Debogonj”></thana>
<thana id=”Ponchogar” value=”Ponchogar”></thana>
<thana id=”Tetulia” value=”Tetulia”></thana>
</district>
<district id=”Rangpur” value=”Rangpur”>
<thana id=”Badorgonj” value=”Badorgonj”></thana>
<thana id=”Gongachara” value=”Gongachara”></thana>
<thana id=”Kotwali” value=”Kotwali”></thana>
<thana id=”Kownia” value=”Kownia”></thana>
<thana id=”Mithapukur” value=”Mithapukur”></thana>
<thana id=”Pirgacha” value=”Pirgacha”></thana>
<thana id=”Pirganj” value=”Pirganj”></thana>
<thana id=”Rangpur Pourasava” value=”Rangpur Pourasava”></thana>
<thana id=”Taragonj” value=”Taragonj”></thana>
</district>
<district id=”Thakurgaon” value=”Thakurgaon”>
<thana id=”Baliadangi” value=”Baliadangi”></thana>
<thana id=”Haripur” value=”Haripur”></thana>
<thana id=”Pirganj” value=”Pirganj”></thana>
<thana id=”Ranishonkail” value=”Ranishonkail”></thana>
<thana id=”Thakurgaon sador” value=”Thakurgaon sador”></thana>
</district>
</division>
<division id=”Sylhet” value=”Sylhet”>
<district id=”Habiganj” value=”Habiganj”>
<thana id=”Ajmirigonj” value=”Ajmirigonj”></thana>
<thana id=”Bahubal” value=”Bahubal”></thana>
<thana id=”Baniachang” value=”Baniachang”></thana>
<thana id=”Chunarughat” value=”Chunarughat”></thana>
<thana id=”Habigonj hq” value=”Habigonj hq”></thana>
<thana id=”Lakhai” value=”Lakhai”></thana>
<thana id=”Madabpur” value=”Madabpur”></thana>
<thana id=”Nabigonj” value=”Nabigonj”></thana>
<thana id=”Shaestagonj” value=”Shaestagonj”></thana>
</district>
<district id=”Moulvibazar” value=”Moulvibazar”>
<thana id=”Barolekha” value=”Barolekha”></thana>
<thana id=”Juri” value=”Juri”></thana>
<thana id=”Kamalgonj” value=”Kamalgonj”></thana>
<thana id=”Kulaura” value=”Kulaura”></thana>
<thana id=”Moulobi bazar hq” value=”Moulobi bazar hq”></thana>
<thana id=”Rajnagor” value=”Rajnagor”></thana>
<thana id=”Srimangol” value=”Srimangol”></thana>
</district>
<district id=”Sunamganj” value=”Sunamganj”>
<thana id=”Bisshambarpur” value=”Bisshambarpur”></thana>
<thana id=”Chhatok” value=”Chhatok”></thana>
<thana id=”Dharmapasha” value=”Dharmapasha”></thana>
<thana id=”Dhoarabazar” value=”Dhoarabazar”></thana>
<thana id=”Dirai” value=”Dirai”></thana>
<thana id=”Jagannathpur” value=”Jagannathpur”></thana>
<thana id=”Jamalgonj” value=”Jamalgonj”></thana>
<thana id=”Madaianagar” value=”Madaianagar”></thana>
<thana id=”Sullah” value=”Sullah”></thana>
<thana id=”Sunamgonj  shader” value=”Sunamgonj  shader”></thana>
<thana id=”Tahirpur” value=”Tahirpur”></thana>
</district>
<district id=”Sylhet” value=”Sylhet”>
<thana id=”Balagonj” value=”Balagonj”></thana>
<thana id=”Bianibazar” value=”Bianibazar”></thana>
<thana id=”Bisshanath” value=”Bisshanath”></thana>
<thana id=”Companigonj” value=”Companigonj”></thana>
<thana id=”Daxin surma” value=”Daxin surma”></thana>
<thana id=”Fenchugonj” value=”Fenchugonj”></thana>
<thana id=”Goainghat” value=”Goainghat”></thana>
<thana id=”Golapgonj” value=”Golapgonj”></thana>
<thana id=”Jaintapur” value=”Jaintapur”></thana>
<thana id=”Jokigonj” value=”Jokigonj”></thana>
<thana id=”Kanighat” value=”Kanighat”></thana>
<thana id=”Kotwali” value=”Kotwali”></thana>
<thana id=”Osmani nagar” value=”Osmani nagar”></thana>
</district>
</division>
</root>

.aspx

<fieldset>
<legend>Contact</legend>
<asp:UpdatePanel ID=”UpdatePanel2″ UpdateMode=”Conditional” runat=”server”>
<ContentTemplate>
<script type=”text/javascript”>
Sys.Application.add_load(BindEvents);
</script>
<div style=”border: 1px solid #ccc; padding: 10px;”>
<div align=”left” style=”font-size: 14px; font-weight: bold; color: Gray; padding: 5px;”>
Present Address</div>
<br />
<table width=”700px”>
<tr>
<td>
Division
</td>
<td>
:
</td>
<td>
<asp:DropDownList ID=”WizddlPreDivision” runat=”server” class=”form-control” AutoPostBack=”true”
Width=”212px” OnSelectedIndexChanged=”WizddlPreDivision_SelectedIndexChanged”>
</asp:DropDownList>
</td>
<td>
District
</td>
<td>
:
</td>
<td>
<asp:DropDownList ID=”WizddlPreDistrict” runat=”server” class=”form-control” AutoPostBack=”true”
Width=”212px” OnSelectedIndexChanged=”WizddlPreDistrict_SelectedIndexChanged”>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Thana
</td>
<td>
:
</td>
<td>
<asp:DropDownList ID=”WizddlPreThana” runat=”server” class=”form-control” Width=”212px”>
</asp:DropDownList>
</td>
<td>
Addresss
</td>
<td>
:
</td>
<td>
<asp:TextBox ID=”WiztxtPreAddresss” MaxLength=”80″ runat=”server” class=”form-control”
Width=”200px” Height=”80px” TextMode=”MultiLine”></asp:TextBox>
<span id=”pre_countchars”></span>Characters Remaining
</td>
</tr>
</table>
</div>
<br />
<div style=”border: 1px solid #ccc; padding: 10px;”>
<div align=”left” style=”font-size: 14px; font-weight: bold; color: Gray; padding: 5px;”>
Permanent Address</div>
<br />
<table width=”700px”>
<tr>
<td>
Division
</td>
<td>
:
</td>
<td>
<asp:DropDownList ID=”WizddlPerDivision” runat=”server” class=”form-control” AutoPostBack=”true”
Width=”212px” OnSelectedIndexChanged=”WizddlPerDivision_SelectedIndexChanged”>
</asp:DropDownList>
</td>
<td>
District
</td>
<td>
:
</td>
<td>
<asp:DropDownList ID=”WizddlPerDistrict” runat=”server” class=”form-control” AutoPostBack=”true”
Width=”212px” OnSelectedIndexChanged=”WizddlPerDistrict_SelectedIndexChanged”>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Thana
</td>
<td>
:
</td>
<td>
<asp:DropDownList ID=”WizddlPerThana” runat=”server” class=”form-control” Width=”212px”>
</asp:DropDownList>
</td>
<td>
Addresss
</td>
<td>
:
</td>
<td>
<asp:TextBox ID=”WiztxtPerAddresss” runat=”server” MaxLength=”80″ class=”form-control”
Width=”200px” Height=”80px” TextMode=”MultiLine”></asp:TextBox>
<span id=”per_countchars”></span>Characters Remaining
</td>
</tr>
</table>
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID=”WizddlPreDivision” EventName=”SelectedIndexChanged” />
<asp:AsyncPostBackTrigger ControlID=”WizddlPerDivision” EventName=”SelectedIndexChanged” />
<asp:AsyncPostBackTrigger ControlID=”WizddlPreDistrict” EventName=”SelectedIndexChanged” />
<asp:AsyncPostBackTrigger ControlID=”WizddlPerDistrict” EventName=”SelectedIndexChanged” />
</Triggers>
</asp:UpdatePanel>
<br />
</fieldset>

 

<%–+++++++++++++++++++++++++++ Start  Text Box Character Count+++++++++++++++++++++++++++++++++++++++–%>
<script type=”text/javascript”>
function BindEvents() {

$(document).ready(function () {

var pre_totalChars = 80; //Total characters allowed in textarea
var countTextBox_pre = $(“#<%=WiztxtPreAddresss.ClientID %>”); //$(‘#counttextarea’) // Textarea input box
var charsCountEl_pre = $(‘#pre_countchars’); // Remaining chars count will be displayed here
var count1 = countTextBox_pre.val().replace(/{.*}/g, ”).length;
charsCountEl_pre.text(pre_totalChars – count1); //initial value of countchars element

countTextBox_pre.keyup(function () { //user releases a key on the keyboard
var thisChars = this.value.replace(/{.*}/g, ”).length; //get chars count in textarea
if (thisChars > pre_totalChars) //if we have more chars than it should be
{
var CharsToDel = (thisChars – pre_totalChars); // total extra chars to delete
this.value = this.value.substring(0, this.value.length – CharsToDel); //remove excess chars from textarea
} else {
charsCountEl_pre.text(pre_totalChars – thisChars); //count remaining chars
}
});

var per_totalChars = 80;
var countTextBox_per = $(“#<%=WiztxtPerAddresss.ClientID %>”);
var charsCountEl_per = $(‘#per_countchars’);
var count2 = countTextBox_per.val().replace(/{.*}/g, ”).length;
charsCountEl_per.text(per_totalChars – count2);

countTextBox_per.keyup(function () { //user releases a key on the keyboard
var thisChars = this.value.replace(/{.*}/g, ”).length; //get chars count in textarea
if (thisChars > per_totalChars) //if we have more chars than it should be
{
var CharsToDel = (thisChars – per_totalChars); // total extra chars to delete
this.value = this.value.substring(0, this.value.length – CharsToDel); //remove excess chars from textarea
} else {
charsCountEl_per.text(per_totalChars – thisChars); //count remaining chars
}
});
});

}

$(document).ready(function () {

var gar_totalChars = 80;
var countTextBox_gar = $(“#<%=WiztxtGardianAddress.ClientID %>”);
var charsCountEl_gar = $(‘#gar_countchars’);
var count3 = countTextBox_gar.val().replace(/{.*}/g, ”).length;
charsCountEl_gar.text(gar_totalChars – count3);

countTextBox_gar.keyup(function () { //user releases a key on the keyboard
var thisChars = this.value.replace(/{.*}/g, ”).length; //get chars count in textarea
if (thisChars > gar_totalChars) //if we have more chars than it should be
{
var CharsToDel = (thisChars – gar_totalChars); // total extra chars to delete
this.value = this.value.substring(0, this.value.length – CharsToDel); //remove excess chars from textarea
} else {
charsCountEl_gar.text(gar_totalChars – thisChars); //count remaining chars
}
});

//            $(document).ready(function () {
//                $(‘#MyTextBox’).bind(‘copy paste cut’, function (e) {
//                    e.preventDefault(); //disable cut,copy,paste
//                });
//            });
});
</script>
<%–+++++++++++++++++++++++++++  End Text Box Character Count+++++++++++++++++++++++++++++++++++++++–%>

.cs

ArrayList arrydivision = new ArrayList();
ArrayList arrydistrict = new ArrayList();
ArrayList arrythana = new ArrayList();

DivisionLoad();
DistrictLoad();
ThanaLoad();

public void DivisionLoad()
{
//String qs = “SELECT DIVISIONID,DIVISIONNAME FROM division”;
//ClsCommon.drplistAdd(WizddlPreDivision, qs, “DIVISIONNAME”, “DIVISIONID”);
//ClsCommon.drplistAdd(WizddlPerDivision, qs, “DIVISIONNAME”, “DIVISIONID”);

arrydivision.Clear();

XDocument doc = XDocument.Load(Server.MapPath(“.”) + “\\LGED.xml”);
arrydivision.Add(“Select”);
foreach (XElement item2 in doc.Descendants(“root”).Elements(“division”))
{
String value = (string)item2.Attribute(“value”);

arrydivision.Add(value);
}

WizddlPerDivision.DataSource = arrydivision;
WizddlPerDivision.DataBind();

WizddlPreDivision.DataSource = arrydivision;
WizddlPreDivision.DataBind();
}

public void DistrictLoad()
{
//String qs = “SELECT DISTRICTNAME, DISTRICTID FROM district”;
//ClsCommon.drplistAdd(WizddlPreDistrict, qs, “DISTRICTNAME”, “DISTRICTID”);
//ClsCommon.drplistAdd(WizddlPerDistrict, qs, “DISTRICTNAME”, “DISTRICTID”);

arrydistrict.Clear();

XDocument doc = XDocument.Load(Server.MapPath(“.”) + “\\LGED.xml”);
arrydistrict.Add(“Select”);
foreach (XElement item3 in doc.Descendants(“division”).Elements(“district”))
{
String value = (string)item3.Attribute(“value”);

arrydistrict.Add(value);
}

WizddlPerDistrict.DataSource = arrydistrict;
WizddlPerDistrict.DataBind();

WizddlPreDistrict.DataSource = arrydistrict;
WizddlPreDistrict.DataBind();
}

public void ThanaLoad()
{
//String qs = “SELECT THANAID,THANANAME FROM thana”;
//ClsCommon.drplistAdd(WizddlPreThana, qs, “THANANAME”, “THANAID”);
//ClsCommon.drplistAdd(WizddlPerThana, qs, “THANANAME”, “THANAID”);

arrythana.Clear();

XDocument doc = XDocument.Load(Server.MapPath(“.”) + “\\LGED.xml”);
arrythana.Add(“Select”);
foreach (XElement item4 in doc.Descendants(“district”).Elements(“thana”))
{
String value = (string)item4.Attribute(“value”);

arrythana.Add(value);
}

WizddlPerThana.DataSource = arrythana;
WizddlPerThana.DataBind();

WizddlPreThana.DataSource = arrythana;
WizddlPreThana.DataBind();
}

protected void WizddlPreDivision_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
//String qs = “SELECT DISTRICTNAME, DISTRICTID FROM district WHERE DIVISIONID='” + WizddlPreDivision.SelectedValue.Trim() + “‘”;
//ClsCommon.drplistAdd(WizddlPreDistrict, qs, “DISTRICTNAME”, “DISTRICTID”);

String Division = WizddlPreDivision.SelectedItem.Text.Trim();

XDocument doc = XDocument.Load(Server.MapPath(“.”) + “\\LGED.xml”);

//ArrayList arrydistrict = new ArrayList();
arrydistrict.Clear();

XElement item3 = doc.Descendants(“division”).FirstOrDefault(itm => (string)itm.Attribute(“id”) == Division);
arrydistrict.Add(“Select”);
foreach (XElement itm in item3.Elements(“district”))
{
String value = (string)itm.Attribute(“value”);

arrydistrict.Add(value);
}

WizddlPreDistrict.DataSource = arrydistrict;
WizddlPreDistrict.DataBind();
}
catch (Exception ex) { }

WizddlPreDistrict.Enabled = true;
}

protected void WizddlPerDivision_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
//String qs = “SELECT DISTRICTNAME, DISTRICTID FROM district WHERE DIVISIONID='” + WizddlPerDivision.SelectedValue.Trim() + “‘”;
//ClsCommon.drplistAdd(WizddlPerDistrict, qs, “DISTRICTNAME”, “DISTRICTID”);

String Division = WizddlPerDivision.SelectedItem.Text.Trim();

XDocument doc = XDocument.Load(Server.MapPath(“.”) + “\\LGED.xml”);

//ArrayList arrydistrict = new ArrayList();
arrydistrict.Clear();

XElement item3 = doc.Descendants(“division”).FirstOrDefault(itm => (string)itm.Attribute(“id”) == Division);
arrydistrict.Add(“Select”);
foreach (XElement itm in item3.Elements(“district”))
{
String value = (string)itm.Attribute(“value”);

arrydistrict.Add(value);
}

WizddlPerDistrict.DataSource = arrydistrict;
WizddlPerDistrict.DataBind();
}
catch (Exception ex) { }

WizddlPerDistrict.Enabled = true;
}

protected void WizddlPreDistrict_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
//String qs = “SELECT THANAID,THANANAME FROM thana WHERE DISTRICTID='” + WizddlPreDistrict.SelectedValue.Trim() + “‘”;
//ClsCommon.drplistAdd(WizddlPreThana, qs, “THANANAME”, “THANAID”);

String District = WizddlPreDistrict.SelectedValue.Trim();

XDocument doc = XDocument.Load(Server.MapPath(“.”) + “\\LGED.xml”);

//ArrayList arrythana = new ArrayList();
arrythana.Clear();

XElement item1 = doc.Descendants(“district”).FirstOrDefault(itm => (string)itm.Attribute(“id”) == District);
arrythana.Add(“Select”);
foreach (XElement itm in item1.Elements(“thana”))
{
String value = (string)itm.Attribute(“value”);

arrythana.Add(value);
}

WizddlPreThana.DataSource = arrythana;
WizddlPreThana.DataBind();
}
catch (Exception ex) { }

WizddlPreThana.Enabled = true;
}

protected void WizddlPerDistrict_SelectedIndexChanged(object sender, EventArgs e)
{
try
{
//String qs = “SELECT THANAID,THANANAME FROM thana WHERE DISTRICTID='” + WizddlPerDistrict.SelectedValue.Trim() + “‘”;
//ClsCommon.drplistAdd(WizddlPerThana, qs, “THANANAME”, “THANAID”);

String District = WizddlPerDistrict.SelectedValue.Trim();

XDocument doc = XDocument.Load(Server.MapPath(“.”) + “\\LGED.xml”);

//ArrayList arrythana = new ArrayList();
arrythana.Clear();

XElement item1 = doc.Descendants(“district”).FirstOrDefault(itm => (string)itm.Attribute(“id”) == District);
arrythana.Add(“Select”);
foreach (XElement itm in item1.Elements(“thana”))
{
String value = (string)itm.Attribute(“value”);

arrythana.Add(value);
}

WizddlPerThana.DataSource = arrythana;
WizddlPerThana.DataBind();
}
catch (Exception ex) { }

WizddlPerThana.Enabled = true;
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s