473,387 Members | 1,520 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,387 software developers and data experts.

Save File

Web Application VB.Net VS2005

Hey there,
My web application allows users to upload files to the server, mainly
images. At the moment a user can view a file and display it in a new IE
window. I would like to now add a feature that will allow the user to
download the file instead, giving the user a save diaglog box or
something similiar. I am very unsure on the code on how to do this. Any
Help would be wonderful.

Thanks in advance

Jan 23 '07 #1
5 2164
Bonzol,

Is uploading mostly a lot of work (in aspnet it is a piece of cake)
downloading is easy, just embed it in an anchor <a href and than the place
of the file, the rest is automaticly done by the browser.

Cor
"Bonzol" <Bo****@hotmail.comschreef in bericht
news:11**********************@a75g2000cwd.googlegr oups.com...
Web Application VB.Net VS2005

Hey there,
My web application allows users to upload files to the server, mainly
images. At the moment a user can view a file and display it in a new IE
window. I would like to now add a feature that will allow the user to
download the file instead, giving the user a save diaglog box or
something similiar. I am very unsure on the code on how to do this. Any
Help would be wonderful.

Thanks in advance

Jan 23 '07 #2
Any ASP questions are better asked in the ASP.NET forum:

Microsoft.Public.DotNet.Framework.ASPNET

Not being funny, but Cor isn't the best person to answer your question when
you see his ASP.NET website with all the problems on it. Not a good example

Newbie Coder
(It's just a name)
Jan 23 '07 #3


"Newbie Coder" <ne**********@pleasespamme.comwrote in message
news:#e**************@TK2MSFTNGP05.phx.gbl...
Any ASP questions are better asked in the ASP.NET forum:

Microsoft.Public.DotNet.Framework.ASPNET

Not being funny, but Cor isn't the best person to answer your question
when
you see his ASP.NET website with all the problems on it. Not a good
example

Newbie Coder
(It's just a name)

Yet, Cor is an excellent source of information on this newsgroup. His help
is outstanding, even though sometimes hard to understand, he is still a
great help and I , for one, appreciate his hard work and dedication to this
newsgroup...THANKS COR!

Mythran
Jan 23 '07 #4
Newbie Coder,
Any ASP questions are better asked in the ASP.NET forum:

Microsoft.Public.DotNet.Framework.ASPNET
If you don't know the difference between ASP and ASPNet than please don't
tell people where they have to ask questions. In ASPNET can all the managed
Net languages be used on the server side therefore this newsgroup is one of
those for questions about that.

Things as installation and use without the language but just Drag and Drop
as you create probably websites is not for the language newsgroup. As well
is the framework newsgroup not for ASP for that are other newsgroeps.

Your comments on our website are completely without content. It sound as a
kid. We know that there things are not yet ready on our website (although 90
procent is ready but not published), however when you can point us on things
we can improve we will be glad. There are emailboxes on it and those are
fully operating. However wait some weeks with that because of reasons that
are not needed to tell you but sad enough.

This kind of throwing dirt is something from kids from about 12. If you are
that age, than I have said nothing.

Cor

Jan 23 '07 #5
Newbie,

If you're speaking about the typo's on Cor's site, that doesn't in any way
detract from the content of his site. The way in which he says something may
be tough to catch sometimes, but the code on the site is correct, insofar as
I have been able to determine in my limited abilities.

Bruce

"Newbie Coder" <ne**********@pleasespamme.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Any ASP questions are better asked in the ASP.NET forum:

Microsoft.Public.DotNet.Framework.ASPNET

Not being funny, but Cor isn't the best person to answer your question
when
you see his ASP.NET website with all the problems on it. Not a good
example

Newbie Coder
(It's just a name)


Jan 24 '07 #6

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

Similar topics

0
by: a | last post by:
Save text file as html kloepper 17:42 23 Jul '04 I'm using httpwebresponse and a StringBuilder to return a stream that originates as a file with the .txt suffix (My download code converts the html...
5
by: kevin | last post by:
Hi, Any help with this would be really appreciated! I'm trying to download a file from a remote server. The access permissions is okay but the problem I'm facing is that the file is getting...
4
by: Richard | last post by:
Hi I'm new to ASP/Web programming so any help would be appreciated... Situation: On my web page I would like to present a link {or button} that would allow the user to download a large file. ...
4
by: sunilj20 | last post by:
Hello, I have a requirement wherein, a user clicks on a file name in an ASP.NET web application, and the file should automatically be downloaded (Without showing the "Open", "Save As") in the...
5
by: Patrick | last post by:
Following on from the excellent example at http://www.c-sharpcorner.com/Code/2003/Sept/ExportASPNetDataGridToExcel.asp on how to save a data-grid to excel file, how can I extend the example such...
10
by: GJP | last post by:
Hello. Ive been asked to make my own notepade for college assignment. All ig going well, but i cant get the save to work. I can get Save a (shows dialog box), i can get it to just save too,...
10
by: Henok Girma | last post by:
Hello Gurus, I want to save the state of an unbound DataGridView on my Windows Form application to an XML file so i can later load it back.. Basically, on my form I have a DataGridView, it's got...
1
by: liuliuliu | last post by:
hi -- sorry if this is trivial -- but how do you make a screenshot of a pygame display? i have a surface which is basically the entire visible screen -- how do you write this surface as an image...
3
by: fiefie.niles | last post by:
I would like to save a web page to a file and have the hyperlinks work when I bring the file back up. If the web page has a hyperlink like the following <a href="OurWeb/News/abcFile.htm">, after...
3
by: =?Utf-8?B?YXNkZg==?= | last post by:
Hello. I am making a web application with c# and am using this code: Response.ContentType = "application/x-excel"; Response.AddHeader("Content-Disposition", "attachment;filename=" +...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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
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
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
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...

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.