09-24-07 12:24 PM
Hi Rob,
what you can do is to do a HttpWebRequest against the URL, consume the
response stream in an Image object and then check the size here.
Cheers,
Stefan
"Rob" <saxon_rm@mercer.edu> wrote in message
news:1190430258.414928.85430@r29g2000hsg.googlegroups.com...
> BACKGROUND: We have a template with a custom control that uses a
> collection of news release postings to create a summary page with the
> headline, date, and snippet of the article. We have two additional
> placeholders: one is for a summary image - the other is for a
> corresponding caption. The desired layout is for the image and
> caption to be inline with the story snippet wrapping around it. These
> elements are under the headline and date. We have accomplished this
> with a div surrounding the image and caption. The article summary
> wraps around the div to the right or left based on a custim property
> in each release..
>
> PROBLEM: There is no fixed size for this summary thumbnail. Since the
> image width varies with each image, we need the caption to wrap at the
> end of the image. Currently, no width is set for the div and long
> captions stretch past their images. To force this wrap, we would need
> a dynamic way to have the div width match the width of the image used
> for that summary.
>
> Is there a way to pull the image width from the Single Image
> Placeholder? If not, does any one have an alternative suggestion to
> implement this?
>
[ Post a follow-up to this message ]
|