Hi,
How to display GridView personalizing image url on Hyperlink in C# ASP.NET
On my GridView in C# ASP NET I have set this HyperLink
<asp:HyperLink ID="hlimg" runat="server"
ImageUrl='<%# (!String.IsNullOrEmpty(Eval("ppt").ToString()) ? "/img/download.gif" : "/img/cross-button.png") %>'
NavigateUrl='<%# (!String.IsNullOrEmpty(Eval("ppt").ToString()) ? String.Format(Eval("ppt").ToString()) : "") %>'
ToolTip='<%#(!String.IsNullOrEmpty(Eval("ppt").ToString()) ? "Download Powerpoint" : "No Powerpoint")%>'
Enabled='<%#(!String.IsNullOrEmpty(Eval("ppt").ToString()) ? true : false)%>'
OnClick="return confirm('Confirm ?');">
</asp:HyperLink>
If on the database the field ppt" is null or empty the return on the row of GridView is
else
Now I need this new output if on the database the field "ppt" is populated
The cross-button.png should delete the attached powerpoint whose link is stored in the database table, then delete this link.
It's possible to place side by side the cross-button.png image to the download.gif image on ImageUrl attribute on HyperLink?
How to do resolve this?
Thanks in advance for any help.