These article said to posses
1) A file uploader
Which is used for uploading files to server
2)A grid view
Whic is used to store the uploaded file to te user and to delete it.
step1: Place a uploader in design page and write a coding as
protected void Button1_Click(object sender, EventArgs e)
fname = FileUpload1.FileName;
spath = @"~\ssg\" + FileUpload1.FileName;
fpath = Server.MapPath("ssg");
fpath = fpath + @"\" + FileUpload1.FileName;
desc = TextBox2.Text;
Label1.Text = "File Name already exists!";
//Store details in the SQL Server table
TextBox2.Text = "";
Label1.Text="Please select file!";
step 2: Now for loading grid and storing details write coding as
sqlcmd = new SqlCommand("select * from fileDet", sqlcon);
da = new SqlDataAdapter(sqlcmd);
if (dt.Rows.Count > 0)
GridView1.DataSource = dt;
}Main concept behind this is
During uploaded time i have store the server path in the SQL Server.
I had bind server path in Grid View Hyper link (Navigate URL).
Then bind in grid view If user click the file name in the grid view then files are downloaded.
NOTE: Create the folder named ssg in your application
Please find attachment for more details...