Click here to Skip to main content
15,897,187 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPls Help: Accessing multiple user's logged in pages from a single login Pin
shouvik_1331-Jul-06 3:15
shouvik_1331-Jul-06 3:15 
AnswerRe: Pls Help: Accessing multiple user's logged in pages from a single login Pin
Ista3-Aug-06 2:53
Ista3-Aug-06 2:53 
Questionfile upload control Pin
For_IT31-Jul-06 2:41
For_IT31-Jul-06 2:41 
AnswerRe: file upload control Pin
ToddHileHoffer31-Jul-06 4:18
ToddHileHoffer31-Jul-06 4:18 
GeneralRe: file upload control Pin
eggsovereasy31-Jul-06 9:30
eggsovereasy31-Jul-06 9:30 
QuestionPassing Guid Object as parameter of a Control -> to ObjectDataSource(TableAdapter) Pin
Brokit31-Jul-06 1:45
Brokit31-Jul-06 1:45 
AnswerRe: Passing Guid Object as parameter of a Control -> to ObjectDataSource(TableAdapter) [modified] Pin
postmaster@programmingknowledge.com31-Jul-06 3:22
postmaster@programmingknowledge.com31-Jul-06 3:22 
QuestionDownloading documents from an ASP.NET 2.0 page Pin
seee sharp31-Jul-06 1:02
seee sharp31-Jul-06 1:02 
Hello,

I have following code for providing download of file.

byte[] bytes = this.ContentController.GetFileContents(_filePath);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment;filename=Document.pdf" );
Response.AddHeader("Content-Length", bytes.Length.ToString());
Response.ContentType = "*/*";
Response.BinaryWrite(bytes);

This provides a messagebox on browser with Open/Save/Cancel button.
When I click on save, this saves the document on the disk, and I can open that.
But when I click on Open, this does not open the document. A prompt from PDF reader says, file not found.

How can I getrid of this problem.
Any help is appreciated.

Thanks in advance.Smile | :)

- ashish

AnswerRe: Downloading documents from an ASP.NET 2.0 page Pin
Paddy Boyd31-Jul-06 2:13
Paddy Boyd31-Jul-06 2:13 
GeneralRe: Downloading documents from an ASP.NET 2.0 page Pin
seee sharp31-Jul-06 3:36
seee sharp31-Jul-06 3:36 
Questionhow i can upload only text file using file fild in asp.net 1.1 Pin
omi9831-Jul-06 0:53
omi9831-Jul-06 0:53 
AnswerRe: how i can upload only text file using file fild in asp.net 1.1 Pin
seee sharp31-Jul-06 1:34
seee sharp31-Jul-06 1:34 
QuestionFCKEDITOR in ASP.Net Pin
Debi Prasad31-Jul-06 0:31
Debi Prasad31-Jul-06 0:31 
AnswerRe: FCKEDITOR in ASP.Net Pin
Amit Agarrwal31-Jul-06 1:35
Amit Agarrwal31-Jul-06 1:35 
AnswerRe: FCKEDITOR in ASP.Net [modified] Pin
l0kke31-Jul-06 3:42
l0kke31-Jul-06 3:42 
GeneralRe: FCKEDITOR in ASP.Net [modified] Pin
Debi Prasad31-Jul-06 18:43
Debi Prasad31-Jul-06 18:43 
GeneralRe: FCKEDITOR in ASP.Net Pin
l0kke1-Aug-06 8:50
l0kke1-Aug-06 8:50 
GeneralRe: FCKEDITOR in ASP.Net Pin
Debi Prasad1-Aug-06 18:47
Debi Prasad1-Aug-06 18:47 
GeneralRe: FCKEDITOR in ASP.Net Pin
l0kke3-Aug-06 6:13
l0kke3-Aug-06 6:13 
QuestionFrames in Asp.Net 2.0 Pin
Kamal.Afridi31-Jul-06 0:17
Kamal.Afridi31-Jul-06 0:17 
AnswerRe: Frames in Asp.Net 2.0 Pin
RichardGrimmer31-Jul-06 1:35
RichardGrimmer31-Jul-06 1:35 
GeneralRe: Frames in Asp.Net 2.0 Pin
Kamal.Afridi31-Jul-06 2:17
Kamal.Afridi31-Jul-06 2:17 
Question[Message Deleted] Pin
blurMember31-Jul-06 0:07
blurMember31-Jul-06 0:07 
AnswerRe: LoginName values in .NET 2.0 [modified] Pin
seee sharp31-Jul-06 1:37
seee sharp31-Jul-06 1:37 
AnswerRe: LoginName values in .NET 2.0 [modified] Pin
Amit Agarrwal31-Jul-06 1:37
Amit Agarrwal31-Jul-06 1:37 

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.