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 ....?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Jun 23, 2011, 8:07 AM
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.