Ben

About Ben

This author has not yet filled in any details.
So far Ben has created 60 blog entries.

Bind Drop-Down List in MVC View in ASP.Net

In order for a drop-down list in an MVC View to be populated with data from the model, one method is to add the data to a model (or to [...]

2019-03-09T22:17:37-04:00February 21, 2019|

Checking if Object is of Type in C#

To check if an object is of a certain type in c#, simply use the is statement: if (myPerson is Person) { // Variable is of type Person }

2019-02-12T11:20:05-04:00February 12, 2019|

Pass Parameter to SetTimeout in JavaScript

It is sometimes necessary to pass a variable to a SetTimeout() callback function. By the time the callback occurs, the original variable may no longer exist, so passing a copy [...]

2019-02-12T00:30:09-04:00February 12, 2019|

Check If Element Has ID Using jQuery

To check if an element has an ID: if ($(this).is('[id]') { // Has ID console.log('Has ID: ' + $(this).attr('id')); } else { // Has no ID console.log('Has no ID.'); }

2019-02-11T22:30:07-04:00February 11, 2019|

Create WordPress Child Theme Under Enfold

For the equivalent instructions for the Avada theme, see here. Creating a WordPress child theme is very straightforward, and it allows you to make major customizations that will not be [...]

2024-04-08T01:45:13-03:00February 11, 2019|

Create WordPress Child Theme Under Avada

For the equivalent instructions for the Enfold theme, see here. Creating a WordPress child theme is very straightforward, and it allows you to make major customizations that will not be [...]

2024-05-04T12:26:51-03:00February 11, 2019|

Selecting Data with Entity Framework

Preface Please see Entity Framework Select Functions Explained for an overview of each available select method. This post only covers a handful of them. Selecting Single Record by Primary Key [...]

2019-02-11T12:06:44-04:00February 7, 2019|
Go to Top