Asked By saranya
04-Feb-12 01:34 AM

Hi frndz!
Iam doing project in asp.net 2.0,c#. in my project customer have to upload photos in admin page and it should be displayed in the website, in image iam using facebox. when i click 1 image in facebox there sholud be 3 images has to run in facebox. so in admin page iam using. smallimagepath,bigimagepath ,bigimagepath1 ,bigimagepath2. in that small imagepath will display in website.when i click the small imagepath picture ,bigimagepath,bigimagepath1,bigimagepath2 these three picture has to run in facebox. For 1 image in facebox i done already but for next 2 images i tried but its showing error. Below is my code:
<asp:datalist id="dlDepts" runat="server" repeatcolumns="4" repeatdirection="Horizontal" repeatlayout="table" forecolor="darkred" ShowFooter ="true" OnSelectedIndexChanged="dlDepts_SelectedIndexChanged" ><itemtemplate>
<table width="220" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
//This line shows error// <td align="center" valign="middle"><a href="admin/upload/<%#DataBinder.Eval(Container.DataItem,"bigimagepath")%> <% #DataBinder.Eval(Container.DataItem,"bigimagepath1")%> <%#DataBinder.Eval(Container.DataItem,"bigimagepath2" )%>" rel="lightbox"><img src="admin/upload/<%#DataBinder.Eval(Container.DataItem,"smallimagepath")%>" alt="Small1" width="200" height="200" border="0" /></a>
</td>
</tr>
<tr>
<td width="180" height="30" align="left" valign="middle" class="h6">Code :<%#DataBinder.Eval(Container.DataItem, "code")%></td>
</tr>
<tr>
<td height="25" align="left" valign="middle">
<a href="javascript:OnClientOpen1('<%# DataBinder.Eval(Container.DataItem, "[id]") %>')" ><img src="images/order-now-button.png" width="74" height="17" border="0" /></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</itemtemplate>
<footerstyle
backcolor="darkred"
forecolor="lightyellow"
font-bold="true"
Iam getting error as:
CS1024: Preprocessor directive expected
/>
</asp:datalist>
Help me frndz