January 20, 2011
Code snippet for checking availability of a website/ webservice
private bool WebSiteIsAvailable(string Url)
{
string Message = string.Empty;
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(Url);
request.Method = "GET";
try
{
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
// Do nothing; we're only testing to see if we can get the response
}
}
catch (WebException ex)
{
Message += ((Message.Length > 0) ? "\n" : "") + ex.Message;
}
return (Message.Length == 0);
}
Subscribe to:
Post Comments (Atom)
Migrate SharePoint 2010 Infopath to SharePoint Online
Below are the steps to follow to migrate the Infopath data to SP Online.
-
In the SharePoint 2010 environment: 1. Stop the “Windows SharePoint Services Timer” service. To stop the service: a. Open the “Star...
-
To split a Nintex content database to enable one-to-one content for each, please follow below steps Create a new Nintex Workflow cont...
-
Below are the steps to follow to migrate the Infopath data to SP Online.
No comments:
Post a Comment