---
title: "How to add an ImageButton to label"  
description: "How to add an ImageButton to label"  
author: "Anonymous User"  
published: 2014-09-29  
updated: 2014-09-29  
canonical: https://www.mindstick.com/forum/2276/how-to-add-an-imagebutton-to-label  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How to add an ImageButton to label

I am tring to [add](https://www.mindstick.com/forum/12983/add-address-in-textbox-when-page-is-load-and-if-i-search-address-in-textbox-show-in-map-by-javascript) an [ImageButton](https://www.mindstick.com/articles/12753/imagebutton-in-android) to a [label](https://www.mindstick.com/articles/12835/print-label-tracking-how-do-these-features-make-auspost-woocommerce-plugin-better) using C# but I don't success.... Can [someone help me](https://answers.mindstick.com/qa/42311/can-someone-help-me-with-this-question-about-political-parties)?

This is what I did- ([Delete](https://www.mindstick.com/forum/33620/how-to-delete-record-from-list-in-mvc-using-ajax) is the [name](https://yourviews.mindstick.com/view/87450/how-to-generate-a-brand-name-using-linkedin-comprehensive-guide) of the label)

```
var img = new ImageButton();img.ID = "delete" + i;img.ImageUrl = "images/1395958363_meanicons_57.png";img.OnClientClick = "Delete_Click";img.Width = 48;img.Height = 38;Delete.Page.Form.Controls.Add(img);
```

## Replies

### Reply by Sumit Kesarwani

Hi Chintoo, \
try this:\

<asp:button id="myButton" style="background-image:url('2.jpg'); background-color:red; cursor:hand;" Runat="server" Height="25px" BorderStyText="ButtonText" Width="200px" />


---

Original Source: https://www.mindstick.com/forum/2276/how-to-add-an-imagebutton-to-label

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
