Click here to Skip to main content
15,901,122 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCrystal Report Problem in asp.net/vb.net Pin
Kissy1622-Feb-07 23:20
Kissy1622-Feb-07 23:20 
AnswerRe: Crystal Report Problem in asp.net/vb.net Pin
icestatue23-Feb-07 1:51
icestatue23-Feb-07 1:51 
AnswerRe: Crystal Report Problem in asp.net/vb.net Pin
Sylvester george23-Feb-07 2:34
Sylvester george23-Feb-07 2:34 
Questionprinting the web page Pin
sPaudel22-Feb-07 23:14
sPaudel22-Feb-07 23:14 
AnswerRe: printing the web page Pin
thomas_joyee22-Feb-07 23:48
thomas_joyee22-Feb-07 23:48 
GeneralRe: printing the web page Pin
Amit Agarrwal23-Feb-07 2:50
Amit Agarrwal23-Feb-07 2:50 
AnswerRe: printing the web page Pin
Suresh Pirsquare23-Feb-07 5:34
Suresh Pirsquare23-Feb-07 5:34 
QuestionOpen a server side document using a client's program Pin
markymark8222-Feb-07 22:35
markymark8222-Feb-07 22:35 
Hi,

need help with the following code, the intention is for my server-side web app to open a doc held on the server's drive using a clients external native program (ie. notepad for a .text doc).



my code so far:

(previous page redirects to here after setting the file path as the session 'FullFilePath')

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();

compiled my site which was all fine

but then get server error in my app when i browse to it after its set live.

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

but I can't see that anythings wrong?



any thoughts at all?
AnswerRe: Open a server side document using a client's program Pin
Paddy Boyd22-Feb-07 22:37
Paddy Boyd22-Feb-07 22:37 
GeneralRe: Open a server side document using a client's program Pin
markymark8222-Feb-07 22:44
markymark8222-Feb-07 22:44 
GeneralRe: Open a server side document using a client's program Pin
markymark8222-Feb-07 23:51
markymark8222-Feb-07 23:51 
Questionneed help for print the webpage content Pin
sPaudel22-Feb-07 22:29
sPaudel22-Feb-07 22:29 
AnswerRe: need help for print the webpage content Pin
Paddy Boyd22-Feb-07 22:39
Paddy Boyd22-Feb-07 22:39 
AnswerRe: need help for print the webpage content Pin
Suresh Pirsquare23-Feb-07 5:38
Suresh Pirsquare23-Feb-07 5:38 
QuestionDropdown List Pin
Member 374156222-Feb-07 22:28
Member 374156222-Feb-07 22:28 
AnswerRe: Dropdown List Pin
Michael Sync22-Feb-07 23:00
Michael Sync22-Feb-07 23:00 
Questionneed help for print the webpage programetically Pin
sPaudel22-Feb-07 22:27
sPaudel22-Feb-07 22:27 
AnswerRe: need help for print the webpage programetically Pin
Hesham Amin22-Feb-07 22:31
Hesham Amin22-Feb-07 22:31 
Questionproblem regarding query string Pin
Member 309559322-Feb-07 22:21
Member 309559322-Feb-07 22:21 
AnswerRe: problem regarding query string Pin
Michael Sync22-Feb-07 22:48
Michael Sync22-Feb-07 22:48 
Questiondatalist in usercontrol and itemcommand not firing?? Pin
Tridip Bhattacharjee22-Feb-07 22:01
professionalTridip Bhattacharjee22-Feb-07 22:01 
AnswerRe: datalist in usercontrol and itemcommand not firing?? Pin
Michael Sync22-Feb-07 22:22
Michael Sync22-Feb-07 22:22 
Questionhttp://localhost not working. Pin
siddisagar22-Feb-07 20:28
siddisagar22-Feb-07 20:28 
AnswerRe: http://localhost not working. Pin
Harini N K22-Feb-07 21:14
Harini N K22-Feb-07 21:14 
AnswerRe: http://localhost not working. Pin
icestatue23-Feb-07 1:55
icestatue23-Feb-07 1:55 

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.