这段代码为什么在IE7下就能显示数据.在IE6中就不能显示数据
<form id="form1" runat="server"><div style=" width:785px; margin:0 auto; text-align:center; ">
<uc1:top ID="Top1" runat="server" />
<div style=" width:785px; margin:0 auto; text-align:center; ">
<div style="background:url(images/nbj.gif); width:785px; height:40px"><div style="margin-top:20px; text-align:left"><img src="images/mxqy.jpg" /></div></div>
</div>
<div style=" width:785px; margin:0 auto; text-align:center; margin-top:8px; height:100%">
<asp:DataList ID="DataList1" runat="server" RepeatColumns="5" RepeatDirection="Horizontal" Width="780px">
<ItemTemplate>
<div style="width:156px; text-align:left; font-size:14px;line-height:25px"><a href="<%# DataBinder.Eval(Container.DataItem,"url")%>" target="_blank" style="font-size:14px; color:#000"><%# DataBinder.Eval(Container.DataItem,"title")%></a></div>
</ItemTemplate>
</asp:DataList> <webdiyer:aspnetpager id="AspNetPager1" runat="server" horizontalalign="Center" onpagechanged="AspNetPager1_PageChanged"
width="100%" PageSize="200"></webdiyer:aspnetpager></div>
</div>
<uc2:bottom ID="Bottom1" runat="server" />
</form> --------------------编程问答-------------------- CS代码是
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string region = Request.QueryString["region"];
ViewState["region"] = region;
int totalOrders = CatalogDataBase.GetOrder("P_GetOrderNumber3",region);
AspNetPager1.RecordCount = totalOrders;
bindData(region);
}
}
void bindData(string region)
{
DataList1.DataSource = DataBase.ExecuteReader(CommandType.StoredProcedure, "P_GetPagedOrdersQiye",
new SqlParameter("@startIndex", AspNetPager1.StartRecordIndex),
new SqlParameter("@endIndex", AspNetPager1.EndRecordIndex),
new SqlParameter("@region", region)
);
DataList1.DataBind();
}
protected void AspNetPager1_PageChanged(object src, EventArgs e)
{
string region = ViewState["region"].ToString();
bindData(region);
}
为什么在IE6中会没有数据? --------------------编程问答-------------------- 顶上去!!!! --------------------编程问答-------------------- <div style=" width:785px; margin:0 auto; text-align:center; margin-top:8px; height:100%">
try remove height:100% --------------------编程问答-------------------- 还是不行呀..不知道为什么
补充:.NET技术 , ASP.NET