Sasan Coderz

Sasan Coderz

  • 1.6k
  • 175
  • 1.3k

how can i find add key value in c# with list or another way?

Jun 20 2022 11:07 PM

i want save Comname in a variable

 

   <appSettings>
    
  <add key="Main.ConnectionString" value="Data Source=.;Initial Catalog=ZAGROSSANAT;Integrated Security=False;Persist Security Info=False;User ID=****;Password=******;Pooling=False;Max Pool Size=200;Packet Size=4096;WorkIDCity=Lorestanw1" />

  <add key="Comname" value="1032" />

  <add key="WorkID" value="21" />

  <add key="IsHeadquarter" value="False" />

  <add key="Logger_Path" value="..\Log" />

  <add key="BackgroundImagesDir" value="..\Background" />

  <add key="BackgroundImage" value="Background.jpg />

</appSettings>

 


Answers (5)