学校平面图怎么画:急,大虾帮我啊!!

来源:百度文库 编辑:中科新闻网 时间:2024/04/28 16:21:13
public class TEMP : System.Web.UI.Page
{

private void Page_Load(object sender, System.EventArgs e)
{
b ob=new b();
Response.Write(ob.bid);
}

}

public class a : System.Web.UI.UserControl
{
protected string aid;
}

public class b : a
{
public int bid;

public b()
{
this.bid=base.aid.Length;
}
}

异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

源错误:

行 58: public b()
行 59: {
行 60: this.bid=base.aid.Length;
行 61: }
行 62: }