How to access a member or method to another page?

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

hi,
I have two page like this:
public partial class FormMessage : System.Web.UI.Page
{
public static void ShowSomething()
{
........
}
}

This is another page in a seperate cs file.
public partial class FormMessage : System.Web.UI.Page
{
public void Login()
{
....
FormMessage.ShowSomething(); // Here, it says, the name
"FormMessage" does not exist in the current context...
}
}

It is not like the 1.0 you can access anywhere in the same namespace?
 
Back
Top