Tuesday, November 2, 2010

Change Image Align,Image URL,Width,Height Programatically

  protected void Page_Load(object sender, EventArgs e)
    {
Image img = new Image();
img.ImageUrl = ds.Tables[0].Rows[0]["image"].ToString();
img.ImageAlign = ImageAlign.Left;
img.Width = new Unit("100px");
img.Height = new Unit("50px");
}

0 comments:

Post a Comment