S
Sunny
Hi,
I would like in runtime to create some sections of the page, and at the
beginning to put some links to these sections.
Lets say I have to provide some details for every city user will visit.
I fetch the cities from the DB, and details for every city. Now I want
to have a page like this:
<p><a href="#Minneapolis">Minneapolis</a></p>
<p><a href="#Seattle">Seattle</a></p>
<p><a href="#Tokio">Tokio</a></p>
<p><a href="#Moscow">Moscow</a></p>
.........
<a name="Minneapolis"></a>
Data for Minneapolis
........
<a name="Seattle"></a>
Data for Seattle
......
etc., etc.
So far, I create a PlaceHolders for both links and detail sections, and
while I iterate my data, I generate the anchor name, and I can add the
links using HyperLink control. But I can not figure out how to add the
anchors in the second PlaceHolder.
I taught to use Literal control, but this looks ugly. Any suggestions?
Thanks
Sunny
I would like in runtime to create some sections of the page, and at the
beginning to put some links to these sections.
Lets say I have to provide some details for every city user will visit.
I fetch the cities from the DB, and details for every city. Now I want
to have a page like this:
<p><a href="#Minneapolis">Minneapolis</a></p>
<p><a href="#Seattle">Seattle</a></p>
<p><a href="#Tokio">Tokio</a></p>
<p><a href="#Moscow">Moscow</a></p>
.........
<a name="Minneapolis"></a>
Data for Minneapolis
........
<a name="Seattle"></a>
Data for Seattle
......
etc., etc.
So far, I create a PlaceHolders for both links and detail sections, and
while I iterate my data, I generate the anchor name, and I can add the
links using HyperLink control. But I can not figure out how to add the
anchors in the second PlaceHolder.
I taught to use Literal control, but this looks ugly. Any suggestions?
Thanks
Sunny