Latest posts on tagged on "CSharp"

C# method to determine whether the client disables cookies

30 August 2018

For security reasons, some clients disable cookies. When you want to use cookies to store some information (especially some critical information), you need to determine whether the customer has disabled cookies. How to judge?

Bootstrap Navbar Active Class to html.actionlink with MVC

28 August 2018

In this tutorial I will show you how to implement bootstrap menu active on navabar using MVC. Here I applied to my project. By default MVC project template was comes with bootstrap and styling for menu by default but functionality was not included.

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 asp.net. 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,

Page 2 of 23