FrmServerExecute
.NET프로그래밍/ASP.NET 3.5 SP1 2009. 10. 5. 20:33 |
==> [FrmServerExecute.aspx.cs] 소스
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class FrmServerExecute : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// 현재 웹폼에 또 다른 웹폼을 추가 : 제어권 돌아옴
Server.Execute("./FrmRequest.aspx");
Server.Execute("./FrmRequestUserHostAddress.aspx");
// 현재 웹폼에 또 다른 웹폼을 추가 : 제어권 넘김
Server.Transfer("./FrmResponseWrite.aspx");
// Transfer() = Execute() + Response.End()
//아래 구문은 실행 안 됨...
Response.Write("Test");
}
}
-------------------------------------------------------------------------------------
[실행결과]
'.NET프로그래밍 > ASP.NET 3.5 SP1' 카테고리의 다른 글
FrmApplicationSession (0) | 2009.10.05 |
---|---|
ASP.NET 주요 내장 개체(클래스)들 - Application 개체와 Session 개체 (0) | 2009.10.05 |
FrmServerMapPath (0) | 2009.10.05 |
ASP.NET 주요 내장 개체(클래스)들 - Server 개체 (0) | 2009.10.05 |
FrmRequestUserHostAddress (0) | 2009.10.05 |