//将PreviousPage转换成与来源网页相同的强类型 if (PreviousPage != null) { if (PreviousPage.IsCrossPagePostBack) { IsCrossPageSource sourcePage = (IsCrossPageSource)PreviousPage; Label1.Text = "您输入的名字是:" + sourcePage.getUserName; } }