Open a file and display in textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmrhema
    Contributor
    • Jan 2007
    • 375

    Open a file and display in textbox

    hello
    I need to load a file and display the contents in a textbox.
    I am using asp.net and Visual C# 2005

    I tried out this coding
    Code:
    string filename = (@"c:\download.txt");
            Response.Clear();
            
            Response.Flush();
            Response.WriteFile(filename);
    but this will help me in writing the file in the page(screen)

    I want the file contents to be displayed in the text box

    Kindly help
    Thanks
Working...