Re: Dynamically Generating Imagemaps??
From: Philip Wilson (pwilson_at_schoolpro.com.au)
Date: 01/12/05
- Next message: Joe Abou Jaoude: "How to prevent a page postback according to user choice"
- Previous message: Monalisa: "Re: DataList and scrollbar"
- In reply to: Brian Burgess: "Re: Dynamically Generating Imagemaps??"
- Next in thread: Brian Burgess: "Re: Dynamically Generating Imagemaps??"
- Reply: Brian Burgess: "Re: Dynamically Generating Imagemaps??"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 12 Jan 2005 19:35:48 +1000
Does this mean that your imagemap HTML is static and you just dynamically create the image?
In my case, I am wanting to dynamically create the both the imagemap and the image. I think I am just going to to try calling the dynamicimage.aspx file twice and get it to return either the image or the imagemap depending on a parameter. I don't think it will add too much overhead.
Thanks for your help,
Phil
>>> Brian Burgess<bburgess66@hotmail.com> 11/01/2005 8:15:24 pm >>>
Ah yes .. perhaps it is what you already have... DOHH
I my case I have only two files: 1) The imagemap HTML Code file that calls
2) the dynamicimage.aspx. This way it is automatically 'returned' to the
HTML code after the image is processed.
Would this way work for you?
.. or do you need the actual text stream of HTML code as well?
-BB
"Philip Wilson" <pwilson@schoolpro.com.au> wrote in message
news:uAREzq39EHA.2012@TK2MSFTNGP15.phx.gbl...
> Yeah, but isn't that what I have got already?
>
> > Response.ContentType = "image/gif"
> >
> > AttBitmap.Save(Response.OutputStream, ImageFormat.Gif)
>
> What I want to know is, if I create the <Map ....> HTML code in the
dynamicimage.aspx page. What is the best way to transfer that text back to
the page that is calling the dynamicimage.aspx.
>
> I will have a page that contains the '<IMG id="Image"
src="dynamicimage.aspx" usemap=#mapname...>' but under that I will have to
put the HTML code for the map which I will also be creating in the
dynamicimage.aspx page.
>
> Basically I am needing to return two components to the calling page. The
Image and the imagemap HTML Code. I can do the image, I'm just not sure how
best to get the HTML text back.
>
> Does that make sense?
>
> I thought about adding a parameter to the dynamicimage.aspx page so that I
can get it to return either the image or the imagemap code and then calling
it twice. That just seemed a little redundant.
>
> Thanks,
> Phil
>
>
> >>> Brian Burgess<bburgess66@hotmail.com> 10/01/2005 19:19 >>>
> sorry ... make that:
> 'Image.Save(Response.OutputStream, ImageFormat.Gif)' instead of
'Response.BinaryWrite(Image.SaveGIFStream)'
>
> I copied the wrong line ... :-$
>
>
> -BB
>
> "Brian Burgess" <bburgess66@hotmail.com> wrote in message
news:upHH6Mv9EHA.1296@TK2MSFTNGP10.phx.gbl...
> how about using 'Response.BinaryWrite(Image.SaveGIFStream)' after the
call to 'Response.ContentType'
>
> that way you can use 'IMG id="Image" src="dynamicimage.aspx"' in the
calling page
>
> make sense?
>
> -BB
>
>
> "Philip Wilson" <pwilson@schoolpro.com.au> wrote in message
news:eNgMJHT9EHA.1188@tk2msftngp13.phx.gbl...
> > Hello,
> >
> > I am trying to dynamically generate an imagemap in vb.net. I have
managed to generate the image easily enough by creating a .aspx page that
returns the generated image and then using the <img src="dynamicimage.aspx"
imagemap=...> to put that image onto the page.
> >
> > I am using the following method in the dynamicimage.aspx to return the
image:
> >
> > Response.ContentType = "image/gif"
> >
> > AttBitmap.Save(Response.OutputStream, ImageFormat.Gif)
> >
> >
> > Now I need to generate the imagemap HTML code. I thought the logical
place to generate this code is in the dynamicimage.aspx page since I will
already be working with the coordinates to create the image, so I can just
create the HTML code as I create the image.
> >
> > But then, what is the best way to get that HTML code back into the
main aspx page that contains the <img src="dynamicimage.aspx">.
> >
> > I would like to do it all on the one page by assigning the Bitmap
object to an image on the page and then just outputting the imagemap code to
the same page, however I have not seen any way of inserting the generated
image into the existing page along with HTML code. If I use an ASP:Image I
don't seem to have any way of specifying an imagemap and I can't see a way
of linking my Bitmap object to a <IMG> without saving it out as a file
first.
> >
> > I am fairly new to this, any ideas would be greatly appreciated.
> >
> > Cheers,
> > Phil
> >
> >
> >
> >
> >
- Next message: Joe Abou Jaoude: "How to prevent a page postback according to user choice"
- Previous message: Monalisa: "Re: DataList and scrollbar"
- In reply to: Brian Burgess: "Re: Dynamically Generating Imagemaps??"
- Next in thread: Brian Burgess: "Re: Dynamically Generating Imagemaps??"
- Reply: Brian Burgess: "Re: Dynamically Generating Imagemaps??"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|