first of all thanx for being there to help me out..
actually my main problem is that i have to read a txt file stored somewhere in my computer and its path is specified in the database
i dnt know how read this using asp.net 2.0
plzz help me
public void Button1_OnClick(object sender, EventArgs e)
string path = TextBox1.Text.ToString();
string file = TextBox2.Text.ToString();
DirectoryInfo dir = new DirectoryInfo(path);
FileInfo bmpfiles = dir.GetFiles(file);
foreach( FileInfo f in bmpfiles)
//add what you need to do with the file when found
Label1.Text = "File Found";
I am reading from text boxes, in a similar fashion I think you can read from a database through your database connection, etc. This does require "using System.IO;"