Hey,
If I have some code in App_Code class, can I reference this code without using ClassName.MethodName syntax?
App_Code:
public class BasePage
{
public static string FooBar()
{
return "FooBar is cool";
}
}
Code Behind:
private partial class _Default : Page
{
private void Page_Load()
{
Label1.Text = BasePage.FooBar();
// Label1.Text = FooBar(); <----- can this be done in any way?
}
}
Go to the complete details ...