View Single Post
  #6 (permalink)  
Old February 20th, 2012, 07:31 AM
shariful shariful is offline
Authorized User
Points: 56, Level: 1
Points: 56, Level: 1 Points: 56, Level: 1 Points: 56, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Nov 2010
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts

Hi Reza
Many thanks for your response to my problem.
I use your suggested code. Now I am having another problem, the countries DropDownList, 'ddlCountry', is now only displaying Indexes, NO names for the countries. However, it returns the country name at the code behind file, which was my initial problem. So, to fix the both problem, I, myself, amended the code like below:
<asp:DropDownList ID="ddlCountry" runat="server" Width="255px" TabIndex="11"
<asp:ListItem>Please Select Country</asp:ListItem>

Now it's working fine. I'm happy. But whether this is the right thing to do, I'm not sure.
Anyway, thank you again Reza for providing me some important hints to solve my problem.
Wish you all the best for your programming career.