normally you want to do someway to pass variables between pages. to do that you have to create properties in your source page.
example
private int age;
private string name;
public int Age
{
get { return age;}
set { age = value;}
}
public string Name
{
get { return name;}
set { name = value;}
}
so you can get that property from next page. But in my case I define seperate class to keep both values. and i define that above properties in my class not axpx.cs page.So then I want to create and instance of that class and assign the properties to the class.and create single properties in aspx.cs page
something like
public MyClass MyClassObject
{
get { return myObject;}
}
Then I can handle the class (for example i can keep that class object in view state.insted of keeping variable in view state.)