You should simply set Width and Height property of the
<asp:imagebutton xmlns:asp="#unknown"></asp:imagebutton>
property that you are using inside the
<asp:repeater xmlns:asp="#unknown"></asp:repeater>
. This should set a fixed size for the image buttons.
Alternatively, you can set the Width and Height in the CodeBehind as follows:
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
{
ImageButton imgBtn = e.Item.FindControl("Imge1") as ImageButton;
if (imgBtn != null)
{
imgBtn.Width = 200;
imgBtn.Height = 200;
}
}
}
However, if you want to resize your actual image that you retrieve from the database, you need to resize it using the API available in .NET (GDI+) framework. That would be expensive in terms of performance though.