how to use images in the asp:gridview using asp.net? -


how use images in grid view using asp.net?

actually want use images in place of text example in place of edit , delete want use images related text. possible use images please me

please define template way

<asp:templatefield headerstyle-width="40"> <itemtemplate>     <asp:imagebutton id="buttondelete" runat="server"           imageurl="~/imags/delete.png" onclick="buttondelete_click" tooltip="delete"         commandargument='<%#bind("userid")%>'/> </itemtemplate> </asp:templatefield> 

code behind

protected void buttondelete_click(object sender, eventargs e) { imagebutton button = sender imagebutton; deleteuserbyid(convert.toint32(button.commandargument)); } 

Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -