protected void Button1_click(object sender,EventArgs e)
    {
        if (!(string.IsNullOrEmpty(TextBox1.Text) && string.IsNullOrEmpty(TextBox2.Text) && string.IsNullOrEmpty(TextBox3.Text)))
        {
            clientbuildmanager cbm = new clientbuildmanager(TextBox1.Text,TextBox2.Text ,TextBox3.Text);                  
            cbm.precompilapplication();        }
    }    private void precompilapplication()
    {
        throw new Exception("The method or operation is not implemented.");
    }
就是这里
clientbuildmanager cbm = new clientbuildmanager(TextBox1.Text,TextBox2.Text ,TextBox3.Text);                  
            cbm.precompilapplication();
出问题了!

解决方案 »

  1.   

    private void precompilapplication()
    {
    throw new Exception("The method or operation is not implemented.");
    }
    问题不是已经很清楚了吗?当程序运行到这里代码会抛出"The method or operation is not implemented."的异常。
      

  2.   

    protected void Button1_click(object sender,EventArgs e)
        {
            if (!(string.IsNullOrEmpty(TextBox1.Text) && string.IsNullOrEmpty(TextBox2.Text) && string.IsNullOrEmpty(TextBox3.Text)))
            {
                clientbuildmanager cbm = new clientbuildmanager(TextBox1.Text,TextBox2.Text ,TextBox3.Text);   //这里出错,说不能有三个参数;               
                cbm.precompilapplication();//clientbuildmanager类中有没有precompilapplication这个方法呢?        }
        }
    我是新手,不是很明白的!
      

  3.   

    看不到你的clientbuildmanager类的构造函数,所以没法知道要什么参数。另外,private void precompilapplication()在这里定义也不是clientbuildmanager类的方法而是Page的一个私有方法。
      

  4.   

    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;
    using System.Web.Compilation;《===就是这个!就是用到这个!
    public partial class clientbuildmanager : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {    }
        protected void Button1_click(object sender,EventArgs e)
        {
            if (!(string.IsNullOrEmpty(TextBox1.Text) && string.IsNullOrEmpty(TextBox2.Text) && string.IsNullOrEmpty(TextBox3.Text)))
            {
                clientbuildmanager cbm = new clientbuildmanager(TextBox1.Text,TextBox2.Text ,TextBox3.Text);                  
                cbm.precompilapplication();        }
        }
        
    }
    这是CS文件