One way for this is: Get the session value and store it to View Bag in the controller and then show the view bag value to the View. There are mainly two steps. In Controller, Firstly get the value of session to the view bag by writing these code 2. In the View, write following … Continue reading How to get the session value and show into view in asp.net Core?
Month: October 2017
How to set and get the session value in asp.net core.
The Microsoft.AspNetCore.Session package provides middleware for managing session state. Add the following heightened line in your Startup.cs Following line of code is needed to set the session value. To get the session value
Searchable Dropdown in SharePoint /ASP.NET
As we know that default dropdown list is not searchable. Simple way to create searchable in asp.net/SharePoint solution.
Problem:

Resolution: ( Converting simple dropdown list to searchable )

Add following CSS link in the page:
Add Following script link in page:
To change any dropdown list to searchable dropdown list:
Add “chosen-select” class to dropdown control.
Necessary css and js file: Download
More details: Click Here !!
How to Restore the deleted/quarantined items by Windows Defender?
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: Open the Windows Defender, you can directly open by typing Windows Defender Security Center in the search. 2. … Continue reading How to Restore the deleted/quarantined items by Windows Defender?
SQL Server Interview Questions and Answers for Mid Level
1.Write the script to create Table. Answer: CREATE TABLE Test ( ID int, LastName varchar(255), FirstName varchar(255), Address varchar(100), ); 2. What is Primary Key Constraint? Answer: The PRIMARY KEY constraint uniquely identifies each record in a database table. It must contain unique values and must not contain null values. Most of the tables should … Continue reading SQL Server Interview Questions and Answers for Mid Level



