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.
-
Take backup from the SP 2013 SQL Server. · Steps for restoring the SharePoint 2013 application DB to 2016 DB. -- Ge...
-
#Parameters $SiteURL = "<URL of the site>" $ListName = "ABCLibraryName" #Connect to the Site Connect-PnPOnline ...
-
· Take backup from the SP 2010 SQL Server. · Steps for restoring the SharePoint 2010 application DB to 2013 DB. ...
No comments:
Post a Comment