网页设计中实现功能的代码和设计的代码是分开的 为什么我实现功能和设计页面是在同一

<script runat="server">

protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
Response.Redirect("user/user.aspx");
}

</script>
如上所示:
我想要的是这个代码是写在后缀为.cs的页面中这个要怎么办

第1个回答  2010-06-20
protected void Page_Load(object sender, EventArgs e)
{
Response.Redirect("user/user.aspx");

}
相似回答