hi experts,
i am trying to find the number of broken links in a webpage. i am using this code
foreach(Match match in Srcs)
{
if (! (urlHref.StartsWith(RootPa
th)) // This is for finding the external links
try
{
WebRequest myWebRequest= WebRequest.Create(urlHref)
;
WebResponse response= myWebRequest.GetResponse()
;
response.Close();
}
catch(WebException we)
{
num = num + 1;
}
}
When there are a lot of links on the page it takes a lot of time. Is there any way that i can get the results faster.
This is very urgent , so if anybody can give me a good answer i am ready to give them extra points.
Thanking you
Mahesh
Start Free Trial