I am trying to populate a dataset with the results of an SQL Query...then...display those results in a browser, using XML and HTML.
public
{
conn.Open();
while (reader.Read())
Console.SetWindowSize(100, 59);
Console.SetWindowPosition(0, 0);
Console.WriteLine(String.Format("{0}, {1}, {2}, {3}, {4}, {5}, {6}",
reader[0], reader[1], reader[2], reader[3], reader[4], reader[5], reader[6]));
}
Console.WriteLine("");*/
adapter.Fill(ds);
ds.DataSetName =
ds.Tables[0].TableName =
tempDir.CreateSubdirectory(
tempFile.Delete();
tempFile.Create();
FileStore.Close();
writer.Close();
Xmltransform.Load(
Xmltransform.Transform(Xmldoc,
conn.Close();
The break occurs when trying to load the.Xsl file with this statement.
Xmltransform.Load(@"C:\tempWeb\Queries.xsl");
I've tried closing "tempFile" after creation...however there is no method definition for Close(); with FileInfo.
To achieve some form of File closure...I stored "tempFile" within Filestream. this however did not work.
any help would be great.