Reputation: 1074
In my gridview I've got a commandfield with the Edit and Update. The text is displaying instead of the images. What am I doing wrong?
<asp:GridView ID="gvFleetSheet" runat="server" AutoGenerateColumns="False"
AllowPaging="True" PageSize="7" Width="1959px" BorderColor="Black" BorderStyle="Solid"
CellPadding="3" BorderWidth="2px">
<Columns>
<asp:CommandField ShowEditButton="true" InsertImageUrl="\\sos-sp\websites\SAB_Requests\Images\ico_edit.bmp" UpdateImageUrl="\\sos-sp\websites\SAB_Requests\Images\submit.png" />
//other template fields....
</Columns>
<HeaderStyle BackColor="#FFFFCC" BorderColor="Black" BorderStyle="Solid"
BorderWidth="2px" />
</asp:GridView>
Upvotes: 0
Views: 878
Reputation: 1074
Image URL was wrong, should have been:
InsertImageUrl="~/sos-sp/websites/SAB_Requests/Images/ico_edit.bmp"
Upvotes: 0