Microsoft has announced .Net Core 3.0 Preview 5. However, what caught our attention is that this Preview 5, among other changes, quietly slips in a new built-in JSON serializer eliminating the need for ubiquitous Newtonsoft.Json nuget package in .Net Core apps. ASP.NET Core MVC adds support for reading and writing JSON using System.Text.Json It’s asychronous,… Read More »
It’s always delightful to get see best practices and design patterns implemented in a reference application using best of breed tools, frame works and technologies. This reference applications specifically provides guidance on .Net architecture and demonstrates how to build scalable and high performing .Net applications running on Azure cloud using recommended .Net tools, libraries and… Read More »
List of ASP.Net Web/MVC Virtual Paths,Relative and Absolute Paths Utility helper classes Property Input Url Return Value HttpRequest.ApplicationPath http://localhost/testapp/home.aspx /testapp HttpRequest.CurrentExecutionFilePath http://localhost/testapp/home.aspx /testapp/home.aspx HttpRequest.FilePath http://localhost/testapp/home.aspx /testapp/home.aspx HttpRequest.AppRelativeCurrentExecutionFilePath http://localhost/testapp/home.aspx ~/testapp/home.aspx HttpRequest.Path http://localhost/testapp/home.aspx /testapp/home.aspx/PathInfo HttpRequest.PhysicalApplicationPath http://localhost/testapp/home.aspx C:inetpubwwwrootTestApp HttpRequest.RawUrl http://localhost/testapp/home.aspx?user=1 /testapp/home.aspx?user=1 UrlHelper.Content ~/testapp/home.aspx c:inetpubwwwroottestapphome.aspx Property Input Url Return Value HttpContext.Current.Request.Url.Host http://localhost:8080/testapp/home.aspx?user=1&new=2 localhost HttpContext.Current.Request.Url.Authority http://localhost:8080/testapp/home.aspx?user=1&new=2 localhost:8080 HttpContext.Current.Request.Url.AbsolutePath http://localhost:8080/testapp/home.aspx?user=1&new=2 /testapp/home.aspx… Read More »
Name Format String Example Comments Currency Format C or c or C2 – precision Console.WriteLine(amount.ToString(“C”)) output depends on your current UI culture Percent Format P or p or P2 – precision) Console.WriteLine(number.ToString(“P”)) output depends on your current UI culture Padding with leading zero Format 0 var input = “123”; Console.WriteLine(input.ToString(“0000”)); //result will be 0123 Replaces… Read More »
Deployment term can mean an installation of software program on user’s machines. Microsoft Visual Studio 2008 provides several methods for deploying your application. A familiar technology we all know is Microsoft Installer program which offers more detailed and complex deployment scenarios with multiple configuration steps. We’ll see another alternative light weight mechanism called ClickOnce. Click… Read More »
Following is the power point presentation related to IoC and Dependency Injection (DI) pattern. This presentation specifically focuses on Unity Framework v1.2 based IoC container. Integration WCF service with IoC container provides finer control over WCF instance management. Unity Framework v1.2 – IoC Dependency Injection View more presentations from guest003bf.
Good news for the Microsoft developer community in Midwest region. Microsoft is bringing PDC MSDN Live developer conference to chicago on January 13th 2009. Great oppurtunity to know about Windows 7 operating system, Azure cloud computing, Silver light, .Net parallel programming, ASP.Net 4.0 road map, Visual Studio 2010, F# stuff and much more.. Interesting though,… Read More »