Answers for "asp.net read list from web.config"

C#
0

asp.net read list from web.config

string strUsers;

strUsers = ConfigurationManager.AppSettings["Users"].ToString();

string[] strAllUsers = strUsers.Split(',');

if (strAllUsers.ToList().Contains("Abc"))
{
  // DO OPERATION
}
else
{
  // RESTRICT
}
Posted by: Guest on October-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language