I am tring to add an ImageButton to a label using C# but I don't success.... Can someone help me?
This is what I did- (Delete is the name 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);
Sumit Kesarwani
29-Sep-2014<asp:button id="myButton" style="background-image:url('2.jpg'); background-color:red; cursor:hand;" Runat="server" Height="25px" BorderStyText="ButtonText" Width="200px" />