Compiler Error Message: CS0030: Cannot convert type 'System.Web.UI.Control' to 'System.Web.UI.WebControls.ImageField'
Line 107: protected void BookListView_DataBinding(object sender, EventArgs e)
Line 108: {
Line 109: ImageField img = (ImageField)BookListView.FindControlR("Image1");
Line 110: if (img.ImageUrl == "")
Line 111: img.ImageUrl = "Snoimage.gif";
the control is find but ...
error occured in line 109
FindControlR is an extension to find the control
the control is located in a listview
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Pic_Address") %>' />