网站的会员登陆页面和注册页面,我在本机测试的时候,点击图片按钮都能响应事件,但传到服务器上就不响应鼠标点击的事件了。
请问出现这种事情是哪个文件没有上传上去吗?还是服务器的问题?

解决方案 »

  1.   

    看看服务器上面的代码里面有没有这样的代码
    private void InitializeComponent()
    {    
    this.Button1.Click += new System.EventHandler(this.Button1_Click);//事件代理
    this.Load += new System.EventHandler(this.Page_Load); }
      

  2.   

    服务器上 #region Web 窗体设计器生成的代码 如果有:
    private void InitializeComponent()
    {    
    this.Button1.Click += new System.EventHandler(this.Button1_Click);//事件代理
    this.Load += new System.EventHandler(this.Page_Load); }
    再看一下网站根目录下面有没有aspnet_client文件。