rajeshborn4u 0 Newbie Poster

The Internet explorer doesn't allow the dropdown list to show downwards.Hi,
I am trying to insert values into a dropdown list with a for loop.

I have a dropdown list like.

<div style="padding:200px 0">
    
    <asp:DropDownList ID="ddlno" runat="server" >
    
    </asp:DropDownList>

In the coding part, I have this.

int i;
        for (i = 1; i < 60; i++)
        {
            ddlno.Items.Add(Convert.ToString(i));
        }

In firefox , the dropdown list is showing downwards.its ok.

But my problem is with internet explorer. The dropdown list is showing upwards.But I want the dropdownlist to display downwards.


Thanks in Advance,

Rajesh

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.