M
mete hanap
For example, I loop through a list of strings that are paths to .pdf
files and create HyperLink controls to add to a PlaceHolder control.
The HyperLinks get created accordingly but when clicked, they do
nothing.
List<string> dirs = FileHelper.GetFilesRecursive(newsLettersPath);
foreach (string p in dirs)
{
HyperLink hlNewsLetter = new HyperLink();
hlNewsLetter.ID = p;
hlNewsLetter.Text = p + "<br>";
hlNewsLetter.Target = "_new";
hlNewsLetter.NavigateUrl = p;
placeHolder_NewsLetters.Controls.Add(hlNewsLetter);
}
any help is appreciated.
thank folks...
-
fd
files and create HyperLink controls to add to a PlaceHolder control.
The HyperLinks get created accordingly but when clicked, they do
nothing.
List<string> dirs = FileHelper.GetFilesRecursive(newsLettersPath);
foreach (string p in dirs)
{
HyperLink hlNewsLetter = new HyperLink();
hlNewsLetter.ID = p;
hlNewsLetter.Text = p + "<br>";
hlNewsLetter.Target = "_new";
hlNewsLetter.NavigateUrl = p;
placeHolder_NewsLetters.Controls.Add(hlNewsLetter);
}
any help is appreciated.
thank folks...
-
fd