...

View Full Version : Opening file location



sivaraj_g
11-21-2006, 11:03 AM
hi all,

i have to open a pdf/doc file using ASP.NET on a button click event. the file path is in a table in d database(MS-ACCESS). how could i import the file path into the syntax

Response.Writefile();

using C# coding.

i've used data-adapter n a dataset into which the corresponding table is loaded.. i've to load the precise cell content in the syntax...

nikkiH
11-21-2006, 07:59 PM
I assume the path is a full path, stored in a dataset, and you're doing something to loop through the DS to process each row. If so, you could do like:



foreach (DataRow row in myDataset.Tables["MyTableName"].Rows )
{
path=(string)row["MyPathColName"];
Response.Writefile(path);
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum