App_Code里的CS文件调用问题
App_Code文件夹下的mysqlconn.csusingSystem;usingSystem.Data;usingSystem.Configuration;using...
App_Code文件夹下的mysqlconn.cs
using System;
using System.Data;
using System.Configuration;
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.Data.SqlClient;
/// <summary>
/// Class1 的摘要说明
/// </summary>
namespace mysqlconn
{
//
}
下面是ajaxck.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;
using mysqlconn;
public partial class saveuser : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
///代码
}
}
就这样一直显示 :
CS0246: 找不到类型或命名空间名称“mysqlconn”(是否缺少 using 指令或程序集引用?)
搞了好久,现在发现好像用VS上调试没问题,用自己配置IIS访问就出现那错误很奇怪,你知道为什么吗 展开
using System;
using System.Data;
using System.Configuration;
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.Data.SqlClient;
/// <summary>
/// Class1 的摘要说明
/// </summary>
namespace mysqlconn
{
//
}
下面是ajaxck.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;
using mysqlconn;
public partial class saveuser : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
///代码
}
}
就这样一直显示 :
CS0246: 找不到类型或命名空间名称“mysqlconn”(是否缺少 using 指令或程序集引用?)
搞了好久,现在发现好像用VS上调试没问题,用自己配置IIS访问就出现那错误很奇怪,你知道为什么吗 展开
3个回答
展开全部
using mysqlconn;
这是什么?
微软不会提供吧,
假如mysqlconn是你自己写的类,直接写就行
mysqlconn A;
A=New mysqlconn;
a.访问的类成员.
这是什么?
微软不会提供吧,
假如mysqlconn是你自己写的类,直接写就行
mysqlconn A;
A=New mysqlconn;
a.访问的类成员.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
using System;
using System.Data;
using System.Configuration;
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.Data.SqlClient;
/// <summary>
/// Class1 的摘要说明
/// </summary>
namespace mysqlconn
{
//
}
下面是ajaxck.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;
using System.Data.SqlClient;
public partial class saveuser : System.Web.UI.Page
{
mysqlconn A=new mysqlconn();
protected void Page_Load(object sender, EventArgs e)
{
///代码
A.调用方法()
}
}
using System.Data;
using System.Configuration;
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.Data.SqlClient;
/// <summary>
/// Class1 的摘要说明
/// </summary>
namespace mysqlconn
{
//
}
下面是ajaxck.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;
using System.Data.SqlClient;
public partial class saveuser : System.Web.UI.Page
{
mysqlconn A=new mysqlconn();
protected void Page_Load(object sender, EventArgs e)
{
///代码
A.调用方法()
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询