473,378 Members | 1,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

previewing my image

hey all,
i have a file upload control and when i specify a file name to upload, what
would be the easiest way to provide a preview button at this time?

i have the the byteData and i have the directory path to the file (i.e.
c:\test\img.png) but i'm not sure how to get it into an image control.

thanks,
rodchar
Mar 6 '07 #1
2 966
Add an image control - then, whenever you choose the file, using the upload
control - also add the filename to the url of the image control

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:CC**********************************@microsof t.com...
hey all,
i have a file upload control and when i specify a file name to upload,
what
would be the easiest way to provide a preview button at this time?

i have the the byteData and i have the directory path to the file (i.e.
c:\test\img.png) but i'm not sure how to get it into an image control.

thanks,
rodchar

Mar 6 '07 #2
the url is a directory path instead of what i'm used to with the virtual
path. i can't get the image to show using the directory path in my csharp
code-behind.

"David Wier" wrote:
Add an image control - then, whenever you choose the file, using the upload
control - also add the filename to the url of the image control

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:CC**********************************@microsof t.com...
hey all,
i have a file upload control and when i specify a file name to upload,
what
would be the easiest way to provide a preview button at this time?

i have the the byteData and i have the directory path to the file (i.e.
c:\test\img.png) but i'm not sure how to get it into an image control.

thanks,
rodchar


Mar 7 '07 #3

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

Similar topics

15
by: Anand Ganesh | last post by:
HI All, I have an Image. I want to clip a portion of it and copy to another image. How to do this? I know the bounding rectangle to clip. Any suggestions please. Thanks for your time and...
0
by: Ray | last post by:
Hi all, I would like to ask is there any method for printing the crystal report directly by choosing printer without previewing the report using CrystalReportViewer? Thanks a lot, Ray
1
by: Ray | last post by:
Hi all, Is it possible to print the crystal report directly in vb.net without previewing it? Thanks a lot, Ray
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
3
by: James Andrews | last post by:
Hi, I have all my images set to /images/imagename.ext When I preview the site all my images are broken as it uses a virtual directory when testing such as...
1
by: cek172 | last post by:
Currently I have a report that opens from a form and can be printed by pressing the print button on that page. I want to be able to print the report straight from the form without previewing it. Is...
1
by: lstuyck73 | last post by:
Hi all, I have a question concerning previewing a file in an ASP.NET application. I would like to have a feature that a file on the server (like powerpoint, word, pdf or excel file) could be...
2
by: vipinkmathews | last post by:
I wrote code for previewing a word dcoument in C#. In the code when the user click preview button the document gets opened and later the user manually closes the document. But in Task manager the...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.