i have one page i.e default.aspx and its in the main root and i have another folder which has a file with name of test.aspx . it means my test file is => Folder->test.aspx .
Now can you help me that how can i declare a string variable in my main file ( default.aspx ) and call or change its value in my test.aspx file .
I tryed this code but i didnt get result :-
Thank you
in default.cs
public static class globalvar
{
public static string test="null";
}
in folder->test.cs
class program
{
public static void main()
{
globalvar.test = "arash";
}
}
Main(with capital letter).staticvariable, you are looking atCache