How do you retrieve information from web.config ?
Answer Posted / sam
using ConfigurationManager, Configuration classes
Example
ConfigurationManager.ConnectionStrings
["str"].ConnectionString;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we make activex dll also ti execute in some process as that of client ? How can we do?
Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.
Explain difference between dataset and datareader?
What are the various types of cookies in asp.net?
What is custom attribute? How to create?
Elaborate differentiation between Cache and Application?
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
What is a postback ispostback and autopostback in asp net?
What is repository pattern in mvc.net? : asp.net mvc
What is application session?
What is the difference between pathparam and queryparam?
What are the difference between overriding and overloading?
Explain repository pattern in asp.net mvc? : asp.net mvc
What is the difference between session.abandon() vs clear()?
what is the difference between response.write() and response.output.write()?