Sir, I am working with asp.net(Without database).Here I just include some fields and show the data in a grid view (without database).Here I add 2 drop down list and it shows all countries and state using this,
<script src="List_Country_State-master/countries.js" type="text/javascript"></script>
<asp:DropDownList ID="ddl_country" runat="server" >
<asp:ListItem Enabled="false" Text="Select Country" Value="-1">
<script language="javascript" type="text/javascript">
populateCountries("ddl_country", "ddl_state");</script>
Then,
I want to display the country,state selected into a grid view. this is done by this code,
drCurrentRow["Country"] = ddl_country.Text;
Bt it gives the index number, not the text of what country selected and also same for state.
How can I Solve it. please help me