在项目中碰到了一个问题:我要在一个C#页面1的事件protected  void Button1_Click(object sender, EventArgs e)中调用另一个C#页面2的函数public void] Find(string strFind)。
  实现是这样的:我在页面1种声明了叶面的地类<br/>
Page2 page =new Page2();<br/>  protected  void Button1_Click(object sender, EventArgs e)
{
  page.Find("tt");
}
结果出现了:
Object reference not set to an instance of an object. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.