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.

https://channel9.msdn.com/Shows/Azure-Friday/Using-Web-App-for-Containers-in-a-Multi-Tier-Application/player

Advertisements

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.

https://channel9.msdn.com/Events/dotnetConf/2017/T119/player

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!

https://channel9.msdn.com/Events/dotnetConf/2017/T118/player

 

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.

Video:

https://channel9.msdn.com/Events/dotnetConf/2017/T221/player

 

How to set and get the session value in asp.net 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)
{
services.AddMvc();
// Adds a default in-memory implementation of IDistributedCache
 services.AddDistributedMemoryCache();
services.AddSession(options =>
{
// Set a time for session
options.IdleTimeout = TimeSpan.FromSeconds(200);
options.Cookie.HttpOnly = true;
});
}

public void Configure(IApplicationBuilder app)
{
app.UseSession();
app.UseMvcWithDefaultRoute();
}
  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.

Steps:

  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.

2

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 asp.net/SharePoint solution.

Problem:

01

Resolution: ( Converting simple dropdown list to searchable )

02

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.

   <div>
  <asp:DropDownList ID="ddltest" class="chosen-select form-control" data-placeholder="Choose a Country..."   runat="server">
                                <asp:ListItem></asp:ListItem>
                                <asp:ListItem>rijwan</asp:ListItem>
                                <asp:ListItem>satya</asp:ListItem>
                                <asp:ListItem>test</asp:ListItem>
                                <asp:ListItem>VS</asp:ListItem>
                                <asp:ListItem>OAD</asp:ListItem>
                                <asp:ListItem>ASD</asp:ListItem>
                                <asp:ListItem>My Request</asp:ListItem>
                                <asp:ListItem>reports</asp:ListItem>
                            </asp:DropDownList>
                        </div>

 

Necessary css and js file: Download

More details: Click Here !!