If I navigate to say http://Site/filename.csv, the web browser control
or IE displays an excel sheet with the data in it. (Safari displays the
raw text).
This is not what I want. I want to get hold of the data and crunch it.
How do I do this ? (or alternatively download the csv file which is
pointed to by a hyperlink).
Thanks. 4 2274
Ian,
You would have to add a content-disposition header on the server,
indicating that it is an attachment, along with the filename. You can do it
in ASP.NET like this:
Response.Append Header("Content-disposition", "attachment ; filename=my.csv ");
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Ian Semmel" <an****@rocketc omp.com.auwrote in message
news:5309892ED0 E548C0A9416C12B B48C21A@DIMITY. ..
If I navigate to say http://Site/filename.csv, the web browser control or IE
displays an excel sheet with the data in it. (Safari displays the raw text).
This is not what I want. I want to get hold of the data and crunch it. How
do I do this ? (or alternatively download the csv file which is pointed to
by a hyperlink).
Thanks.
Unfortunately it's not my server. It's a public download site and I just
wanted to automate it.
Basically, I want to get hold of the file (or text) which the WebBrowser
has downloaded before it displays it.
-----Original Message-----
From: Nicholas Paldino [.NET/C# MVP]
[mailto:mv*@spam .guard.caspersh ouse.com]
Posted At: Thursday, 6 December 2007 11:56 AM
Posted To: microsoft.publi c.dotnet.langua ges.csharp
Conversation: WebBrowserContr ol and csv files
Subject: Re: WebBrowserContr ol and csv files
Ian,
You would have to add a content-disposition header on the server,
indicating that it is an attachment, along with the filename. You can
do it
in ASP.NET like this:
Response.Append Header("Content-disposition", "attachment ;
filename=my.csv ");
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Ian Semmel" <an****@rocketc omp.com.auwrote in message
news:5309892ED0 E548C0A9416C12B B48C21A@DIMITY. ..
If I navigate to say http://Site/filename.csv, the web browser control
or IE
displays an excel sheet with the data in it. (Safari displays the raw
text).
This is not what I want. I want to get hold of the data and crunch it.
How
do I do this ? (or alternatively download the csv file which is
pointed
to
by a hyperlink).
Thanks.
Ian,
Well, you could use the HttpWebRequest/HttpWebResponse classes to
download the content directly from the server out-of-band of the WebBrowser.
Perhaps this will give you what you want?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Ian Semmel" <an****@rocketc omp.com.auwrote in message
news:B302BF493A A5408BB642E99A5 548E2E3@DIMITY. ..
Unfortunately it's not my server. It's a public download site and I just
wanted to automate it.
Basically, I want to get hold of the file (or text) which the WebBrowser
has downloaded before it displays it.
>-----Original Message----- From: Nicholas Paldino [.NET/C# MVP] [mailto:mv*@spam .guard.caspersh ouse.com] Posted At: Thursday, 6 December 2007 11:56 AM Posted To: microsoft.publi c.dotnet.langua ges.csharp Conversation : WebBrowserContr ol and csv files Subject: Re: WebBrowserContr ol and csv files
Ian,
You would have to add a content-disposition header on the server, indicating that it is an attachment, along with the filename. You can do it in ASP.NET like this:
Response.Appen dHeader("Conten t-disposition", "attachment ; filename=my.cs v");
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Ian Semmel" <an****@rocketc omp.com.auwrote in message news:5309892ED 0E548C0A9416C12 BB48C21A@DIMITY ... If I navigate to say http://Site/filename.csv, the web browser control or IE displays an excel sheet with the data in it. (Safari displays the raw text).
This is not what I want. I want to get hold of the data and crunch it. How do I do this ? (or alternatively download the csv file which is
pointed
>to by a hyperlink).
Thanks.
Perfect ! Thanks
-----Original Message-----
From: Nicholas Paldino [.NET/C# MVP]
[mailto:mv*@spam .guard.caspersh ouse.com]
Posted At: Thursday, 6 December 2007 2:22 PM
Posted To: microsoft.publi c.dotnet.langua ges.csharp
Conversation: WebBrowserContr ol and csv files
Subject: Re: WebBrowserContr ol and csv files
Ian,
Well, you could use the HttpWebRequest/HttpWebResponse classes to
download the content directly from the server out-of-band of the
WebBrowser.
Perhaps this will give you what you want?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Ian Semmel" <an****@rocketc omp.com.auwrote in message
news:B302BF493A A5408BB642E99A5 548E2E3@DIMITY. ..
Unfortunately it's not my server. It's a public download site and I
just
wanted to automate it.
Basically, I want to get hold of the file (or text) which the
WebBrowser
has downloaded before it displays it.
-----Original Message-----
From: Nicholas Paldino [.NET/C# MVP]
[mailto:mv*@spam .guard.caspersh ouse.com]
Posted At: Thursday, 6 December 2007 11:56 AM
Posted To: microsoft.publi c.dotnet.langua ges.csharp
Conversation: WebBrowserContr ol and csv files
Subject: Re: WebBrowserContr ol and csv files
Ian,
You would have to add a content-disposition header on the
server,
indicating that it is an attachment, along with the filename. You
can
do it
in ASP.NET like this:
Response.Append Header("Content-disposition", "attachment ;
filename=my.csv ");
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Ian Semmel" <an****@rocketc omp.com.auwrote in message
news:5309892ED0 E548C0A9416C12B B48C21A@DIMITY. ..
If I navigate to say http://Site/filename.csv, the web browser
control
or IE
displays an excel sheet with the data in it. (Safari displays the
raw
text).
This is not what I want. I want to get hold of the data and crunch
it.
How
do I do this ? (or alternatively download the csv file which is
pointed
to
by a hyperlink).
Thanks.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike |
last post by:
I am sure that I am making a simple boneheaded mistake and I would
appreciate your help in spotting in. I have just installed
apache_2.0.53-win32-x86-no_ssl.exe
php-5.0.3-Win32.zip
Smarty-2.6.7.tar.gz
on a system running WindowsXP SP2.
Apache and PHP tested out fine. After adding Smarty, I ran the
following http://localhost/testphp.php
|
by: Xah Lee |
last post by:
here's a large exercise that uses what we built before.
suppose you have tens of thousands of files in various directories.
Some of these files are identical, but you don't know which ones are
identical with which. Write a program that prints out which file are
redundant copies.
Here's the spec.
--------------------------
The program is to be used on the command line. Its arguments are one or
|
by: Tom Lee |
last post by:
Hi,
I'm new to .NET 2003 compiler. When I tried to compile my
program using DEBUG mode, I got the following errors in the
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
\include\xdebug file as folows. I need help to resolve
them ASAP:
cl /c /nologo /MDd /W3 /Od /GR /GM /Zi /GX /D "_DEBUG" /D "
WIN32" /D "_W
INDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_USRDLL" /
|
by: JKop |
last post by:
Here's what I know so far:
You have a C++ project. You have source files in it. When you go to
compile it, first thing the preprocessor sticks the header files into
each source file.
So now you have your ".cpp" files all ready, without any "#include"
or "#define" in them.
Let's assume that there's 2 source files in this project, "a.cpp" and
|
by: pooja |
last post by:
Suppose i have created a class c1 with f1()in c1.cpp
and included this c1.cpp in file1.cpp file , which is also having
main() by giving the statement #include "c1.cpp".
the same i can do by using header file. i can create a class c1 with
f1() in c1.h and include this c1.h in file1.cpp by giving the statement
#include "c1.h"
tell me that what exactly is the difference between c1.h and c1.cpp?
Since they both are doing the same things.
| |
by: ambika |
last post by:
Iam just trying to know "c".
And I have a small doubt about these header files.
The header files just contain the declaration part...Where is the
definition for these declarations written??And how does that get
linked to our program when we run it??I would appreciate any helpful
info..And I would like to thank you for that in advance
-ambika
|
by: Tobias Winter |
last post by:
Hi
I want to know how I can retrieve the 'onchange'-Event of an HTML-Input-Element in my vb.net-code? I have access to the documentproperty (DOM) of the Webbrowsercontrol
Thx
Tobias
|
by: UJ |
last post by:
Folks,
We provide custom content for our customers. Currently we put the files on
our server and people have a program we provide that will download the
files. These files are usually SWF, HTML or JPG files. The problem as I see
it - if you know the name of the file, you could download it off the server
(currently we are using an HTTP/Get but I'm going to be using WebClient in
the new version.)
If there any way to password protect the...
|
by: aRTx |
last post by:
I have try a couple of time but does not work for me
My files everytime are sortet by NAME.
I want to Sort my files by Date-desc.
Can anyone help me to do it?
The Script
<?
/*
ORIGJINALI
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |