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 the data controls available in asp.net?
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
What is the use of placeholder control?
What permissions do asp.net applications posses by default?
What is the mvc model?
Give a few examples of page life cycle events.
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
Explain diff. Between friend and protected friend?
What is a query string in a url?
How would ASP and ASP.NET applications run at the same time on the same server?
How can we update records in gridview?Is there any appropriate code for it?
What is the difference between adding reference in solution explorer and adding references by using ?
What is enableviewstate in asp net?
How can we communicate with each server in N-tier Architecture? and what are the methods?
How to make paging concepts in datagrid in ASP.NET?