Click here to Skip to main content
15,915,603 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: inserting multiple rows at a time Pin
Laxmikant Lad29-May-07 21:20
Laxmikant Lad29-May-07 21:20 
Question[Message Deleted] Pin
Junior Boy29-May-07 21:01
Junior Boy29-May-07 21:01 
AnswerRe: Convert VB .NET to C# .NET Pin
Jay_se29-May-07 21:07
Jay_se29-May-07 21:07 
GeneralRe: Convert VB .NET to C# .NET Pin
Junior Boy29-May-07 21:17
Junior Boy29-May-07 21:17 
AnswerRe: Convert VB .NET to C# .NET Pin
Christian Graus29-May-07 21:26
protectorChristian Graus29-May-07 21:26 
GeneralRe: Convert VB .NET to C# .NET Pin
Junior Boy29-May-07 21:57
Junior Boy29-May-07 21:57 
AnswerRe: Convert VB .NET to C# .NET Pin
Steven J Jowett29-May-07 22:20
Steven J Jowett29-May-07 22:20 
GeneralRe: Convert VB .NET to C# .NET Pin
Guffa29-May-07 23:46
Guffa29-May-07 23:46 
That looks like VB6 code that is just ported to .NET without converting to .NET technology. There is no reason to use a ADODB.Stream object in .NET, there are better stream objects in the .NET framework. You don't even have to use a stream object in .NET to output a file, there are methods for that in the HttpResponse object.

Real VB.NET code:

Response.Buffer = True<br />
Response.AddHeader("content-disposition", "attachment; filename=MyFile.txt")<br />
Response.WriteFile("C:\data.txt")<br />
Response.End()



---
single minded; short sighted; long gone;

QuestionPassword field lost their values Pin
suveenmohan29-May-07 20:42
suveenmohan29-May-07 20:42 
AnswerRe: Password field lost their values Pin
marky77729-May-07 20:46
marky77729-May-07 20:46 
GeneralRe: Password field lost their values Pin
suveenmohan29-May-07 21:49
suveenmohan29-May-07 21:49 
GeneralRe: Password field lost their values Pin
marky77729-May-07 21:59
marky77729-May-07 21:59 
QuestionFile Download problem.... Pin
manjunath hindupur29-May-07 20:32
manjunath hindupur29-May-07 20:32 
QuestionRequest .Form for a Div tag Pin
Senthil_M29-May-07 20:28
Senthil_M29-May-07 20:28 
AnswerRe: Request .Form for a Div tag Pin
Guffa29-May-07 21:39
Guffa29-May-07 21:39 
Questiongrid view Pin
mahendra nath reddy29-May-07 20:24
mahendra nath reddy29-May-07 20:24 
Questionhow to place controls one below another Pin
harithadotnet29-May-07 20:19
harithadotnet29-May-07 20:19 
AnswerRe: how to place controls one below another Pin
nareshss29-May-07 20:46
nareshss29-May-07 20:46 
Generaltask management Pin
sangramkp29-May-07 20:19
sangramkp29-May-07 20:19 
GeneralRe: task management Pin
karthik_dotnet130-May-07 0:33
karthik_dotnet130-May-07 0:33 
GeneralRe: task management Pin
sangramkp30-May-07 0:51
sangramkp30-May-07 0:51 
GeneralRe: task management Pin
karthik_dotnet130-May-07 1:17
karthik_dotnet130-May-07 1:17 
GeneralRe: task management Pin
sangramkp30-May-07 1:24
sangramkp30-May-07 1:24 
QuestionTextbox Multiline Pin
kirthikirthi29-May-07 20:13
kirthikirthi29-May-07 20:13 
AnswerRe: Textbox Multiline Pin
Sherin Iranimose29-May-07 21:20
Sherin Iranimose29-May-07 21:20 

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.