Development Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsCommunityDevelopment Tutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 28th, 2003, 09:44 AM
benos benos is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 233 benos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Article Discussion: HTTP File Download Without User Interaction Using .NET

HTTP File Download Without User Interaction Using .NET If you have any questions or comments about this article please post them here.

You can read the article here .

Reply With Quote
  #2  
Old January 9th, 2004, 12:18 PM
MACUL MACUL is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Brasil
Posts: 3 MACUL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face onde esta a função ?

asp.net mas esta utilizando o VB6 !!!!

onde esta a função FileDownloadCtrl.downloadFile

se não colocar download() após a função quem vai chama-la ?

where is that the function FileDownloadCtrl.downloadFile of JavaScript ? if not call the function before declare, don't work. You say ASP.NET, but, use Java and VB6, only 8 lines in ASP.NET. How many peoples using JAVA + VB6 + ASP.NET ? what don't files for download ?

T +

Reply With Quote
  #3  
Old January 9th, 2004, 12:28 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
> where is that the function FileDownloadCtrl.downloadFile of JavaScript

The function downloadFile is a part of the ActiveX control FileDownloadCtrl which is created in VB... You create/compile the code for the ActiveX yourself (that's the VB code)

The ASP portion is for the Server which sends the file.

Reply With Quote
  #4  
Old January 12th, 2004, 06:28 AM
MACUL MACUL is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Brasil
Posts: 3 MACUL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Tank's

This code was very useful for me.

Reply With Quote
  #5  
Old January 24th, 2004, 02:13 AM
edT edT is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 edT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
macul: can you help me get this thing work. error says FileDownloadCtrl is undefined. i have the <object.. tag in my page, the jscript function, the cab file in the same folder. what else is wrong? also, is it possible to get the path where the file was saved?

Reply With Quote
  #6  
Old January 24th, 2004, 04:17 AM
edT edT is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 edT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
solved my prev. error but i have a new error saying the object doenst support the method.

Reply With Quote
  #7  
Old January 26th, 2004, 07:22 AM
MACUL MACUL is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Brasil
Posts: 3 MACUL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I only use part this code, look in :
URL

t +
MACUL

Reply With Quote
  #8  
Old March 18th, 2004, 05:12 PM
vina vina is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 vina User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,
I created the activex control and the web project, but when I run the application the response is sent to the browser (download.aspx) and not to the client's machine: how do I tell the application to use the control? Also, where is the javascript function "download()" being called in the htm file and how is this htm file used? And where will the file be saved in the client's machine? Lots of question, TIA,
Vina

Reply With Quote
  #9  
Old March 21st, 2004, 12:35 PM
vina vina is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 2 vina User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok, I got it, it works fine for me now, thanks a lot for the information. Maybe I would just suggest some extra explanation for beginners on how to use the control from the web page (the data flow). Thanks again,

Vina

Reply With Quote
  #10  
Old May 13th, 2004, 06:33 PM
immortalbeastin immortalbeastin is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 immortalbeastin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help

please any one explain me how this works this is important

Reply With Quote
  #11  
Old August 9th, 2004, 06:57 AM
toraltaunk toraltaunk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 toraltaunk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
HTTP File download without user interaction using .NET

I am working in a similar module. The only difference is that it is not necessary that our client will have VB6 installed on his machine. How then can i download the files ?
Thanks in advance,
Toral

Reply With Quote
  #12  
Old December 6th, 2004, 03:51 PM
hshankar hshankar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 6 hshankar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Please I need information on how this works too

Reply With Quote
  #13  
Old December 7th, 2004, 08:05 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8

Reply With Quote
  #14  
Old December 7th, 2004, 09:54 AM
hshankar hshankar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 6 hshankar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I did read the article. But i'm not able to get it to work. I guess i'm missing something.Would be great if someone could elobarate and give me more detailed steps


Hari

Reply With Quote
  #15  
Old December 7th, 2004, 11:24 AM
hshankar hshankar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 6 hshankar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This is very very urgent. So it would be great if someone could explain how to use the control from the web page


Thanks in advance
hari

Reply With Quote
  #16  
Old December 7th, 2004, 11:50 AM
hshankar hshankar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 6 hshankar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Should i run the htm file or the download.aspx.Please help

Reply With Quote
  #17  
Old December 7th, 2004, 02:15 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
You seem to have missed the second half of the article.

download.aspx is the script that sends the file.
You need to make an ActiveX control to access the script.
you need to make an HTML file to use the activeX control.


From the article
Quote:
9. The wizard would generate a CAB file and a HTM file. Copy the two files to your webserver's virtual directory and write a small javascript function in the HTM file which would call the control's downloadFile method. Eg

Code:
<script language=javascript>
function download()
{
 var b,errno,errdesc,errsrc;
FileDownloadCtrl.downloadFile("http://localhost/Mydownload/download.aspx", "c:\\downloads\\hi.doc",errno);
}
</script>


Reply With Quote
  #18  
Old December 7th, 2004, 02:31 PM
hshankar hshankar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 6 hshankar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
File download without user interaction

Quote:
Originally Posted by MadCowDzz
You seem to have missed the second half of the article.

download.aspx is the script that sends the file.
You need to make an ActiveX c