473,511 Members | 9,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Showing an image

tma
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.com/MohawkWS/MohawkHitCounter.aspx?ItemID=xxxxx'
border=0 alt>
Nov 18 '05 #1
2 1076
Something as simple as this should work:

Dim image As System.Drawing.Image =
System.Drawing.Image.FromFile("PATH")
Response.Clear()
image.Save(Response.OutputStream,
System.Drawing.Imaging.ImageFormat.Gif)
Response.End()
image.Dispose()

Karl

"tma" <tm*@allisconfusing.net> wrote in message
news:u8*************@TK2MSFTNGP09.phx.gbl...
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.com/MohawkWS/MohawkHitCounter.aspx?ItemID=xxxxx'
border=0 alt>

Nov 18 '05 #2
tma
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:ON**************@TK2MSFTNGP15.phx.gbl...
Something as simple as this should work:

Dim image As System.Drawing.Image =
System.Drawing.Image.FromFile("PATH")
Response.Clear()
image.Save(Response.OutputStream,
System.Drawing.Imaging.ImageFormat.Gif)
Response.End()
image.Dispose()

Karl

"tma" <tm*@allisconfusing.net> wrote in message
news:u8*************@TK2MSFTNGP09.phx.gbl...
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.com/MohawkWS/MohawkHitCounter.aspx?ItemID=xxxxx' border=0 alt>


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1715
by: thomaz | last post by:
I would like to know the correct way to save an image showing in a Picture Box???? Thanks....
3
1589
by: Brenny | last post by:
Hello I'm designing a windows form and form's background image is exist and I added a label and groupbox. There is a spesific image on the form and I want to show this image as label and...
1
4579
by: lewindha | last post by:
Hi guys I am new to ASP and .Net. I am working a web app where some Crystal Reports will be incorporated. Right now I am trying to get a simple report with a bar graph to show up in a browser....
2
1184
by: Carl Gilbert | last post by:
Hi I am developing a site that has 5 or 6 thumbnail pages each with 28 image on each. Each thumb nail has a matching larger image. So 5/6 groups of 28. When the user clicks on one of the...
10
2137
by: bessington | last post by:
hey all, i'm having a rather bizarre problem.. the image tag i have declared in my xhtml is not showing in safari / konqueror but showing just fine in Firefox, IE, Opera... this is a complete...
3
4367
by: Mike Dee | last post by:
Hi, I'm having an issue with the status bar in Mozilla and Netscape showing that it is still waiting on the page to load even after it is finished. This problem does NOT occur with IE. In...
7
10097
by: needin4mation | last post by:
Hi, I have an Access 2002 - 2003 database. I am using Access 2003. Whenever I link an image all it shows is the filename. Not the image. Other versions of Access can link the image just fine. ...
8
2374
by: Gabriella | last post by:
Hi, I have the CSS class below, and the image (pro.gif) is not showing on my page. It is showing ONLY where's some text in the div, but all I need is the image itself. ..pro {background-image:...
3
1543
by: Sandeep Singh Sekhon | last post by:
I am developing an application in ASP.NET 1.1. on one page I allow the user to upload and delete the files to the server. When I delete the file, I physically delete the file from the location....
6
1762
by: Stephen Edwards | last post by:
I am a novice, so bear with me. I designed a website using CSS TABS, all was fine, then I copy and pasted meta name, etc for keywords, tweaking it where necessary for keywords. I did not notice...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.