how do you retrieve the customized properties of a .NET
application from XML .config file? Can you automate this
process?
Answer / saravankumar
Initialize an instance of AppSettingsReader class. Call the
GetValue method of AppSettingsReader class, passing in the
name of the property and the type expected. Assign the
result to the appropriate variable. In Visual Studio yes,
use Dynamic Properties for automatic .config creation,
storage and retrieval.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can you clean up objects holding resources from within the code?
What is UDDI and how to register a web service ?
How many types of exception handlers are there in .NET?
Can we Classic ASP,.Net 1.0, .Net 1.x and .Net 2.0 installed on the same system?
Tell us what is the difference between struct and class?
Explain soap and xml?
How to load a user control dynamically in runtime?
What is .net debug & trace?
What are the security policy levels in .Net
What is garbage collection? Explain the difference between garbage collections in .net 4.0 and earlier versions?
What is use of ContextUtil class?
questions on various scenarios on exception handling? like for example.... try { a; b; ...exception occurs here...what happens...will catch execute or will finally execute...will c execute c; } catch { a; b; c; } fianlly { a; b; }