How to collect multiple URL's in a generic list .

Jan 12 2017 12:02 AM

Hi to all,

I want to how to collect multiple URL , Using generic list in asp.net. I am using a single .aspx page , in this page more than one url's using .

my concern is how to find multiple URL's from single .aspx page

Like example : Steps

1. open a msdn.com

2. in this home page using multiple url like that.

<ul class="navL2">
 <li class="inactive">
  
 <a href="https://msdn.microsoft.com/magazine/dd767791" role="link" title="Magazine">Magazine</a>
 </li>
 <li class="inactive">
  
 <a href="https://social.msdn.microsoft.com/forums/" role="link" title="Forums">Forums</a>
 </li>
 <li class="inactive">
  
 <a href="https://blogs.msdn.microsoft.com/" role="link" title="Blogs">Blogs</a>
 </li>
 <li class="inactive">
  
 <a href="http://channel9.msdn.com/" role="link" title="Channel 9">Channel 9</a>
 </li>
</ul>

3. I want to how to collect all url's in a generic list in asp.net code behind.

4. all urls collect as a items in a list.



Thanks,


Answers (2)