1、在Page1.aspx中将URL定向到Page2.aspx;
2、在Page2.aspx中添加如下代码:
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
TextBox pp_TextBox = new TextBox(); ;
Calendar pp_Calender = new Calendar();
pp_TextBox = (TextBox)this.PreviousPage.FindControl("TextBox1");
pp_Calender = (Calendar)PreviousPage.FindControl("Calendar1");
Label1.Text = "Hello" + pp_TextBox.Text + "</br>" + "Data Selected" + pp_Calender.SelectedDate.ToShortDateString();
}//即用PreviousPage属性中的FindControl方法;
</script>