Click here to Skip to main content
15,916,835 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: I need a path prefix for all images Pin
perlmunger4-Jan-04 16:11
perlmunger4-Jan-04 16:11 
GeneralRe: I need a path prefix for all images Pin
Jan R Hansen5-Jan-04 0:55
Jan R Hansen5-Jan-04 0:55 
GeneralRe: I need a path prefix for all images Pin
Ixpah6-Jan-04 1:03
Ixpah6-Jan-04 1:03 
GeneralRe: I need a path prefix for all images Pin
l a u r e n7-Jan-04 15:08
l a u r e n7-Jan-04 15:08 
QuestionAny shopping cart recommendations? Pin
DanYELL4-Jan-04 7:22
DanYELL4-Jan-04 7:22 
AnswerRe: Any shopping cart recommendations? Pin
perlmunger4-Jan-04 13:41
perlmunger4-Jan-04 13:41 
AnswerRe: Any shopping cart recommendations? Pin
-- NA --4-Jan-04 21:51
-- NA --4-Jan-04 21:51 
GeneralTrying to execute a simple command... Pin
Robby3-Jan-04 18:39
Robby3-Jan-04 18:39 
GeneralRe: Trying to execute a simple command... Pin
Roger Wright4-Jan-04 13:45
professionalRoger Wright4-Jan-04 13:45 
GeneralRe: Trying to execute a simple command... Pin
Nathan Ridley12-Jan-04 15:49
Nathan Ridley12-Jan-04 15:49 
GeneralRe: Trying to execute a simple command... Pin
Ian Darling12-Jan-04 22:53
Ian Darling12-Jan-04 22:53 
Generalinclude html in html Pin
Brakanjan3-Jan-04 9:28
Brakanjan3-Jan-04 9:28 
GeneralRe: include html in html Pin
Robby3-Jan-04 18:43
Robby3-Jan-04 18:43 
GeneralRe: include html in html Pin
Brakanjan3-Jan-04 20:57
Brakanjan3-Jan-04 20:57 
GeneralRe: include html in html Pin
Robby4-Jan-04 6:46
Robby4-Jan-04 6:46 
GeneralRe: include html in html Pin
ZoogieZork4-Jan-04 11:40
ZoogieZork4-Jan-04 11:40 
GeneralRe: include html in html Pin
Vasudevan Deepak Kumar7-Jan-04 1:16
Vasudevan Deepak Kumar7-Jan-04 1:16 
GeneralJavascript maths error Pin
Jay22-Jan-04 13:33
Jay22-Jan-04 13:33 
GeneralRe: Javascript maths error Pin
Roger Wright2-Jan-04 14:11
professionalRoger Wright2-Jan-04 14:11 
GeneralSource Code for Dynamic Date and Time script function in asp.net Pin
Anonymous2-Jan-04 11:52
Anonymous2-Jan-04 11:52 
GeneralRe: Source Code for Dynamic Date and Time script function in asp.net Pin
Roger Wright2-Jan-04 12:36
professionalRoger Wright2-Jan-04 12:36 
GeneralRespond Urgently....Need Help!! Pin
Sensitive2-Jan-04 3:34
Sensitive2-Jan-04 3:34 
Hi!!
I am facing a problem while downloading file from a site. Infact the file with the code below is working fine on my local system but when i tries to download the file from remote server it generates an error and displays following text as a message box:

"Internet Explorer cannot download <file> from <servername>.

Internet Explorer was not able to open this Internet Site. The requested site is either unavailable or cannot be found."

The file i am trying to download is a self extracting .exe file. The path of a file is perfect coz when i put a small size file on the same location with the same name, download starts without any error. ONe thing, using win2003 server.

Please reply me and help me ASAP its really very urgent.

Regards,
Farhan Ahmed
farhanmanzoor@hotmail.com

----------------------------------- C O D E ------------------------------------

Response.ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition","attachment;filename=" &strFileName& ""
strFilePath = replace(request.ServerVariables("APPL_PHYSICAL_PATH")&strFilePath, "\","/")

Const adTypeBinary = 1
strFilePath = strFilePath

Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile strFilePath
Response.BinaryWrite objStream.Read
objStream.Close

Set objStream = Nothing

--------------------------------------------------------------------------------
GeneralRe: Respond Urgently....Need Help!! Pin
perlmunger4-Jan-04 16:16
perlmunger4-Jan-04 16:16 
GeneralRe: Respond Urgently....Need Help!! Pin
Sensitive4-Jan-04 19:14
Sensitive4-Jan-04 19:14 
GeneralRe: Respond Urgently....Need Help!! Pin
perlmunger5-Jan-04 5:07
perlmunger5-Jan-04 5:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.