Latest posts on tagged on "ASP-NET" MVC Razor @Url.Content vs @Url.Action

26 November 2017

Here, you can understand the difference between @Url.Content and @Url.Action in MVC Razor If you want to pass the url for a file path for the website then you can pass it. It will resolve a virtual path into an absolute path.

How to change datetimeoffset to datetime c# ?

22 November 2017

In this tutorial I will show you how to convert datetimeoffset to datetime using c#. Here, I want to save the datetime object value into the database. But the datetimeoffset was returning string value. In order to convert string (datetimeoffset) to datetime you may follow this way,

HTTP Error 401.0 – Unauthorized- application

15 October 2017

I got this above error while running web application using mvc 5. Previously, everything was fine. In my trader application, when I click the home icon it is redirecting to the home page.

DisplayFor date format mvc 5

5 October 2017

I want to display the date in the view, but the resulted Date Format is 05/10/2017 12:00:00AM. But I wanted to display like 05-Oct-2017. Before I tried to display using DisplayFor, but it was not suited to display the date format.

Page 1 of 23