>>Hi all,
>>
>>I am not too good with asp but working on it. I have a DataList control on my form and am trying to add the ItemTemplate. What I get is the page directive is underlined with a message of "Unrecognized escape sequence". This goes away when I remove the everything between the Item Template tags. Anybody know which part of this is the problem and what I can change to make it work? Thank You
>>
>>
>>
>><mm:mmDataList ID="dlPhotos" runat="server" RepeatColumns="5"
>> RepeatDirection="Horizontal" BindingSource="AlbumPhoto" AccessLevel="Full"
>> BindingSourceMember="" ControlID="00000000-0000-0000-0000-000000000000"
>> IsPostBack="False" SecuritySetup="True" UserFieldName="">
>> <ItemTemplate>
>> <a href='< %# Eval("Filename", "./PhotoGallery/{0}") % >' target="_blank">
>> <asp:Image ID="PhotoImage" runat="server" Height="50px"
>> ImageUrl='< %# Eval("Filename", "~\PhotoGallery\{0}") % >'
>> ToolTip='< %# Eval("Memo") % >' Width="50px" />
>> </a>
>> </ItemTemplate>
>></mm:mmDataList>
>>
>>
>>Tim
>
>Try prefixing the strings that have a path in them with a @. ie:
>
>Eval("Filename", @"~\PhotoGallery\{0}")
>
>Cetin
WOW, if I had been writing C# code I would have done that automatically without thinking. Amazing how the mind tricks us. That did the trick, thanks a bunch Cetin!
Tim
Timothy Bryan