2

I am working on a project and in the registration page I want to get a list of all countries in a dropdown list through google API. i used cultureInfo but it get list of just unik 127 countries. i want to use google Map API. Can anyone please show me what I need to do in the Controller, the View and model or whatever is required ? I have a view of the registraion page

@model Retail_MVC.Models.registration
@{

    Layout = null;
}

<div class="my_wrapper">
         <div class="my_left_box">
            @Html.LabelFor(model => model.username)
         </div>
         <div class="my_right_box">
           <input type="text" id="txtusername" name="UserName"/>         
         </div>

   </div>
  -- here i want to get dropdownlist for all countries--
Towhid
  • 1,920
  • 3
  • 36
  • 57
Abhijit Pandya
  • 705
  • 2
  • 12
  • 33
  • May I ask why do you need to use google map API?Otherwise this link (http://stackoverflow.com/questions/7763240/asp-net-mvc-3-mvc-3-razor-country-selection-drop-down-list) may help you. – Towhid Jan 30 '13 at 06:44
  • i already used this method but it does not show all countries in world. – Abhijit Pandya Jan 30 '13 at 07:12

0 Answers0