Since I like the expand/collapse feature, I am currently using an Expandable List template to show off my list. Due to my requirement's, I found a way for each list item to be seen in a new page by having a hyperlink based off of this: '<%# Eval("UrlName")%>'.
I got it to work based on the requirements needed, however I figured out that when my list item title has an apostrophe, the url name gets truncated and so I end up getting a broken link.
This post gave me insight on what's wrong which is that I need runat="server" in my template to work.
However, when I do that by doing an <asp hyperlink> instead of <a href> I get this error: A potentially dangerous Request.Path value was detected from the client (<).
Adding this to the template gives me the right link, however I don't like that I can't change the page where it goes to nor change the text, it simply has the title as the text.
<sf:DetailsViewHyperLink runat="server" id="detailLink" TextDataField="Title" ToolTipDataField="Description" data-sf-field="Title" data-sf-ftype="ShortText"></sf:DetailsViewHyperLink>
Does anyone know a way around this? Basically, I still would like to use the expandable list template for list items, but still have a way to access the individual list item in a separate page via a modifiable text that's a hyperlink.