“Human Brain is amazing , When I don’t want to save something inside my Brain , It also does not want to save it and literally it does not do that. ” – This line is true for me 🙂
And I always go to my previous written Code + Config file (Or Web) to know how to get Connection String from Web.config . I don’t want to use my Processor of the Brain a minimal percentage for this , And I guess , There are also so many people out there in the world , so this Post is for you guys 🙂
So in my Web.config/App.config file , I will add the below thing .
And Below is the C# code for that .
We can also add Node to AppSettings in Web.config and can get it easily .
And this is how we can get this in C#
In future , I will definitely come to my own Blog for this 🙂 Cheers