编了个密码修改的程序,但是有错误求指教!
using System;using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class ChangePWD : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
//LoadUserName();
}
}
#region
/// <summary>
///加载所有分厂
/// </summary>
public void LoadUserName()
{
DataBaseHelper DBHelper = new DataBaseHelper();
DataSet ds =DBHelper.ExecuteDateSet("select * from dbo.UserDate order by DT_SC");
if (ds.Tables[0].Rows.Count != 0)
{
CommonClass ComClass = new CommonClass();
ComClass.GetDDL(ddlUserName, ds, "UserName", "UserName", true);
lblUserName.Text = ds.Tables[0].Rows[0]["UserName"].ToString();
}
ds.Clear();
}
#endregion
错误 1 无法使用实例引用来访问成员“DataBaseHelper.ExecuteDateSet(string)”;请改用类型名来限定它 F:\学习资料\德通电气有限公司生产管理软件\源码\ProjectManage\ChangePWD.aspx.cs 37 22 F:\...\源码\
错误 2 当前上下文中不存在名称“ddlUserName” F:\学习资料\德通电气有限公司生产管理软件\源码\ProjectManage\ChangePWD.aspx.cs 41 30 F:\...\源码\