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


Please Help Members By Posting Answers For Below Questions

What are the data controls available in asp.net?

509


Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc

532


What is the use of placeholder control?

552


What permissions do asp.net applications posses by default?

646


What is the mvc model?

581






Give a few examples of page life cycle events.

675


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

527


Explain diff. Between friend and protected friend?

500


What is a query string in a url?

542


How would ASP and ASP.NET applications run at the same time on the same server?

1949


How can we update records in gridview?Is there any appropriate code for it?

1608


What is the difference between adding reference in solution explorer and adding references by using ?

577


What is enableviewstate in asp net?

527


How can we communicate with each server in N-tier Architecture? and what are the methods?

1792


How to make paging concepts in datagrid in ASP.NET?

554