【发布时间】:2014-05-10 15:55:33
【问题描述】:
我在代码 buhind 中创建了一个 ImageButton-
var img = new ImageButton();
img.ID = "Del" + i.ToString();
img.ImageUrl = "images/1395958363_meanicons_57.png";
img.Width = 48;
img.Height = 38;
img.OnClientClick = "javascript:void(DeleteBook())";
Label1.Controls.Add(img);
现在我需要获取 ImageButton 的 ID。谁能帮我解决这个问题?
P.S ImageButton 是在“for”中创建的,所以我不知道我的 ImageButton 有多少以及它们的 ID 是什么
【问题讨论】:
-
请更正标题中的拼写法
标签: c# javascript visual-studio-2010 code-behind imagebutton