Author: Lankababa | Posted on: 1/24/2010 2:38:51 PM | Views : 261

I've found this piece of code that seems to work fine when in a vb enviroment.
But when I put it in a cs page it errors.
 
Compiler Error Message: CS1026: ) expected

Source Error:
 Line 69: <table border="1" width="600" cellpadding="2">Line 70:  <tr>Line 71:    <td colspan="5"><asp:HyperLink runat="server" NavigateUrl='<%# Eval("Id", "~/ShowAd.aspx?id={0}") %>'><asp:Image runat="server" ImageUrl='<%# IIf(Eval("PreviewImageId") Is DbNull.Value, "Images/NoImage-Sm.jpg", Eval("PreviewImageId", "PhotoDisplay.ashx?photoid={0}&size=Small")) %>' />Line 72: </asp:HyperLink>Line 73:  </ ...

Go to the complete details ...