Ok, this is not so much a BeerHouse question, so I hope it's ok I ask anyway. After all, this is where the elite hangs out
I use ListViews many places in my app, which is based on BeerHouse. For instance, in the ArticleListing, I use a ListView instead of a GridView.
In each ListItem, I have the Article Abstract followed by a linkbutton to read the entire article. Then comes a section with author name and edit/delete buttons. Also, there are the tags. (These tags are something I added to the design). Each tag is a link to a page that shows a list of articles with that tag.
All of this works perfectly in Firefox, but IE 6+7 screws everything up (surprize surprize).
What happens is that they pretty much turn most of the ListView Item into a link area. When I move the mouse around the area, I can see in the status bar that the link changes. Some of it links to where the linkbutton to read the entire article links to, and some of it links to where the edit button links to. Also, the non link text is underlined like links, and it gets that ugly standard blue color. The same thing happens on every page I use ListViews. Does this make any sense at all??
The reason I ask here is that I can't see anything wrong in my code, at least not anything that should cause this.
Code:
<div class="EntryInfo">
<span class="text1">Author:
<asp:Label ID="Label" CssClass="text1" runat="server" Text='<%# Eval("AddedBy") %>'></asp:Label></span>
<asp:Panel runat="server" ID="ImgButPanel" Visible='<%# UserCanEdit %>'>
<div class="editDeleteButtons right">
<asp:HyperLink ID="HyperLink1" CssClass="imgBut" runat="server" NavigateUrl='<%#"~/View/Admin /AddEditArticle.aspx?ID=" + Eval("ID") %>'
Text="<img border='0' src='../App_Themes/Theme1/Images/Edit.gif' alt='View articles'" />
<asp:ImageButton ID="deleteLink" CausesValidation="false" CommandName="Delete" OnClientClick="return confirm('Are you sure you want to delete this record?');"
ImageUrl="../App_Themes/Theme1/Images/Delete.gif" runat="server" />
</div>
</asp:Panel>
<p>
<asp:ListView ID="ListViewTags" runat="server" DataSource='<%# Eval("Tags") %>' ItemPlaceholderID="tags"
DataKeyNames="ID">
<LayoutTemplate>
<asp:Label ID="TagLabel" CssClass="" runat="server" Text="Tags:"></asp:Label></span>
<asp:PlaceHolder runat="server" ID="tags"></asp:PlaceHolder>
</LayoutTemplate>
<ItemTemplate>
<span>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"~/View/ArticleByTag.aspx?tagID=" + Eval("ID") %>'
Text='<%# Eval("TagName") %>' /></span> </span>
</ItemTemplate>
<EmptyDataTemplate>
<asp:Label ID="TagLabel" CssClass="" runat="server" Text="No tags:"></asp:Label></span>
</EmptyDataTemplate>
</asp:ListView>
</p>
</div>
This ListView is nested in another ListView, but the problem is the same in non nested ListViews.
Have any of you had any weird behaviour when using ListViews in said browsers?
I wish all browsers worked like FF...
Soeren