你可能没有给这些button定义commandname属性

解决方案 »

  1.   

    在设计页面  NavigationButton的属性窗口中看看commandname有没有值,没有就写进去;估计这个分页是由4个按钮构成,调用同一个方法,即
    private void InitializeComponent()
    {    
    this.Button1.Click += new System.EventHandler(NavigationButton_Click);
    this.Button2.Click += new System.EventHandler(NavigationButton_Click);
             this.Button3.Click += new System.EventHandler(NavigationButton_Click);
    this.Button4.Click += new System.EventHandler(NavigationButton_Click); this.Load += new System.EventHandler(this.Page_Load);}通过4个按钮各自不同的CommandName来区别处理
      

  2.   

    1——
    你的LINKBUTTON设置了COMMANDNAME吗?2——
    你的LINKBUTTON的CLICK事件绑定到了这个函数吗?3——
    对于要用到COMMANDNAME、COMMANGARGUMENT的处理,最好使用COMMAND事件,因为COMMAND事件的参数已经带有了COMMANDNAME和COMMANDARGUMENT的值。