简体   繁体   English

Internet Explorer和文本框

[英]Internet Explorer and textbox

Some of my co-workers are facing a problem with Internet Explorer. 我的一些同事正面临Internet Explorer的问题。 When they reach a page, a textbox is supposed to show a postal code on a french format (5 digits). 当他们到达页面时,一个文本框应该以法语格式(5位数字)显示邮政编码。

The point is, the textbox does what it's supposed to do on most cases, but when the postal code starts with a 0, it only shows the last 4 digits. 关键是,文本框可以执行大多数情况下的操作,但是邮政编码以0开头时,它仅显示最后4位数字。 The textbox's text is binded to a sql server database 文本框的文本已绑定到SQL Server数据库

<asp:TextBox ID="postal_code" runat="server" Text = '<%# Bind("postal_code") %>'></asp:TextBox>

and the postal codes are registred in the database as varchar (eg: '08300', '17560', ...), so there's no cast from int to string. 并且邮政编码在数据库中注册为varchar(例如:'08300','17560',...),因此没有从int到string的转换。 It works perfectly on other browsers (Mozilla, Chrome). 它可以在其他浏览器(Mozilla,Chrome)上完美运行。

Can somebody explain why Internet Explorer does that? 有人可以解释为什么Internet Explorer这样做吗? Thanks for your interest. 谢谢你的关注。

It seems the bug resolved itself after deleting cookies, so I guess that's coming from Internet Explorer version (7.X for some coworkers). 删除Cookie后,该错误似乎已自行解决,因此我想这是来自Internet Explorer版本(某些同事为7.X)。 I tried on Edge, but nothing happened. 我在Edge上尝试过,但没有任何反应。

Just in case, if that can help somebody in the future, deleting cookies might prove useful, or changing the browser or keeping it on last version. 以防万一,如果将来可以对某人有所帮助,则删除Cookie可能会有用,或者更改浏览器或将其保留在最新版本中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM