Check Response from server in asp.net

 In these small code snippet you can check server response. In last few week my friends mostly time spend check URl is correct or correct response give or not. we make a small application check _Url automatically one by one. 
  1. public bool test(string _Url)    
  2. {    Bool condition=true;
  3.     WebRequest webRequest = WebRequest.Create(_Url);    
  4.     WebResponse webResponse;    
  5.     try    
  6.     {    
  7.         webResponse = webRequest.GetResponse();    
  8.         if ("/error" == webResponse.ResponseUri.AbsolutePath)    
  9.         {    
  10.             condition=false;
  11.         }    
  12.     }    
  13.     catch //If exception thrown then couldn't get response from address    
  14.     {    
  15.         condition=false 
  16.     }    
  17.     return condition;    
  18. }   
 Final word
I know above code is not very difficult  but if any confusion create in mind drop your comments in below comment Dropbox.