如何在table中添加image?
lunyx 2008-08-19 04:17:47 我的table如下:
<asp:Table ID="t1" runat="server" BorderColor="Red" BorderWidth="1px" Width="155px">
<asp:TableRow runat="server" BackColor="#FFC0FF">
<asp:TableCell runat="server">rrr</asp:TableCell>
</asp:TableRow>
</asp:Table>
现在我用一个按钮来完成:
protected void Button1_Click(object sender, EventArgs e)
{
t1.Rows[0].Cells[0].Text = "<asp:Image ID=Image1 runat=server Height=17px ImageUrl=top.gif Width=15px />"; //想在格子中放入image控件,不成功,该怎么实现??
}
请各位大侠搭救啊,小弟新手,急死了