Click here to Skip to main content
15,885,899 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: need picturebox control on webform Pin
mathprof3-Jun-07 13:32
mathprof3-Jun-07 13:32 
GeneralRe: need picturebox control on webform Pin
Christian Graus3-Jun-07 13:37
protectorChristian Graus3-Jun-07 13:37 
QuestionMultiple Submit Behaviour in an ASP.Net Page Pin
Gamzun3-Jun-07 0:52
Gamzun3-Jun-07 0:52 
AnswerRe: Multiple Submit Behaviour in an ASP.Net Page Pin
Viral Upadhyay3-Jun-07 2:35
Viral Upadhyay3-Jun-07 2:35 
QuestionMultiple App_Code type folders Pin
eggie52-Jun-07 22:09
eggie52-Jun-07 22:09 
AnswerRe: Multiple App_Code type folders Pin
Guffa2-Jun-07 23:57
Guffa2-Jun-07 23:57 
GeneralRe: Multiple App_Code type folders Pin
eggie53-Jun-07 8:21
eggie53-Jun-07 8:21 
QuestionSome HTML code in Textfile downloaded. Pin
Junior Boy2-Jun-07 21:32
Junior Boy2-Jun-07 21:32 
I have no idea how can i get the HTML code in the textfile that I downloaded from the server.
Here is the code... (C# .net)

============================================================================================
String filename = "dataFile.txt";
String fileDownload = Server.MapPath("TextFiles//mydata.txt");

Response.ContentType = "text/plain";
String disHeader = "Attachment; Filename=\"" + filename + "\"";
Response.AppendHeader("Content-Disposition", disHeader);
FileInfo fileToDownload = new FileInfo(fileDownload);
Response.WriteFile("" + fileToDownload.FullName);
============================================================================================
I tried to used the vb .net it has no problem I mean no HTML code in the textfile.
Anybody who has ever had this problem? or Anybody who know this how to solve the problem help me please.
Thank you very much.


junior boy

AnswerRe: Some HTML code in Textfile downloaded. Pin
Christian Graus2-Jun-07 21:53
protectorChristian Graus2-Jun-07 21:53 
GeneralRe: Some HTML code in Textfile downloaded. Pin
Junior Boy2-Jun-07 22:09
Junior Boy2-Jun-07 22:09 
GeneralRe: Some HTML code in Textfile downloaded. Pin
Junior Boy2-Jun-07 22:18
Junior Boy2-Jun-07 22:18 
Questionproblem in implementing sql server connection in windows service Pin
sid22-12-Jun-07 6:23
sid22-12-Jun-07 6:23 
AnswerRe: problem in implementing sql server connection in windows service Pin
kubben3-Jun-07 1:13
kubben3-Jun-07 1:13 
GeneralRe: problem in implementing sql server connection in windows service Pin
sid22-13-Jun-07 21:29
sid22-13-Jun-07 21:29 
GeneralRe: problem in implementing sql server connection in windows service Pin
kubben4-Jun-07 1:34
kubben4-Jun-07 1:34 
QuestionAdmin & user Sections .. how authentication then ????!!!! Pin
devboycpp2-Jun-07 4:45
devboycpp2-Jun-07 4:45 
Questionquota handling in local host as well as web server Pin
ram krishna pattnayak2-Jun-07 3:51
ram krishna pattnayak2-Jun-07 3:51 
QuestionHow can I publish my asp.net website? Pin
Nada Adel2-Jun-07 3:32
Nada Adel2-Jun-07 3:32 
AnswerRe: How can I publish my asp.net website? Pin
doWhileSomething2-Jun-07 6:31
doWhileSomething2-Jun-07 6:31 
QuestionGridView not updating Pin
Bajrang Singh2-Jun-07 2:29
Bajrang Singh2-Jun-07 2:29 
QuestionDatagrid paging Pin
Uma Kameswari2-Jun-07 2:12
Uma Kameswari2-Jun-07 2:12 
Questionhow can i open full screen window using response.redirect Pin
koolprasad20032-Jun-07 2:11
professionalkoolprasad20032-Jun-07 2:11 
AnswerRe: how can i open full screen window using response.redirect Pin
Guffa2-Jun-07 5:11
Guffa2-Jun-07 5:11 
Questiongridview + Asp.net 2.0 + c# Pin
ritu43212-Jun-07 1:20
ritu43212-Jun-07 1:20 
Questionwhen i disable controls in the form on client side they get disabled but .. Pin
yogita charhate2-Jun-07 1:12
yogita charhate2-Jun-07 1:12 

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.