The following code gives two "Identifier expected" errors

A

AAaron123

The following code gives two

Identifier expected

errors. I've indicated the spots with comments enclosed within ||

If I comment out the anchor element that contains the second error I get no errors.

Very confusing!

I would have like to removed some lines to make it easier to look at but was afraid I'd remove something significant.



Thanks in advance for any help





asp:content id="Content1" contentplaceholderid="RightCPH" runat="server">

<asp:CheckBox ID="CheckBox2" runat="server" />

<asp:formview id="FormView1" runat="server" datasourceid="ObjectDataSource1"

borderstyle="none" borderwidth="0" CellPadding="0" cellspacing="0" EnableViewState="false">

<itemtemplate>


<p><%# Server.HtmlEncode(Eval("Caption").ToString()) %>||THE NEXT ANGLE CHARACTER||</p>


<img src="../Albums/Handler.ashx?PhotoID=<%# Eval("PhotoID") %>&Size=L" style="border:4px solid white" alt='Photo Number <%# Eval("PhotoID") %>' /></a>

<br /><br /><br /><br />

</itemtemplate>

</asp:formview>

<p>

||THIS LINE NO COLUMN WAS GIVEN||<a href='../Albums/ActualSize.aspx?AlbumID=<%# Eval("AlbumID") %>&Page=<%# Container. %>'>

Click to See Actual Size Photo</a>

</p>


<asp:ObjectDataSource ID="ObjectDataSource1" Runat="server" TypeName="PhotoManager"

SelectMethod="GetPhotos">

<SelectParameters>

<asp:QueryStringParameter Name="AlbumID" Type="Int32" QueryStringField="AlbumID" DefaultValue="0"/>

</SelectParameters>

</asp:ObjectDataSource>

<input type="button" value="Return to Albums" onclick="window.location='Albums.aspx';" />

</asp:content>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top