close
http://www.c-sharpcorner.com/UploadFile/0c1bb2/display-country-list-without-database-in-Asp-Net-C-Sharp/
<body>
<form id="form1" runat="server">
<div class="div" align="center">
<br /> <br />
<asp:DropDownList ID="DropDownList1" runat="server" Width="100px">
</asp:DropDownList>
</div>
</form>
</body>
Then switch to view code and create the following method in the default.aspx.cs to get the country list using Globalization:
Now call the preceding method on page load with the dropdonlist to bind the country list as:
全站熱搜
留言列表