J
Jim via DotNetMonster.com
Hi,
I have the location of an image in the database and I'm displaying it with
a repeater control. I'd like to add the width and height and I'm not sure
what the best way to do it is. I could add the fields to the database and
lookup the size and enter it. I know with .Net there's a way to find out
the size but I'm not sure how to go about doing it. This is the repeater
control:
<ASP:Repeater id="RepeaterMediaName" runat="server" DataSource="GetImage()">
<ItemTemplate>
<img src='images/<%# DataBinder.Eval (Container.DataItem, "MediaName") %>'
border='0' />
</ItemTemplate>
</ASP:Repeater>
Thanks
I have the location of an image in the database and I'm displaying it with
a repeater control. I'd like to add the width and height and I'm not sure
what the best way to do it is. I could add the fields to the database and
lookup the size and enter it. I know with .Net there's a way to find out
the size but I'm not sure how to go about doing it. This is the repeater
control:
<ASP:Repeater id="RepeaterMediaName" runat="server" DataSource="GetImage()">
<ItemTemplate>
<img src='images/<%# DataBinder.Eval (Container.DataItem, "MediaName") %>'
border='0' />
</ItemTemplate>
</ASP:Repeater>
Thanks