bsausser

bsausser

  • NA
  • 1
  • 0

Determining pixel width from percentage width - System.Web.UI.WebControls.Table

Dec 30 2003 4:03 PM
Platform: VS.NET Language: C# Ultimate goal is to resize an image based on the size of the table.cell or a panel. * The Image.Width Unit Percentage is based on the Screen Resolution so that doesn't work * The table.cell.width at design time is set to 100% I want to determine the actual pixel width (n) calculated from the 100% rendering of the cell or panel so that I can use that info in the Image.Width = Unit(n, UnitType.Pixel). Things I Have Already Looked At: (but could not make work) * Unit.Pixel Method * Unit.Type Property * UnitType.Pixel I'm looking for ideas or new directions in research for a solution. Any Comments are greatly appreciated.