Thursday, August 4, 2016
$http.get
will fail on local files - test on web server
Wednesday, August 3, 2016
add handler mapping on windows 7 iis
iaspi module was here
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
HTTP Error 401.3 - Unauthorized
on local - make sure IUSR has rights to folder
Wednesday, July 27, 2016
SharePoint "features"
when i searched Pharmaceutical with Pharmaceutica - 0 results
Tuesday, July 26, 2016
Do not call overridable methods in constructors
make the class sealed
seconds to minutes and seconds function
public static string secondsToMinutes(double secs)
{
TimeSpan time = TimeSpan.FromSeconds(secs);
return time.ToString(@"hh\:mm\:ss").Replace("00:00:","").Replace("00:","") ;
}
simple json call from c#
string URL = "http://www.blah.com/";
string urlParameters = “?v=1”;
HttpClient client = new HttpClient();
client.BaseAddress = new Uri(URL);
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
HttpResponseMessage
response = client.GetAsync(urlParameters).Result;
if
(response.IsSuccessStatusCode)
{
string dataObjects =
response.Content.ReadAsStringAsync().Result;
var jss = new JavaScriptSerializer();
var dict = jss.Deserialize<Dictionary<string, dynamic>>(dataObjects);
foreach (Dictionary<string, object> x in dict["items"])
{
Subscribe to:
Comments (Atom)