日期:2014-05-19  浏览次数:20539 次

新手提问~~~大家都来看看~~~
文件:webform1.aspx
页面上加了一个按钮
<asp:Button   ID= "Button1 "   runat= "server "   Text= "Button "   />

文件:webform1.aspx.cs

using   System;
using   System.Data;
using   System.Configuration;
using   System.Collections;
using   System.Web;
using   System.Web.Security;
using   System.Web.UI;
using   System.Web.UI.WebControls;
using   System.Web.UI.WebControls.WebParts;
using   System.Web.UI.HtmlControls;

public   partial   class   webform1   :   System.Web.UI.Page
{
        protected   void   Page_Load(object   sender,   EventArgs   e)
        {

        }

        private   void   Button1_Click(object   sender,   System.EventArgs   e)
        {
                Response.Redirect( "webform2.aspx ");
        }


}

文件webform2.aspx是一个空白页面


为什么点击webform1中的Button页面没有跳转到webform2.aspx这个页面?只是跳转到了webform1.aspx这个页面
我用的是vs2005,系统是xp

------解决方案--------------------
lz是不是丢失了句柄
------解决方案--------------------
我已经给你说了呀,你已经解决了,现在该给我分了!!
是你的onclick的参数的问题:)