where is declare global variable in asp.net and what is use
of global variable
Answer Posted / sridhar
ou can use web.config to store global varriables
<appSettings>
<!-- Generic Settings -->
<add key="PDFBaseDir" value="\\server\pdfs\"/>
</appSettings>
PDFBaseDir Can be used across application
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are session state modes? List some of the important session state modes of asp.net.
What are the events in a page life cycle?
What are the security types in asp.net?
Explain how does asp page work?
What is the difference between pathparam and queryparam?
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?
What is a master page and what does it do?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
Explain the steps to be followed to use passport authentication.
What is the difference between visual basic and asp.net?
What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC
What is asp.net response object?
In order to get assembly info which namespace we should import?
What is validation in asp.net?
Using code explain Configuration Management