Divya Parashar
we want use some variable globally,where we declare the variable
By Divya Parashar in ASP.NET on Dec 13 2006
  • Jimmy Vyas
    Jul, 2007 2

    In ASP.NET 2.0, create a public class in App_code folder and create punblic static/shared variable.

    By this, you will get global variable

    • 0
  • Dec, 2006 16

    To make a variable global (rather than public) you would add it to a class that is a singleton. A singleton helps to guarantee that there is only one instance of that class available at runtime.

    • 0
  • canuja
    Dec, 2006 16

    Declare the variable as public.

    Another way is create a public class, define all the variables. You can globally access these variables.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS