Hi
Can any one help me
i have a page and on that page i have a button and a list box when i click on the button all the anchor tags will show in the list box it is possible can any one help ....?
ASP.net How to see the Anchors are used in Page
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Posted Jun 23, 2011, 4:07 AM EDT
You can use javascript. document.getElementsByTagname("a");
If you wanted to do it in server side,
foreach(Control c in this.Page.Controls)
{
if c.GetType() =="YOUR TYPE")
{
//Add the details in the list box.
}
}
Hope this helps you.