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();
出问题了!
{
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();
出问题了!
{
throw new Exception("The method or operation is not implemented.");
}
问题不是已经很清楚了吗?当程序运行到这里代码会抛出"The method or operation is not implemented."的异常。
{
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这个方法呢? }
}
我是新手,不是很明白的!
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文件