Showing an image

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tma

    Showing an image

    I have the code below embedded in my web page and I want a graphic to show
    where that html is located. What do I need to do in my ASPX file codebehind
    in order for an image to be presented?

    <img
    src='http://www.mymohawk.co m/MohawkWS/MohawkHitCounte r.aspx?ItemID=x xxxx'
    border=0 alt>


  • Karl

    #2
    Re: Showing an image

    Something as simple as this should work:

    Dim image As System.Drawing. Image =
    System.Drawing. Image.FromFile( "PATH")
    Response.Clear( )
    image.Save(Resp onse.OutputStre am,
    System.Drawing. Imaging.ImageFo rmat.Gif)
    Response.End()
    image.Dispose()

    Karl

    "tma" <tma@allisconfu sing.net> wrote in message
    news:u8Ei0DWjEH A.704@TK2MSFTNG P09.phx.gbl...[color=blue]
    > I have the code below embedded in my web page and I want a graphic to show
    > where that html is located. What do I need to do in my ASPX file[/color]
    codebehind[color=blue]
    > in order for an image to be presented?
    >
    > <img
    > src='http://www.mymohawk.co m/MohawkWS/MohawkHitCounte r.aspx?ItemID=x xxxx'
    > border=0 alt>
    >
    >[/color]


    Comment

    • tma

      #3
      Re: Showing an image

      So far this has not worked. I'm going to play with it and see what's
      missing.

      "Karl" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in
      message news:ONjFLSXjEH A.2140@TK2MSFTN GP15.phx.gbl...[color=blue]
      > Something as simple as this should work:
      >
      > Dim image As System.Drawing. Image =
      > System.Drawing. Image.FromFile( "PATH")
      > Response.Clear( )
      > image.Save(Resp onse.OutputStre am,
      > System.Drawing. Imaging.ImageFo rmat.Gif)
      > Response.End()
      > image.Dispose()
      >
      > Karl
      >
      > "tma" <tma@allisconfu sing.net> wrote in message
      > news:u8Ei0DWjEH A.704@TK2MSFTNG P09.phx.gbl...[color=green]
      > > I have the code below embedded in my web page and I want a graphic to[/color][/color]
      show[color=blue][color=green]
      > > where that html is located. What do I need to do in my ASPX file[/color]
      > codebehind[color=green]
      > > in order for an image to be presented?
      > >
      > > <img
      > >[/color][/color]
      src='http://www.mymohawk.co m/MohawkWS/MohawkHitCounte r.aspx?ItemID=x xxxx'[color=blue][color=green]
      > > border=0 alt>
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...