.NET Daily

Recommended Resources


Popular Content


Navigation
CategoryTutorials
Featured

Microsoft 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

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: <button id="add-to-cart" type="submit"...

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

Javascript

JavaScript events applied to a Dropdown control

Posted on February 19th, 2014.

Have you ever tried to dynamically open a dropdown control from a JavaScript event? Well, I’m not going to show you that because for the moment that’s almost impossible. It works only on Chrome browser. I’ve tried several tricks like assigning custom JavaScript triggers to a select tag but nothing worked on other...

Featured

C#

ADO.NET Tutorial. Create, Update, Delete Operations

Posted on January 27th, 2014.

Nowadays Entity Framework is the most promoted database query technology from .NET ecosystem. For good reason though, because it allows developers without extensive knowledge about SQL to interrogate the database, create complex queries and generate classes with the help of a user-friendly interface. However, for some complex scenarios,...

Featured

HTML

Which HTML tags can you place inside an a, p or h1 tag?

Posted on January 11th, 2014.

I often see lots of HTML validation mistakes in the code of some developers that don’t know what exactly you can place inside a paragraph tag inside an anchor tag and every time I validate their markup I get a red page from W3C validator. So I decided to make a list with the HTML tags allowed in the following more sensible tags:...

Featured

Tutorials

How to easily get a database connection string with Visual Studio

Posted on January 5th, 2014.

Because I’m working on several projects at a time, it’s very hard for me to remember any connectivity data for any of the projects. Same thing for connection strings. However, with the help of Visual Studio I can generate a connection string pretty fast if I know the server address and the credentials. Here are the steps I...

Featured

Javascript

How to check and replace a missing image with jQuery

Posted on December 29th, 2013.

There are cases when you want to reference in your website some images from an external source. If those images are displayed on the homepage or in any other visible area of your website then you have to be sure that the external images are always available otherwise the design or the layout of the page might be affected by a connection...