Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unrecognized Escape Sequence in DataList template
Message
De
16/07/2008 09:51:06
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
16/07/2008 09:43:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01331606
Message ID:
01331627
Vues:
6
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform