코드 비하인드 페이지/파일(.aspx.cs파일)와 같이 생성하여 FrmHello프로젝트 만들기
.NET프로그래밍/ASP.NET 3.5 SP1 2009. 10. 5. 13:06 |==> FrmHello.aspx 소스 및 디자인
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FrmHello.aspx.cs" Inherits="FrmHello" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
UI / 디자인 : aspx에서</div>
</form>
</body>
</html>
-------------------------------------------------------------------------------------
==> FrmHello.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 FrmHello : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// 기능은 aspx.cs에서, 즉, 코드비하인드 페이지에서...
Response.Write("반갑습니다...");
}
}
-------------------------------------------------------------------------------------
[실행결과]
'.NET프로그래밍 > ASP.NET 3.5 SP1' 카테고리의 다른 글
ASP.NET 주요 내장 개체(클래스)들 - Response 개체 (0) | 2009.10.05 |
---|---|
App_Code폴더에 "클래스 라이브러리 파일(공용으로 사용하는 파일)"로 저장한 파일 호출하여 사용하기 (0) | 2009.10.05 |
Visual Basic 파일형태(VB)로 코드 비하인드 페이지/파일(.aspx.vb)을 포함한 파일 생성하기 (0) | 2009.10.05 |
단일 페이지로 웹 폼 만들기(FrmHi.aspx) (0) | 2009.10.05 |
WebASPNET (0) | 2009.10.05 |