Home
|
Tutorial
|
Articles
|
Forum
|
Interview Question
|
Code Snippets
|
News
|
Fun Zone
|
Poll
|
Web Links
|
Certification
|
Search
Welcome :
Guest
Sign In
Register
Win Surprise Gifts!!!
Congratulations!!!
Top 5 Contributors of the Month
ffttt
Home
>>
Interview Question
>>
Windows Application
>>
Post New Question
Subscribe to Interview Questions
How do you retrieve the customized properties of a .NET application from XML .config file?
Posted By :
RamaSubbaReddy
Posted Date :
September 06, 2010
Points :
10
Category :
Windows Application
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.
You can also find related Interview Question to
How do you retrieve the customized properties of a .NET application from XML .config file?
below:
How do you retrieve the customized properties of a .NET application from XML .config file?
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.
(More...)
Can we have more than one web.config file in our application?
Yes,we can create or use more than one web.config file in our application.
(More...)
if we remove a web.config file from the application , is this application will work?
It Depends on coding if we used something that is required to pioc values from configuration file then its required otherwise we can run our application without web.config.
(More...)
Can i add more than 1 web.config file in a single application?
Yes, it is possible to add more than 1 web.config file in a single application.
(More...)
what is the use of using web.config file
By using this web.config file we can store sqlconnection string.This SqlConnection String can be accessed any where in your application.for security purpose of connection string also we can use web.config.
(More...)
Is it possible to add multiple Machine.config file?
No, it is not possible to add more than 1 machine.config file. if we want to overwrite any setting than that can be achieve with the help of web.config.
(More...)
Is it possible to update a connection string stored in the Web.config file programatically? If Yes, then how?
Yes.
Create a Configuration object. Then, update the connection string using the ConnectionStrings collection. Finally, call Configuration.Save.
(More...)
How many weg.config can an application have?
You can have one weg.config file in asp.net application in root level folder. But in an application you can have multiple in sub folder.
(More...)
can asp.net website runs without web.config file?
Yes, and it will take the default setting from machine.config file from the machine. so web.config file is not necessary or must for running or publishing website or web application.
(More...)
Any asp.net application can hold more then one web.config?
yes asp.net application can hold more then one web.config but not in the root folder
(More...)
Is there a way to generate more then on .xap file from a same silverlight application.
Since for each .xap file we have to create a new silverlight application.
(More...)
In web.config file why are you using Authentication mode that time sa=*** and pwd=***** something and Authentication mode =Forms thaat time wt we can use?
actually here sa=***and pwd=*** it's a data sources we can set at MYSQL
(More...)
Suppose if u have Two Web config files one is External And one more webconfig in folder? Which WebConfig file executed first?
External WebConfig is executed first...........
(More...)
Can we have more than 1 web.config file?
Yes we can have more than 1 web.config but in different folder.
In root we can have only 1 web.config file
(More...)
Quick Links For Interview Questions Categories:
ASP.Net
Windows Application
.NET Framework
C#
VB.Net
ADO.Net
Sql Server
SharePoint
Silverlight
OOPs
JQuery
JavaScript/VBScript
Biztalk
Patten/Practices
.IIS
WCF
WPF
WWF
Networking
Aptitude
Others
All
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
Interview Question
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Twitter
Terms of Service
Privacy Policy
Contact Us
Archives
Tell A Friend