i hope you can answer me about this one
I have code that liste the file in a specific directory ad create link to eache files it find.
the code is
|
that work ok but it show the file in a new browser page.
I want it to load to a literal control that i have on my page from te link create by that code
Is it possible if not howto please i am stok here with this
Thank's
SORRY i have forgot to mention it's ASP.NET C#

Daniel MoraisPosted Jun 18, 2010, 11:21 AM
it's still do the same probleme as my code
Load the text content of the files in outher page
not in the literal
I have try with site master page and still the same
i have try this code
DirectoryInfo di;
di = new DirectoryInfo(Server.MapPath("Data/"));
FileInfo[] rgFiles = di.GetFiles("*.inC");
foreach (FileInfo fi in rgFiles)
{
System.Text.
StringBuilder lnk = new System.Text.StringBuilder();lnk.Append("+fi.Name+"?lnkID=" + fi.Name + ">" + fi.Name + "
");
Response.Write(lnk.ToString());
}
Still not working
Now Iam lost with this probleme.
Thank's again
CrishPosted Jun 18, 2010, 1:56 AM
System.Text.StringBuilder lnk = new System.Text.StringBuilder();
int i;
{
lnk.Append("
");
}
ltrNews.Text = lnk.ToString();
change code accordingly your requirement