Put Response.End() once you complete the rendering of file content... Hope this helps..
Regards, Satheesh On Sep 18, 12:06 pm, "Rajesh Venugopal" <[EMAIL PROTECTED]> wrote: > Hi, > I am getting a problem while trying a File Download in an ASP.net > application with C# . The final output that gets downloaded is having the > HTML (what we get in view source) of the page (on which Download code is > written) appended after the file content. The original text file that was > downloaded doesnot have this content. > > The above problem is coming with .txt and .rtf files. > > could anyone please help me in fixing this isssue. > > Regards > Rajesh Venugopal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups ".NetIndia" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/TechdotNetIndia?hl=en http://www.satheeshbabu.com http://www.satheeshbabu.blogspot.com/ -~----------~----~----~----~------~----~------~--~---
