这是一级目录:<TD style="WIDTH: 20%;HEIGHT: 80px"><A onmouseover="MM_swapImage('Image6','','button/mainbutton_6up.jpg',1)" onmouseout="MM_swapImgRestore()" onmousedown="MM_goToURL('parent.frames[\'main\']','Content.aspx?tabindex=6&connum=0');return document.MM_returnValue" href="top.aspx?id=6" id="href7"><IMG id="Image6" height="79" src="button/mainbutton_6out.jpg" width="80" border="0" name="Image6"></A></TD>
二级目录
<asp:datalist id="dltTab" runat="server" RepeatDirection="Horizontal" Width="311px" Height="15px" ShowHeader="False" ShowFooter="False" BorderWidth="0px" CellPadding="0" GridLines="Horizontal" BorderStyle="Dotted" HorizontalAlign="Left">
<SelectedItemStyle BorderColor="Red"></SelectedItemStyle>
<SeparatorStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></SeparatorStyle>
<ItemStyle Font-Size="8pt" Wrap="False" HorizontalAlign="Left" VerticalAlign="Bottom"></ItemStyle>
<ItemTemplate>
<!-- -->
<a href="<%# DataBinder.Eval(Container.DataItem,"url")%>" target = 'main'>
<font size=2 ><%# DataBinder.Eval(Container.DataItem,"name") %></font>
</a>
</ItemTemplate>
<SeparatorTemplate>
<FONT face="宋体">|</FONT>
</SeparatorTemplate>
</asp:datalist>
我想实现的是点一级目录的ImageBotton,然后填充二级目录的DataList。现在问题就是二级目录显示不出来,但运行又没有报错!!
二级目录
<asp:datalist id="dltTab" runat="server" RepeatDirection="Horizontal" Width="311px" Height="15px" ShowHeader="False" ShowFooter="False" BorderWidth="0px" CellPadding="0" GridLines="Horizontal" BorderStyle="Dotted" HorizontalAlign="Left">
<SelectedItemStyle BorderColor="Red"></SelectedItemStyle>
<SeparatorStyle Wrap="False" HorizontalAlign="Left" VerticalAlign="Middle"></SeparatorStyle>
<ItemStyle Font-Size="8pt" Wrap="False" HorizontalAlign="Left" VerticalAlign="Bottom"></ItemStyle>
<ItemTemplate>
<!-- -->
<a href="<%# DataBinder.Eval(Container.DataItem,"url")%>" target = 'main'>
<font size=2 ><%# DataBinder.Eval(Container.DataItem,"name") %></font>
</a>
</ItemTemplate>
<SeparatorTemplate>
<FONT face="宋体">|</FONT>
</SeparatorTemplate>
</asp:datalist>
我想实现的是点一级目录的ImageBotton,然后填充二级目录的DataList。现在问题就是二级目录显示不出来,但运行又没有报错!!
解决方案 »
- 服务器部署asp.net程序使CPU使用超高如何排查
- 在后台给TextBox设置只读属性的时候,设置Attributes["readonly"] = "readonly";取消 只读的又该怎么设置呢?
- c#如何读取asp的Cookie值?
- 如何让lable或者textbox控件属性的值text换行,急!!!
- 开发winform有前途吗?现在你们的情况是怎么样的?
- 非普通.net 数据库连接问题,难度不小(高手进来看看)!!
- ASP.NET将文字生成图像的功能!
- 网页中用了框架 在asp.net中怎样把数据从框架中的一个页面传递到另一个页面。
- 谁有vb.net 写的combobox控件的代码?
- 查找 datagrid
- 两个版本共存,高版本调试正常,低版本却出现问题。
- 问一个极其简单的数据库设计问题?
请指教啊!!!