Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm having a weird problem with IE 9 developing with ASP.NET 2010. I have three drop down menu that dynamically populate the list under based on selection. Even though the item show correctly in the drop down (Not cut off). When you select something it cuts off either the last or last two characters even though the length of the drop down list is much larger than the text.

Page (Just showing the two with the problem):
C#
<tr><td>Divsion Code:</td><td><asp:DropDownList ID="locDivCodeDropDownList" runat="server" AutoPostBack="True"  Width ="150px"
                                                onselectedindexchanged="locDivCodeDropDownList_SelectedIndexChanged" />
  <asp:RequiredFieldValidator ID="reqLocDivCode" runat="server" ControlToValidate ="locDivCodeDropDownList" InitialValue="" ValidationGroup ="locVal"
                              ToolTip ="Please select Division Code." ForeColor ="Red">*</asp:RequiredFieldValidator></td></tr>

<tr><td>Location Code:</td><td><asp:DropDownList ID="locLocCodeDropDownList" runat="server" AutoPostBack="True" Width="150px"
                                                 onselectedindexchanged="locLocCodeDropDownList_SelectedIndexChanged" />
  <asp:RequiredFieldValidator ID="reqLocLocCode" runat="server" ControlToValidate ="locLocCodeDropDownList" InitialValue="" ValidationGroup ="locVal"
                              ToolTip ="Please select Location Code." ForeColor ="Red">*</asp:RequiredFieldValidator> </td></tr>



Code Behind:
C#
protected void locDivCodeDropDownList_SelectedIndexChanged(object sender, EventArgs e)
{
  clearGridViews(false);
  clearLocGridView(false);

  LocationsTableAdapter.FillLocationsBasedOnDivisionSearch(LocationsDataTable, locDivCodeDropDownList.SelectedValue,UserSession.editTargetLoctionsList,"%");

  locLocCodeDropDownList.DataSource = LocationsDataTable;
  locLocCodeDropDownList.DataTextField = "locCode";
  locLocCodeDropDownList.DataValueField = "id";
  locLocCodeDropDownList.DataBind();
  locLocCodeDropDownList.Items.Insert(0, new ListItem("", ""));
  locLocCodeDropDownList.SelectedIndex = 0;

    hidAccordionIndex.Value = "1";
}
Posted
Updated 4-Apr-14 5:04am
v2
Comments
Magic Wonder 5-Jun-14 7:39am    
Is this issue in display of data text or in data value? Kindly clarify.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900