CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_forms Tags:
Item Type: NewsGroup Date Entered: 9/12/2007 1:48:37 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 12 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
jsarna
Asp.Net User
Presenting a file in HTTP9/12/2007 1:48:37 AM

0

I am trying to present various files via HTTP.  I am using the following code (for excel)

Dim fPath As String

Dim fileExt As String

Dim fName As String

fPath = "c:\test.xls" ' Request.Form("fPath")

Response.Clear()

Response.ContentType = "application/vnd.ms-excel"

Response.AddHeader("Content-Disposition", "attachment;filename=book1.xls")

Response.WriteFile(fPath, True)

Response.End()

 

It prompts to save or view the Excel doc.  If I say SAVE, then it opens the excel document in excel, however the web page displays

Action canceled

Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable.

Please try the following:

  • Click the refresh.gif (82 bytes) Refresh button, or try again later.
  • If you have visited this page previously and you want to view what has been stored on your computer, click File, and then click Work Offline.
  • For information about offline browsing with Internet Explorer, click the Help menu, and then click Contents and Index.


Internet Explorer

Is there a way to either show the document in the web page or not have the webpage stay open?  Will this work with PDF, DOC, etc?

Thanks

Joe

 

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
How to Do Everything with Microsoft Office PowerPoint 2007 Authors: Ellen Finkelstein, Pages: 432, Published: 2006
Learning PHP and MySQL Authors: Michele E. Davis, Jon Phillips, Pages: 359, Published: 2006
Beginning Spatial with SQL Server 2008 Authors: Alastair Aitchison, Pages: 456, Published: 2009
MySQL and Perl for the Web Authors: Paul DuBois, Pages: 529, Published: 2001
Pro Drupal Development Authors: John K. VanDyk, Dries Buytaert, Pages: 667, Published: 2008

Web:
Presenting a file in HTTP - ASP.NET Forums Presenting a file in HTTP. Last post 09-11-2007 9:48 PM by jsarna. 0 replies. Sort Posts: Oldest to newest, Newest to oldest ...
Presenting a local listing of remote files over HTTP Except that your last line above actually reverses the size, so a file of 180224 bytes becomes 422081 bytes when returned from commify(). ...
Presenting XML The last Presenting XML file distribution may be downloaded from SourceForge. It includes Java source code and ant build files as well as binary jar files, ...
Presenting Management Information Buy this file from http://www.download-it.org/learning-resources.php?promoCode= &partnerID=&content=story&storyID=568. 10. Presenting Management. Information ...
MediaMenu - Customizable full-screen menu for presenting media ... Customizable full-screen menu for presenting media files (MP3,AVI. ... Customizable number of items, each of them can play a file (using a custom player), ...

Presenting a file in HTTP - ng.asp-net-forum.web_forms Presenting a file in HTTP, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net. web_forms, Date: 9/12/2007 1:48:37 AM, Replies: 0, Views: 12, Subscribers: 0 ...
PageRequestManagerServerErrorException error code 12002 - ng.asp ... presenting a file in http · user input through dynamic textboxes · how to access a template column in a datagrid control ...
Image from file (release handle) - microsoft.public.dotnet ... the file may cause a prohibitive delay in presenting the image. ...... How can I handle HTTP file uploads? Best way to handle file uploads through HTTP ...
How Do I: Create a Custom Membership Provider? - ng.asp-net-forum ... I don't know what type of file this is or how he created it. ... http://www.devx .com/asp/article/29256?trk=dxrss_dotnet .... Rick Johnson presenting the PRIDE Partner Award TNT- AHM Communication – for Immediate Release ...
Progressive Downloading - macromedia.captivate.export Delivering your video file using a web server is sometimes referred to as " progressive download" or "http streaming". In fact, it's not really streaming at ...

Videos:
Jason Trachtenburg /Kate Nash song "Almost Isn't (Good Enough) Is It?" performed by Jason Trachtenburg, written by Jason Trachtenburg and Kate Nash. Violin by Catherine Dudley. From ...
INTOI - Interchange of Ideas - Digital Flipchart Contributing in the "Office of Tomorrow" project at the University of Applied Sciences Hagenberg, 5 students (Michael Hurnaus, Verena Lugmayr ...
Challenger 604 http://www.redtriangle.com Challenger 604 Switch Guide Demo Video is designed to give interested pilots a good idea of the detailed information ...
New Porsche Museum (Jan.2009) - Prototypes & Technic The new Porsche Museum in Stuttgart-Zuffenhausen opened its doors to the public at Saturday, January 31st.2009. And of course I was also there ...
Boeing 737-200 http://www.redtriangle.com Boeing B737-200 Switch Guide Demo Video is designed to give interested pilots a good idea of the detailed information ...












file upload limitations?

trouble with connection string in web.config

dropdownlist default

execute a command...

how to use a blog tool in the asp.net application

adding user controls dynamically

problem of string validation

auto-incrementing build number

skin

newline characters

gridview update problem

prefixing url address

i really need help

display pdf from network in asp.net

how to get into coding adv applications with asp?

popup window problem

dyanamically creating controls based on a selection in a dropdown list

directory.getfiles

website encrypt

page redirect with post?

learn asp.net

attempted to access an unloaded appdomain

coding practices question?

problem with drop down list

color syntax in vb behind code

onclick of image element

sending e-mail

aspnetdb.mdf

global variables

help! http/1.1 500 internal server error

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT