Click here to Skip to main content
15,905,877 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ItemCommand Event Not Firing Pin
postmaster@programmingknowledge.com10-Aug-06 6:00
postmaster@programmingknowledge.com10-Aug-06 6:00 
AnswerRe: ItemCommand Event Not Firing Pin
Anil Ch10-Aug-06 6:27
Anil Ch10-Aug-06 6:27 
Questionpassing values to another window Pin
nannapanenikamalnath9-Aug-06 23:38
nannapanenikamalnath9-Aug-06 23:38 
AnswerRe: passing values to another window Pin
P. S. Pundeer9-Aug-06 23:44
P. S. Pundeer9-Aug-06 23:44 
GeneralRe: passing values to another window Pin
nannapanenikamalnath10-Aug-06 0:01
nannapanenikamalnath10-Aug-06 0:01 
GeneralRe: passing values to another window Pin
_AK_10-Aug-06 0:06
_AK_10-Aug-06 0:06 
GeneralRe: passing values to another window Pin
nannapanenikamalnath10-Aug-06 0:10
nannapanenikamalnath10-Aug-06 0:10 
QuestionDownload File Pin
someone_blank9-Aug-06 23:12
someone_blank9-Aug-06 23:12 
Hi,

I am trying to download files from a datagrid but am using a simple button to test if the codes work. The codes displays the download window but it is downloading my aspx file instead of my word document. I hope u could help me solve this error.

Thanks.

===== My Code =====

Dim objFile As System.IO.FileInfo
objFile = New System.IO.FileInfo("C:\project\Testing File.doc")

' Clear the current output content from the buffer
Response.Clear()

' Add the header that specifies the default filename for the Download/SaveAs dialog
Response.AddHeader("Content-Length", objFile.Length.ToString())

' Add the header that specifies the file size, so that the browser can show the download progress
Response.AddHeader("Content-Length", objFile.Length.ToString())

' Specify that the response is a stream that cannot be read by the
' client and must be downloaded
Response.ContentType = "application/octet-stream"

' Send the file stream to the client
Response.WriteFile(objFile.FullName)
Response.Flush()

' Stop execution
Response.End()


-- sam
AnswerRe: Download File Pin
Mike Ellison10-Aug-06 3:16
Mike Ellison10-Aug-06 3:16 
QuestionHow to Read Text file from URL Pin
wEb GuRu...9-Aug-06 22:38
wEb GuRu...9-Aug-06 22:38 
AnswerRe: How to Read Text file from URL Pin
Mike Ellison10-Aug-06 3:03
Mike Ellison10-Aug-06 3:03 
QuestionAuto Save using AJAX every 10 sec Pin
Amit Agarrwal9-Aug-06 22:31
Amit Agarrwal9-Aug-06 22:31 
QuestionMS Merlin animation Pin
Amalarajan9-Aug-06 22:18
Amalarajan9-Aug-06 22:18 
Questiongetting cell index or text Pin
24891289-Aug-06 21:43
24891289-Aug-06 21:43 
AnswerRe: getting cell index or text Pin
_AK_9-Aug-06 21:47
_AK_9-Aug-06 21:47 
GeneralRe: getting cell index or text Pin
24891289-Aug-06 21:58
24891289-Aug-06 21:58 
GeneralRe: getting cell index or text Pin
P. S. Pundeer9-Aug-06 23:11
P. S. Pundeer9-Aug-06 23:11 
GeneralRe: getting cell index or text Pin
24891289-Aug-06 23:47
24891289-Aug-06 23:47 
Questionwhile downloading i got some error Pin
Sebastian T Xavier9-Aug-06 21:41
Sebastian T Xavier9-Aug-06 21:41 
QuestionSelect distinct date? Pin
blurMember9-Aug-06 21:15
blurMember9-Aug-06 21:15 
AnswerRe: Select distinct date? Pin
Sebastian T Xavier9-Aug-06 23:33
Sebastian T Xavier9-Aug-06 23:33 
GeneralRe: Select distinct date? Pin
Muhammad Chitrali10-Aug-06 0:34
Muhammad Chitrali10-Aug-06 0:34 
GeneralRe: Select distinct date? Pin
_AK_10-Aug-06 18:50
_AK_10-Aug-06 18:50 
QuestionImage Ressizing Component Pin
Malayil alex9-Aug-06 21:11
Malayil alex9-Aug-06 21:11 
AnswerRe: Image Ressizing Component Pin
_AK_9-Aug-06 21:41
_AK_9-Aug-06 21:41 

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.