Transfer用法
queryPage.aspx:
private void btnEnter_Click(object sender, System.EventArgs e)
{
Server.Transfer("ResultPage.aspx");
}
ResultPage.aspx:
public class ResultPage : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
//转换一下即可获得前一页面中输入的数据
QueryPage queryPage = ( QueryPage )Context.Handler;
Response.Write( queryPage.StartDate );
}
}
来自杭州西溪。主打Linux系统架构、维优、项目外包