I am trying to impliment the extensions to the Club Starter kit as described
at:
http://msdn.microsoft.com/asp.net/de...bwebsitesk.asp
but when I build the hyperlinks in the Gridview Column template as described
at the end of the article I am getting two errors on each of the hyperlinks
("Characer is not valid" and "Expression Expected"). I've included the code
from one of these instances below. The errors point to the line with the
NavigateURL expression. Any thoughts on what is wrong here?
=============== =============== =============== =============
<asp:GridView ID="GridView1" runat="server" Width="75%" AllowPaging="Tr ue"
AllowSorting="T rue" AutoGenerateCol umns="False" DataKeyNames="D ocumentID"
DataSourceID="S qlDataSource2">
<Columns>
<asp:CommandFie ld ShowSelectButto n="True" />
<asp:TemplateFi eld HeaderText="Doc umentName" SortExpression= "DocumentNa me">
<EditItemTempla te>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("DocumentN ame")
%>'></asp:TextBox>
</EditItemTemplat e>
<ItemTemplate >
<asp:HyperLin k ID="HyperLink2 " runat="server" NavigateUrl='<% # <%#
Eval("DocumentN ame", @"~\Files\{0 }") %> %>'
Text='<%# Eval("DocumentN ame") %>'></asp:HyperLink>
</ItemTemplate>
</asp:TemplateFie ld>
<asp:BoundFie ld DataField="Date Input" HeaderText="Dat eInput"
SortExpression= "DateInput" />
<asp:BoundFie ld DataField="Comm ents" HeaderText="Com ments"
SortExpression= "Comments" />
</Columns>
</asp:GridView>
=============== =============== =============== ==