Saturday, December 6, 2008

Saving Uploaded file into Disk and displaying the content into TextBox

0 comments 12/06/2008
Sign up to receive our site updates!


Design





//in upload button click event write the bel0w code

protected void btnuplode_Click(object sender, EventArgs e)

{

fuplode.SaveAs(@"D:\\Raji\\ASP\\uplodefile\\uploadefiles\\" + fuplode.FileName);

StreamReader sr=new StreamReader ("D:\\Raji\\ASP\\uplodefile\\uploadefiles\\" + fuplode.FileName);

string content=sr.ReadToEnd();

TextBox1.Text = content;

sr.Close();

}

Your Ad Here

0 comments:

Respects for your's Questions & Opinions

  • Friends
  •  

    Recent Posts

    Copyright 2008 All Rights Reserved Tech Tasks Template by Rajesh Kumar Chekuri