forum

Home / DeveloperSection / Forums / How to add an ImageButton to label

How to add an ImageButton to label

Anonymous User 1649 29-Sep-2014

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);


c# c# 
Updated on 29-Sep-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By