今天在asp.net1.1 项目中遇到了这样的问题
同一页面的datagrid,同事的显示效果与我系统上有明显差别
经检查发现问题在于
<asp:datagrid id="datagrid1" runat="server" Width="100%" CellSpacing="2" AutoGenerateColumns="False" Caption="用户列表" GridLines="Vertical">
页面输出在同事浏览器为:
<table cellspacing="2" rules="cols" border="1" id="table1" style="width:100%;">
<caption>用户列表</caption>
<caption>用户列表</caption>
而在我的浏览器上为:
<table cellspacing="2" rules="cols" Caption="用户列表" border="1" id="table1" style="width:100%;">
另查看IDE内datagrid属性,发现在我的IDE内,datagrid不具有Caption属性。
我:
Windows2003Server + IE6.0 + IIS 6.0 + VS2003 SP1
同事:
Windows2003Server + IE6.0 + IIS 6.0 + VS2003
最后初步得出判断是SP1的问题,具体原因还没研究,不知道MS这么做有什么含义.
浙公网安备 33010602011771号