Q:

Adding c# file with global variables and helper functions without adding a web page with it

i'm new to asp.net and will appriciate if you can help me with that:
I'm using VS and I want to add a C# file that will include some global variables and helper functions that I'll use on different pages. 
I don't see any option to add a standalone file (VS 2013) without adding a web page with it. 
How can I add such a file and how do I call its' functions and global variables from other pages C# files? 
Thanks! 

A:

You can Create Common.cs as Class to Save Your Global Variables in App_Code Folder in Your Asp.net Application. 
public class Common
{
    public Common()
    {
        //
        // TODO: Add constructor logic here
        //
    }
   private static string MyValue;

   public static string MyMethod()
   {

      return "My String";

   }

}

//calling
string Mystr=Common. MyMethod();

EDIT:

