블로그 이미지
Magic_kit
study 관련자료를 한곳으로 자기 개발 목적으로 재태크 재무 관리 목적으로 일상생활의 팁을 공유 하기 위하여 블로그를 개설 하였습니다.

calendar

1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28

Category

Recent Post

Recent Comment

Archive

2009. 10. 5. 14:03 .Net Project/ASP.NET 3.5 Sp1
반응형



<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FrmResponseRedirect.aspx.cs" Inherits="FrmResponseRedirect" %>

<!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>
    <input type ="button" value="이동" onclick= 
                      "location.href = 'http://www.naver.com';" />
        <asp:Button ID="btnNaver" runat="server" Text="네이버로 이동"
            onclick="btnNaver_Click" />     
    
    </div>
    </form>
</body>
</html>
----------------------------------------------------------------------
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class FrmResponseRedirect : System.Web.UI.Page
{
   
protected void btnNaver_Click(object sender, EventArgs e)
    {
        //이동
        Response.Redirect("
http://www.naver.com /");
    }
}





반응형
posted by Magic_kit