I have this line:
<asp:HyperLink ID="awsImage" runat="server" Target="_blank"
ImageUrl='<%# Eval("ImageURL") %>' Width='<%# Eval("ImageWidth").ToString() %>'
Height='<%# Eval("ImageHeight").ToString() %>' ></asp:HyperLink>
And I get this error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0030: Cannot convert type 'string' to 'System.Web.UI.WebControls.Unit'
I also have tried simple Eval without .ToString but I get this error: This is the exact error I get if I use the Eval without .ToString
Exception Details: System.InvalidCastException: Specified cast is not valid.