Click here to Skip to main content
15,909,939 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Open a server side document using a client's program Pin
Paddy Boyd22-Feb-07 1:35
Paddy Boyd22-Feb-07 1:35 
GeneralRe: Open a server side document using a client's program Pin
markymark8222-Feb-07 1:37
markymark8222-Feb-07 1:37 
AnswerRe: Open a server side document using a client's program Pin
badgrs22-Feb-07 1:45
badgrs22-Feb-07 1:45 
AnswerRe: Open a server side document using a client's program Pin
Paddy Boyd22-Feb-07 1:41
Paddy Boyd22-Feb-07 1:41 
GeneralRe: Open a server side document using a client's program Pin
markymark8222-Feb-07 3:32
markymark8222-Feb-07 3:32 
GeneralRe: Open a server side document using a client's program Pin
Paddy Boyd22-Feb-07 3:35
Paddy Boyd22-Feb-07 3:35 
GeneralRe: Open a server side document using a client's program Pin
markymark8222-Feb-07 3:39
markymark8222-Feb-07 3:39 
GeneralRe: Open a server side document using a client's program Pin
markymark8222-Feb-07 4:20
markymark8222-Feb-07 4:20 
OK , worked out the binarywrite bit,

compiled my site which was all fine

then got server error in my app.

'Specified argument was out of the range of valid values.
Paramater name: offset'?

but I can't see that anythings wrong?

my code so far:

FileStream theFile = File.Open(Session["FullFilePath"].ToString(), FileMode.Open);

Response.AppendHeader("content-disposition", "attachment;filename="+Session["FullFilePath"].ToString());
Response.Write(Session["FullFilePath"].ToString());

long filesize = theFile.Length;

byte[] getContent = new byte[filesize];
Response.BinaryWrite(getContent);
Response.Flush();
Response.Close();
theFile.Close();
theFile.Dispose();

any thoughts at all?

QuestionDisable all textboxes in a page. Pin
MY120121-Feb-07 23:39
MY120121-Feb-07 23:39 
AnswerRe: Disable all textboxes in a page. Pin
Michael Sync21-Feb-07 23:48
Michael Sync21-Feb-07 23:48 
AnswerRe: Disable all textboxes in a page. Pin
Harini N K22-Feb-07 0:00
Harini N K22-Feb-07 0:00 
AnswerRe: Disable all textboxes in a page. Pin
anufabian22-Feb-07 1:09
anufabian22-Feb-07 1:09 
GeneralRe: Disable all textboxes in a page. Pin
Sandeep Akhare22-Feb-07 1:18
Sandeep Akhare22-Feb-07 1:18 
AnswerRe: Disable all textboxes in a page. Pin
badgrs22-Feb-07 1:24
badgrs22-Feb-07 1:24 
GeneralRe: Disable all textboxes in a page. Pin
badgrs22-Feb-07 1:43
badgrs22-Feb-07 1:43 
QuestionHow to create a link to my table content Pin
jeya krishnan.v21-Feb-07 23:26
jeya krishnan.v21-Feb-07 23:26 
AnswerRe: How to create a link to my table content Pin
Tuwing.Sabado21-Feb-07 23:36
Tuwing.Sabado21-Feb-07 23:36 
AnswerRe: How to create a link to my table content Pin
Michael Sync21-Feb-07 23:40
Michael Sync21-Feb-07 23:40 
AnswerRe: How to create a link to my table content Pin
anufabian22-Feb-07 1:16
anufabian22-Feb-07 1:16 
QuestionCrystal Report Problem in asp.net/vb.net Pin
Kissy1621-Feb-07 23:15
Kissy1621-Feb-07 23:15 
AnswerRe: Crystal Report Problem in asp.net/vb.net Pin
Sylvester george21-Feb-07 23:37
Sylvester george21-Feb-07 23:37 
GeneralRe: Crystal Report Problem in asp.net/vb.net Pin
Kissy1621-Feb-07 23:50
Kissy1621-Feb-07 23:50 
QuestionCan Tooltip be used inside a Datagrid Pin
kiran0121-Feb-07 23:08
kiran0121-Feb-07 23:08 
AnswerRe: Can Tooltip be used inside a Datagrid Pin
anufabian22-Feb-07 19:30
anufabian22-Feb-07 19:30 
QuestionSynchronizing Gridview and Formview Pin
me.name21-Feb-07 23:09
me.name21-Feb-07 23:09 

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.