Monday, March 25, 2019

Git Ignore Patterns

...

Wednesday, March 13, 2019

To verify that LocalDb is installed or not!

...

Monday, March 4, 2019

ASP.NET CORE: Sending Email with Gmail and Hotmail Account using ASP.NET Core services

...

Store Email Template in .NET

...

C#: Parsing HTML Table and Loading HTML Webpage using Html Agility Pack

...

ASP.NET Core: Step by Step Guide to Access appsettings.json in web project and class library

In ASP.NET Core configuration API provides a way of configuring an app based on a list of name-value pairs that can be read at runtime from multiple sources.Its time to get over with web.config to store and access appSettings keys. Please note that class libraries don’t have an appsettings.json by default. The solution is simple to access appsettings.json key/value pairs in your project through Dependency Injection principle in ASP.NET Core. DI has been already part of Core framework, You just have to register your dependencies in startup.cs file under ConfigureService method. My appsettings.json {   "ServiceSettings": {    ...

When to use Keep() vs Peek() with TempData in ASP.NET MVC

TempData is used to pass data from current request to subsequent request (means redirecting from one page to another). It’s life is very short and lies only till the target view is fully loaded. But you can persist data in TempData by calling Keep() method. TempData with Keep method If you want to keep value in TempData object after request completion, you need to call Keep method with in the current action. There are two overloaded Keep methods to retains value after current request completion. void Keep() Calling this method with in the current action ensures that all the items in TempData are not removed at the end of the current...

Pages 41234 »
Twitter Delicious Facebook Digg Stumbleupon Favorites More