Expression web 4 aspx help

Ed Miliband

Old-Salt
I'm currently converting a website built using Frontpage to one using Expression web 4. In Frontpage it's easy to conditionally format the data returned from an Access database query using statements such as:

<% If x = 0 then %>
<% If fp_rs("PosterID") <> "" then %>
<% If fp_rs("wide") = True then %>
<p align="center">
<img border="0" src="images/posters/<%=FP_FieldVal(fp_rs,"PosterID")%>.jpg" width="604" height="399" align="center">
<% else %>
<p align="center">
<img border="0" src="images/posters/<%=FP_FieldVal(fp_rs,"PosterID")%>.jpg" width="323" height="444" align="center">
<% end if %>
<% x = x + 1 %>
<% end if %>
<% end if %>

I've searched the web but cannot see any how I can use the same logic to format the results in a gridview control i.e.
<asp:BoundField DataField="Event_ID" HeaderText="PosterID" ReadOnly="True" SortExpression="PosterID">
</asp:BoundField>

Is anyone able to post an example of how this could be achieved in EW4?
 

Latest Threads

Top