Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE DropDownList, weird behaviour

Status
Not open for further replies.

kristof

Programmer
Jun 2, 2000
234
0
0
BE
Hi,

I'm populating an asp:DropDownList from a DataSet, and I get a very weird result.

I have this number (0099471468240) that gets shown like this: ' 009... ', within the dropdown. Although in code, it clearly is what it should be: 0099471468240.

Now the weird thing is that it works fine in FireFox, NOT in IE7 (on vista).

FireFox HTML source code

Code:
<select name="ctl00$CPHolderData$DdlSenderID" id="ctl00_CPHolderData_DdlSenderID">
	<option selected="selected" value="0099471468240">0099471468240</option>
	<option value="0099472013546">0099472013546</option>
	<option value="0099472891115">0099472891115</option>

	<option value="0099478184139">0099478184139</option>
	<option value="0099478184161">0099478184161</option>
	<option value="0099479056140">0099479056140</option>
	<option value="00997937012210">00997937012210</option>

</select>

IE HTML source code

Code:
<select name="ctl00$CPHolderData$DdlSenderID" id="ctl00_CPHolderData_DdlSenderID">
	<option selected="selected" value="0099471468240">0099471468240</option>
	<option value="0099472013546">0099472013546</option>
	<option value="0099472891115">0099472891115</option>
	<option value="0099478184139">0099478184139</option>
	<option value="0099478184161">0099478184161</option>
	<option value="0099479056140">0099479056140</option>
	<option value="00997937012210">00997937012210</option>

</select>

Unless I'm missing something, I think the code is the same?

Any idea what's causing this?

Thanks,

Kristof
 
I had one using style, previously, but I removed it. That didn't change anything though.

This is the asp code I have now:

Code:
<asp:DropDownList ID="DdlID" runat="server" AutoPostBack="False" OnSelectedIndexChanged="DdlID_SelectedIndexChanged">
            </asp:DropDownList>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top