Hi,
One aspx.cs/vb code behind class public method you can not access other aspx.cs/vb code behind class. below code is one aspx.cs/vb file method is public
If you want access common method for both aspx.vb/cs classes you can use for Separate class in App_code folder.create object of that class and you can access where ever you want.common class example.in App_code folder. this method.
public class Common
{
public Common()
{
}
public string Hello()
{
return "Hello India";
}
}
public partial class CustomeControl : System.Web.UI.Page
{
Common com = new Common();
com.Hello();
}