开发者

in this code the hyperlink does not work

The generated hyperlinks in the following code don't work:

<marquee onmouseover="this.stop()" onmouseout="this.start()">
  <asp:Repeater ID="Repeater2" runat="server" DataSourceID="ObjectDataSource2">
    <ItemTemplate>
      <img src="images/news-icon.jpg" width="14" height="16"
      />&nbsp;&nbsp;<as开发者_如何学Cp:HyperLink ID="HyperLink1" runat="server"
                       Text='<%# Eval("Subject") %>' ></asp:HyperLink>
    </ItemTemplate>
  </asp:Repeater>
</marquee>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server"
   SelectMethod="GetFlashNewsTrue" TypeName="NewsServies">
   </asp:ObjectDataSource>

What's the likely reason for this and how can I debug or fix it? Thanks!


you did not set NavigateUrl property in your hyperlink

<asp:HyperLink ID="HyperLink1" NavigateUrl="" runat="server"  Text='<%# Eval("Subject") %>' ></asp:HyperLink>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜