Author: Md Rijwan Ansari

Using Web App for Containers in a Multi-Tier Application

Posted on

Ahmed Elnably joins Scott Hanselman to discuss a sample project, Developer Finder, that was created to showcase how to use Web App for Containers in the context of a multi-tiered application.


Build Your Own Cortana Skill

Posted on Updated on

Building a Cortana skill means that Cortana can use your bots, services, websites, and apps to help people – but did you know that you can write the whole skill with C# and .NET? During this session, we’ll learn about Cortana and the Skills Kit, build a skill step-by-step, and discuss how you can work with Cortana to build personalized, intelligent experiences for your users. Skills built in this session will work across Windows 10, Android, iOS, and headless devices such as the Harman Kardon speaker. Following this talk, you’ll understand how Cortana skills work, be able to build your own skill, and know where to go for help and support along the way.

What’s New in Visual Studio 2017

Posted on Updated on

Visual Studio is a productivity game changer for C#! The .NET Compiler Platform (“Roslyn”) enables many new experiences that will change the way you write and debug code. In this session, we’ll dig into features that bring a new level of awesome to the C# language and IDE experience. Come learn about new language features, refactoring support, major debugging enhancements, code-aware frameworks, and much more!


What’s New in Entity Framework Core 2.0

Posted on Updated on

Entity Framework Core is a lightweight, extensible, and cross-platform version of the popular Entity Framework data access technology. In this session we’ll look at what’s new in EF Core 2.0 and what the team has planned for upcoming releases.



How to set and get the session value in core.

Posted on Updated on

The Microsoft.AspNetCore.Session package provides middleware for managing session state.

  1. Add the following heightened line in your Startup.cs

public void ConfigureServices(IServiceCollection services)
// Adds a default in-memory implementation of IDistributedCache
services.AddSession(options =>
// Set a time for session
options.IdleTimeout = TimeSpan.FromSeconds(200);
options.Cookie.HttpOnly = true;

public void Configure(IApplicationBuilder app)
  1. Following line of code is needed to set the session value.

public class HomeController : Controller
const string SessionStoreName = "_StoreName";
const string SessionStoreID = "_StoreID";

public IActionResult Index()
// Requires using Microsoft.AspNetCore.Http
 HttpContext.Session.SetInt32(SessionStoreID, 3);
 HttpContext.Session.SetString(SessionStoreName, "ABC Store");
return RedirectToAction("SessionStore");
  1. To get the session value

public IActionResult SessionStore ()
var storename = HttpContext.Session.GetString(SessionStoreName);
var storeID = HttpContext.Session.GetInt32(SessionStoreID);
return Content($"Store Name: \"{ storename }\",Store ID: \"{ storeID}\"");

Rijwan Ansari

The Microsoft.AspNetCore.Session package provides middleware for managing session state.

  1. Add the following heightened line in your Startup.cs
  1. Following line of code is needed to set the session value.
  1. To get the session value

View original post

How to Restore the deleted/quarantined items by Windows Defender?

Posted on

Rijwan Ansari

Sometimes Windows Defender can detect your custom app, .exe file or other files as a threat and might have been deleted by the defender. If you want to restore it back here are some steps to follow.


  1. Open the Windows Defender, you can directly open by typing Windows Defender Security Center in the search.

2. After opening, Click on Virus and Threat Protection.1.

3. Look on Scan History, there you can see the Quarantined threats.


4. Go to that Quarantined threats, select the quarantined items, to restore click restore option and for removal click on remove option.

5. To see the full history of Quarantined items, click on See Full History

In this way, you can restore or remove your quarantined items from windows defender security center.

For the proactive defense or to exclude your apps, files, and folders not to scanned by Windows Defender, there is an Exclusions option…

View original post 167 more words

Searchable Dropdown in SharePoint /ASP.NET

Posted on Updated on

As we know that default dropdown list is not searchable. Simple way to create searchable in solution.



Resolution: ( Converting simple dropdown list to searchable )


Add following CSS link in the page:

    <link href="Content/choosen/docsupport/style.css" rel="stylesheet" />
    <link href="Content/choosen/docsupport/prism.css" rel="stylesheet" />
    <link href="Content/choosen/chosen.css" rel="stylesheet" />

Add Following script link in page:

  <script src="Scripts/jquery-1.10.2.js"></script>
  <script src="Content/choosen/chosen.jquery.min.js"></script>
  <script src="Content/choosen/docsupport/prism.js"></script>
  <script src="Content/choosen/docsupport/init.js"></script>

To change any dropdown list to searchable dropdown list:

Add “chosen-select” class to dropdown control.

  <asp:DropDownList ID="ddltest" class="chosen-select form-control" data-placeholder="Choose a Country..."   runat="server">
                                <asp:ListItem>My Request</asp:ListItem>


Necessary css and js file: Download

More details: Click Here !!