Answer:
With the help off AppSettings method of ConfigurationManager class,we can get value from Web.Config file as:-
string max_search_count = Convert.ToString(System.Configuration.ConfigurationManager.AppSettings["MaxSearchCount"]);
max_search_count will have 100.
Asked In: Many Interviews |
Alert Moderator