Advertisement

11.26.2005 at 11:37PM PST, ID: 21644057
[x]
Attachment Details

handling multiple webrequests in C#

Asked by maheshneel in C# Programming Language

Tags: webrequests, multiple

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(RootPath))   // 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
MaheshStart Free Trial
 
Loading Advertisement...
 
[+][-]11.27.2005 at 12:37AM PST, ID: 15367642

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.28.2005 at 06:30AM PST, ID: 15372894

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.29.2005 at 08:21AM PST, ID: 15381155

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.29.2005 at 08:45AM PST, ID: 15381393

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.30.2005 at 09:09PM PST, ID: 15394199

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.01.2005 at 05:31AM PST, ID: 15395995

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C# Programming Language
Tags: webrequests, multiple
Sign Up Now!
Solution Provided By: TheLearnedOne
Participating Experts: 3
Solution Grade: A
 
 
[+][-]01.05.2006 at 04:29AM PST, ID: 15617217

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.09.2006 at 08:03AM PST, ID: 15650814

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32