Cannot create an object of type 'System.Boolean'
I am trying to hide the imageButton and embed based on the data coming dfrom Database for that using the following code: 

<embed src='<%# Eval("FilePath") %>' type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="150" height="150" runat="server" Visible='<%= Eval("UploadType") == "V") %>'></embed>
                                                    <asp:ImageButton ID="ibtnHolder" runat="server" Width="130" Height="130" ImageUrl='<%# Eval("FilePath") %>' Visible='<%= Eval("UploadType") != "V") %>' />

But when i run the above code it gives Error

Cannot create an object of type 'System.Boolean' from its string representation '<%= Eval("UploadType") == "V") %>' for the 'Visible' property.

can any one suggest how can i resolve
                                                       
Cannot create an object of type 'System.Boolean'
===

I am trying to hide the imageButton and embed based on the data coming dfrom Database for that using the following code: 

<embed src='<%# Eval("FilePath") %>' type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="150" height="150" runat="server" Visible='<%= Eval("UploadType") == "V") %>'></embed>
                                                    <asp:ImageButton ID="ibtnHolder" runat="server" Width="130" Height="130" ImageUrl='<%# Eval("FilePath") %>' Visible='<%= Eval("UploadType") != "V") %>' />

But when i run the above code it gives Error

Cannot create an object of type 'System.Boolean' from its string representation '<%= Eval("UploadType") == "V") %>' for the 'Visible' property.

can any one suggest how can i resolve
                                                       