.NET Daily

.NET Daily


Recommendation


Recent Posts


Navigation
CategoryWeb Development
Featured

ASP.net

ASP.NET Core. Best way to Keep Variables between Page Requests

Posted on August 19th, 2017.

In case you want to preserve some data between page requests, ASP.NET CORE MVC and ASP.NET MVC provides a more elegant solution than the classic ViewState. It is called TempData. The usage of it is pretty straightforward. The example from below shows how I assign a variable to preserve the sort state of a column in a list table:...

Featured

Featured

Fast SQL Server Stored Procedure with Filtering, Sorting and Paging

Posted on July 11th, 2017.

Even though there are dozens of articles out there which shows you how to do a Microsoft SQL Server stored procedure with filtering, sorting and paging, the execution time greatly differs between each approach. So I started to do some research in order to find the best approach out there. And I believe I found it on Aaron Bertrand...

Featured

ASP.net

ASP.NET Core and EF: The instance of entity type ‘User’ cannot be tracked

Posted on July 9th, 2017.

This exception caused me to lose a bit more than two hours before finding the right solution. That happened even though the ASP.NET team already documented this Entity Framework behavior very well here but, you know, who has time for all that much documentation… So, the full exception message is the following: InvalidOperationException:...

Featured

ASP.net

ASP.NET Core – How to Get and Write values to HTML Inputs outside the scope of a Model

Posted on May 8th, 2017.

When you come from ASP.NET WebForms directly to ASP.NET Core, you’ll see that lots and lots of old practices for getting an adding data into web page forms have changed completely. For example, ASP.NET Core heavily rely on Models for managing form data while on ASP.NET WebForms you were totally in charge of managing that part....

Featured

Microsoft Azure

Microsoft Azure – Cloud Hosting Offerings (PaaS vs IaaS)

Posted on April 5th, 2017.

The Big Picture Even though Cloud services providers are in the market for quite some time now, most custom IT solutions in the enterprise area are still hosted on good old virtual machines. It’s true, however, that nowadays the virtual machines that are hosted on major cloud solution providers have advanced scaling capabilities,...

Featured

Javascript

How to keep a button disabled until the page is loaded

Posted on May 3rd, 2016.

There are cases when you need to keep a button disabled until the page is rendered. The main reason you may need this is to prevent the user from clicking on a button that is not functional at that point. The easiest way of achieving this is to follow these 2 steps: Disable the button from HTML: [crayon-59e5e4f19704a714623022/] Enable...

Featured

Javascript

Little things that make a big difference in Javascript

Posted on January 24th, 2016.

Since I started working as a front-end developer, I encountered many situations when JavaScript code was buggy or had various issues even though the logic seemed correct. As a beginner it is difficult to follow all the best practices and sometimes can even be confusing, as this topic can be a bit subjective. Of course, there are a few...

Featured

Tutorials

How to install Sass and Compass on Windows

Posted on January 28th, 2015.

The first thing you need to know here is that Sass and Compass get installed as Ruby gems, so before doing anything else you need to have Ruby installed on your machine. To install Ruby on Windows you can just download the latest version of Ruby Installer and follow the guidance of the installation wizard. At this point you should have...

Featured

Tutorials

How to prepare an ASP.NET Website for deployment with PowerShell

Posted on December 7th, 2014.

Visual Studio has some very good publishing and deployment tools but when it comes to solution deployment that is also a component of stand-alone product, things get complicated because usually you have to select certain folders or certain files to move them to production or to staging server. I did a lot of research to see what is the...

Featured

Web Development

Developer’s To Do List for Login and Forgot Password Functionality

Posted on August 29th, 2014.

Often during development of various projects, I see almost all the time small pieces missing that were not initially been developed on various modules, like for example setting a max length limitation on the email address field from the Login page of an website. So in this case, I’ve decided to create a To Do list with all the...