Visual Studio provides us a way to create custom solution templates that contain the structure and resources that we add to all projects.
Development and technology tips, trick and tutorials from our world class instructors!
Visual Studio Custom Project Template
Scaffolding is a great time saver. Microsoft has allowed for developers to customize scaffolding for each project. To take advantage of this all you have to do is make a copy of the templates you want, modify them and include them in your project.
Counting Characters in a Text Area
There are many times that you may want to count the number of characters in a text area and display that number to the users especially to show limits on text fields. This is very easily done with a little jQuery.
Editing Records and Updating Images with Entity Framework
Editing records using EF is very simple unless you're trying to update a file or photo in which you can get entity attachment errors. We can use the AsNoTracking() to solve this problem.
Adding and Referencing Additional Data in the Asp.net Identity AspNetUsers Table
Storing a user’s name or other personal information in the AspNetUsers table can be very useful. In this post I am going to show how to add FirstName and LastName columns to the AspNetUsers table and then pull that information out when a user signs in.
Creating a YouTube application with ASP.NET MVC and the YouTube API
Creating an application using ASP.NET MVC to manage the videos that you want users to see without all the other stuff is pretty straight forward.
GitHub: Custom Identity Management
I got tired of the hassle with IdentitySample and created my own alternative that will initialize the DB, add a default administrator and provide user and role management but without all the extra unnecessary file modifications.
Counting the number of users in a role
Counting the number of users in a role in Identity seemed to me to be a very straight forward task. It turned out to be a little more challenging than I had expected but once I figured out the correct linq statement it was rather easy to get working.
Working with Identity Users and Roles – Accessing Roles After User Login
There is an issue in the Identity framework when the business requirements need a developer to interact with the roles that a user is assigned to as soon as the user object is created upon successful login.Luckily there is a very easy fix for it.
Extending Identity – Adding Roles at User Registration
The Identity framework is a great tool that allows asp.net developers to easily add authentication to their applications. This is the third post in a 3 part series on extending the ASP.NET Identity Framework.
Extending Identity – Account Verification
The Identity framework is a great tool that allows asp.net developers to easily add authentication to their applications. This is the second post in a 3 part series on extending the ASP.NET Identity Framework.
Extending Identity – Identity Sample and Blocking Users
The Identity framework is a great tool that allows asp.net developers to easily add authentication to their applications. This is the first post in a 3 part series on extending the ASP.NET Identity Framework.
Displaying Results by Group in MVC
Using a simple Linq statement in a controller with the appropriate @model statement on the view to display results by group.
Making ASP.NET Identity and Unity Work Together
One downfall of using multiple frameworks is that different one don’t always want to work together out of the box at times such as Identity and Unity. There is an easy fix however!
Log4Net ASP.NET MVC UI
Log4Net is a very powerful logging application for ASP.NET applications. Logs can be written to a text file or also to a database. I have created a new project on GitHub to house a MVC based UI for Log4Net logs that are written to a database.
Project Management with Trello
Trello is a Kanban style project management board. The gist of Kanban is the use of lanes and cards. Lanes represent the stages that an item must pass through in order to be completed. Each card represents a certain task or group of tasks that can be assigned to individuals.
Do you feel like you are NEVER going to make it as a developer?
Many times I have students that think they are never going to make it as a developer. Many people feel that because they cannot bust out an entire application from memory that they are phony and not a real developer.
Portable Development Environment
Sometimes, when I am away, a client needs something or there is an issue that has surfaced that I need to deal with right away. I don’t always want to carry my laptop with me every time I go on vacation. I have discovered a compromise in the way of portable apps.
I began looking into snippet managers and found some very promising options.