Welcome to Technolog Sign in | Join | Help

Browse by Tags

Still using backend HTML logic. ASP.NET Core makes things a lot more easier for us, backend developers. Though, accent today, is more on frontend development, still, for reasons of security for instance, backend state management is still used. Now take Read More...
Finally we can create OData (v4) services using ASP.NET Core. My first impression, it’s ok, plus it has extra features. Use my startup project, on Github as a sample. (It’s tricky to forget to enable features like Filter, otherwise you’ll and up with Read More...
Just copy-paste might save you some time. rand_s is pretty safe on Windows since it uses RtlGenRandom(), but you’ll have to define _CRT_RAND_S first before <stdlib.h> Assuming that the cpp somewhere in the class has: m_fd = open("/dev/urandom", Read More...
  There are 3 ways that I have found to be working within Startup.cs use Environment variables.  This however, only works if you also have added the environmentvariables. (builder.AddEnvironmentVariables(); ) var env = Configuration.GetSection("ASPNETCORE_CONTENTROOT"); Read More...
While converting a previous piece of code, written using Mvc 4.x I found that the output of the Json previously, when set no option, was unchanged, so a class with a property say, Name would output in JSON as ‘Name’. However, ASP.NET Core Mvc when returning Read More...
Would you like a to boost your class which hosts a collection, and utilize a cool C# language feature, which is collection initializer support? For instance var myList = new List<int>() {1,3,4} where {1,3,4} is the initializer. The basic idea is Read More...
The Microsoft OData library Roadmap? Please some insights? Microsoft has taken the road of open source and the community. Right, but I guess that this is the reason, that some libraries, in the past maintained by strictly managed teams, now are more or Read More...
Inherit Microsoft.Azure.Documents.Resource? No We can be short, just don’t. If you do, your library gets bloated and you need to add references to documentdb to ‘cross-reffed’ libraries as well, because of the ‘Resource’ dependency. Use a POC based ‘base Read More...
Just a tiny gem, which not often would be required but it can save you some time. It also demonstrates the power of the IXmlReader in unmanaged code. Because, as far I am aware of, the processing time a .config file measuring it with TickCount always Read More...
  Why convert WCF REST services anyway? First: WCF REST processes JSON using (by default) the DataContractJsonSerializer, while Web API 2 (by default) uses NewtonSoft JSON, which today is the best choice. Secondly: WCF more or less runs in ASP.NET Read More...
  I just want to share this function, since there are a lot of version around, which are not resistant against zero positions advance, for instance, if you split ‘1,2,3’ into a table, it would be find, but what if one element is empty, such as ‘1,,3’? Read More...
There are a lot of ways to read and parse HTML, the better tricks, don’t use IE itself, since this will deliver automation errors and waste memory. I’m for 99% of my time into .NET programming, but still, one of my hobbies use an Access 2013 Read More...
I found an easy way to have binary parameters as base64 encoded string. You might wonder, why bother? Well, in a a well used environment, size and compactness of data over the wire, still matters! Because a binary value is sent as a hexadecimal over the Read More...
  If you’re a site admin or asp.net developer for an internet site, you certainly need to look into sitemaps, if you want to perform SEO. It’s not necessary to  simply crawl your own site and then to give every page a priority, but consider Read More...
Figure 1: Our custom pager in action! I never have liked the concept of storing all the data in whatever form (DataTable/Lists of records/etc.) to the ASP.NET gridview control and having it automatically manage paging for me. This could however be improved Read More...
More Posts Next page »