私はテーブルセルを作成しています。その中には画像が必要で、画像の下には説明が必要です。だから、私はこれを試みました:
TableCell cell = new TableCell();
ImageButton i = new ImageButton
{
ImageUrl = image.fullThumbPath,
PostBackUrl =
"~/fulldisplay.aspx?imageId=" + image.visibleId + @"&r=" +
GlobalVariables.RandomString(5)
};
cell.Controls.Add(i);
Label l = new Label
{
Text = image.description
};
l.Style.Add("font-weight", "bold");
cell.Controls.Add(l);
row.Cells.Add(cell);
しかし、私が最終的に得たのは画像であり、画像の隣にはラベルがあります。ラベルが画像の下にあることを確認するにはどうすればよいですか?を追加できません
。