4. FrmTextBox.aspx.cs 파일을 열고 다음과 같이 코드를 작성한다.

    ▼  FrmTextBox.aspx.cs

    using System;
    
    namespace DevStandardControl
    {
      public partial class FrmTextBox : System.Web.UI.Page
      {
          protected void Page_Load(object sender, EventArgs e)
          {
              // Empty
          }
          protected void btnOK_Click(object sender, EventArgs e)
          {
              // 이름 받아 오기
              string strName = this.txtSingleLine.Text;
              // 소개 받아 오기
              string strIntro = this.txtMultiLine.Text;
              // 암호 받아 오기
              string strPassword = this.txtPassword.Text;
              // 출력
              Response.Write(
                  strName + “<br />“
                  + strIntro + “<br />“
                  + strPassword + “<br />“);
          }
      }
    }
    

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.