Click here to Skip to main content
15,908,674 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Get value from control Pin
ayeleteric17-Nov-06 0:02
ayeleteric17-Nov-06 0:02 
GeneralRe: Get value from control Pin
alimohammed17-Nov-06 0:52
alimohammed17-Nov-06 0:52 
GeneralRe: Get value from control [modified] Pin
ayeleteric17-Nov-06 21:50
ayeleteric17-Nov-06 21:50 
Questionwant a help in asp.net Pin
amit_iper916-Nov-06 23:44
amit_iper916-Nov-06 23:44 
AnswerRe: want a help in asp.net Pin
ednrgc17-Nov-06 3:36
ednrgc17-Nov-06 3:36 
QuestionASP.NET Design / Source problems? Pin
wbjohnson16-Nov-06 23:17
wbjohnson16-Nov-06 23:17 
QuestionHttphandler works intermittently Pin
s2111979216-Nov-06 23:07
s2111979216-Nov-06 23:07 
Question.txt file download Pin
Nagraj Naik16-Nov-06 22:52
Nagraj Naik16-Nov-06 22:52 
Hi friends,
I have to upload and download .txt or .doc file on server.
I uploaded files properly.

But when downloading files, if file is .doc file then it get downloaded correctly,and if I download .txt file that saved .txt file containing some html code.
If I cheched it on server directly it is showing .txt without html code.

This is my code for download.

Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", _
"attachment; filename=""" & filename & """")
Response.Flush()
Response.WriteFile(filepath)

Why this is so.


Please help me.........thanks in advance.



Ragards,
Nagraj


QuestionIIS problem & solution yet its not working Pin
K edar V16-Nov-06 22:49
K edar V16-Nov-06 22:49 
AnswerRe: IIS problem & solution yet its not working Pin
K edar V16-Nov-06 22:54
K edar V16-Nov-06 22:54 
QuestionABOUT REPORTVIEWER IN ASP.NET2005 Pin
BINOVAR16-Nov-06 22:17
BINOVAR16-Nov-06 22:17 
QuestionSave as window pop up problem? Pin
cheeken2u16-Nov-06 22:03
cheeken2u16-Nov-06 22:03 
AnswerRe: Save as window pop up problem? Pin
Pavan Naidu16-Nov-06 22:18
Pavan Naidu16-Nov-06 22:18 
GeneralRe: Save as window pop up problem? Pin
cheeken2u16-Nov-06 22:33
cheeken2u16-Nov-06 22:33 
QuestionGridView and SqlDataSource and n-tier approach? Pin
kbalias16-Nov-06 21:54
kbalias16-Nov-06 21:54 
AnswerRe: GridView and SqlDataSource and n-tier approach? Pin
Guffa16-Nov-06 21:59
Guffa16-Nov-06 21:59 
QuestionTextBox problem Pin
Kissy1616-Nov-06 20:43
Kissy1616-Nov-06 20:43 
AnswerRe: TextBox problem Pin
danidanidani16-Nov-06 20:52
danidanidani16-Nov-06 20:52 
GeneralRe: TextBox problem Pin
Kissy1616-Nov-06 22:41
Kissy1616-Nov-06 22:41 
AnswerRe: TextBox problem Pin
AmitChampaneri16-Nov-06 21:09
AmitChampaneri16-Nov-06 21:09 
GeneralRe: TextBox problem Pin
Kissy1616-Nov-06 22:20
Kissy1616-Nov-06 22:20 
GeneralRe: TextBox problem Pin
Pavan Naidu16-Nov-06 22:33
Pavan Naidu16-Nov-06 22:33 
GeneralRe: TextBox problem Pin
AmitChampaneri16-Nov-06 23:06
AmitChampaneri16-Nov-06 23:06 
Questionhow to get the last inserted Id With SQL Server Pin
Amit Agarrwal16-Nov-06 20:29
Amit Agarrwal16-Nov-06 20:29 
AnswerRe: how to get the last inserted Id With SQL Server Pin
danidanidani16-Nov-06 20:58
danidanidani16-Nov-06 20:58 

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.