Tag: ASP.NET
Customize ASP.NET MVC Model Metadata
Using ASP.NET MVC, sometimes you want to customize metadata for model. For example you want to read display name from an XML file, or you want to set some additional metadata for example for rendering. In this post,…
Read More »Add Property to ASP.NET Identity Role
In previous post, I showed you how to add property to Identity user. Another common requirement when using ASP.NET Identity is adding new property to IdentityRole. In this post I’ll share a step by step guide which is…
Read More »Add Property to ASP.NET Identity User
One of the common requirements when using ASP.NET Identity, is adding new properties to the User entity. For example let’s say, we want to add a Code property to IdentityUser entity to store personnel code for the user….
Read More »Default json formatter settings for HttpClient
When using Web API, after getting the response, to convert the response to a typed result, you can use ReadAsAsync<T> method of Content property of the response. Sometimes you need to deserialize the json result based on some…
Read More »Find Process Id of an IIS Site by Site Name
To find process Id of the worker process which is serving an IIS application, you can simply use Internet Information Service (IIS) Manager console. To do so, first make sure the worker process of the application is running…
Read More »