比如:exam.ASPX.CS中有以下代码:
public ArrayList getexple()
    {
        ArrayList list = new ArrayList();
        foreach (GridViewRow row in GridView1.Rows)
        {
            CheckBox box = (CheckBox)row.Cells[3].FindControl("chk");
            if (box.Checked)
            {
                list.Add(row.Cells[0].Text);
            }
        }
        return list;
    }
在detail.ASPX.CS中如下:
ArrayList list = ((exam)PreviousPage).getexple();
            this.BulletedList1.DataSource = list;
            this.BulletedList1.DataBind();
错误:找不到类型或命名空间名称“exam”(是否缺少 using 指令或程序集引用?)
这是我依照一个教程的例子做的.居然运行成功了一次,我就将方法getexple()改成Getexple()一下就不行了。再改回来还是不行。忧郁得很。在原例子中我发现输入 ((default)PreviousPage). 打点后并不会智能显示出default中的方法,同时大小写敏感。运行能通过。请高手指教。