System.NullReferenceException: 未将对象引用设置到对象的实例 的疑问?? [问题点数:40分,结帖人bdlxwjz]

Bbs1
本版专家分:0
结帖率 83.33%
Bbs7
本版专家分:12607
Bbs8
本版专家分:34269
Blank
领英 绑定领英第三方账户获取
Blank
红花 2019年2月 Web 开发大版内专家分月排行榜第一
Blank
黄花 2018年8月 Web 开发大版内专家分月排行榜第二
Bbs8
本版专家分:34269
Blank
领英 绑定领英第三方账户获取
Blank
红花 2019年2月 Web 开发大版内专家分月排行榜第一
Blank
黄花 2018年8月 Web 开发大版内专家分月排行榜第二
Bbs8
本版专家分:34269
Blank
领英 绑定领英第三方账户获取
Blank
红花 2019年2月 Web 开发大版内专家分月排行榜第一
Blank
黄花 2018年8月 Web 开发大版内专家分月排行榜第二
Bbs6
本版专家分:6220
Bbs1
本版专家分:0
异常!System.NullReferenceException: 未将对象引用设置对象实例
[code=csharp] rn//========================= ItemDTO 定义 rnpublic class ItemDTOrn rn public int id;rn public int itemId;rn public int itemNum;rn public string outTime;rn public int roleId;rn public int storageType;rn rn//========================= GardenSeed 定义 rnpublic class GardenSeed : ObjBasern rn public int SeedTimern rn getrn rn return Convert.ToInt32(base.Columns["SeedTime"].Value);rn rn setrn rn base.Columns["SeedTime"].Value = value;rn rn rn public string SeedGetMoneyrn rn getrn rn return Convert.ToString(base.Columns["SeedGetMoney"].Value);rn rn setrn rn base.Columns["SeedGetMoney"].Value = value;rn rn rn public int IDrn rn getrn rn return Convert.ToInt32(base.Columns["ID"].Value);rn rn setrn rn base.Columns["ID"].Value = value;rn rn rn public int SeedIDrn rn getrn rn return Convert.ToInt32(base.Columns["SeedID"].Value);rn rn setrn rn base.Columns["SeedID"].Value = value;rn rn rn public GardenSeed()rn rn base.TableName = "GardenSeed";rn base.AddColumn(new Column("SeedTime", ColumnType.Int));rn base.AddColumn(new Column("SeedGetMoney", ColumnType.String));rn base.AddColumn(new Column("ID", "0", ColumnType.Int, true, IdentityType.Normal));rn base.AddColumn(new Column("SeedID", ColumnType.Int));rn rn rn//========================= 出错地方rnpublic class PackagMgr : BaseMgrrn rn public static List CURRENT_PACAGE = new List();rn private MyGM myGM_0 = GM.CreateNewGM();rn private ResourceMgr resourceMgr_0 = new ResourceMgr();rn public void Test()rn rn ResourceMgr resourceMgr = new ResourceMgr();rn foreach (ItemDTO current in PackagMgr.CURRENT_PACAGE)rn rn Console.WriteLine(string.Concat(new object[]rn rn current.itemId,rn ":",rn resourceMgr.GetItemByItemID(current.itemId).MyName,rn ":",rn current.itemNum,rn " st:",rn current.storageTypern ));rn rn rnrn public ItemDTO method_0(int id)rn rn ItemDTO result;rnrn for (int i = 0; i < PackagMgr.CURRENT_PACAGE.Count; i++)//出错rn rnrn if (PackagMgr.CURRENT_PACAGE[i].id == id)rn rn result = PackagMgr.CURRENT_PACAGE[i];rn return result;rn rn rnrn result = null;rn return result;rn rnrn public ItemDTO GetItemByItemID(int id)rn rn ItemDTO result;rn for (int i = 0; i < PackagMgr.CURRENT_PACAGE.Count; i++)//出错rn rnrn if (PackagMgr.CURRENT_PACAGE[i].itemId == id)rn rn result = PackagMgr.CURRENT_PACAGE[i];rn return result;rn rnrn rn result = null;rn return result;rnrn//=================调用rnforeach (EquipDTO current in DataCenter.CURRENT_EQUIPS)rn rn string[] array = new string[4];rn ItemDTO itemDTO = packagMgr.method_0(current.id);//调用method_0rnif (itemDTO != null)rnrn Item itemByItemID = resourceMgr.GetItemByItemID(itemDTO.itemId);rn//调用GetItemByItemIDrn if (itemByItemID != null)rn rnrn array[0] = itemByItemID.MyName;rnrn rn rnrn//------调用rnprivate void method_15()rn rn this.util_0.ClearLV(this.lv_seed);rn ResourceMgr resourceMgr = new ResourceMgr();rn List gardenSeed = resourceMgr.GetGardenSeed();rn if (gardenSeed != null && gardenSeed.Count != 0)rn rn List list = new List();rn PackagMgr packagMgr = new PackagMgr();rn foreach (GardenSeed current in gardenSeed)rn rn string[] array = new string[4];rn array[0] = resourceMgr.GetItemNameByItemID(current.SeedID);rn array[1] = current.SeedTime.ToString() + "天";rn array[2] = "0";rnrn ItemDTO itemByItemID = packagMgr.GetItemByItemID(current.SeedID);rn //调用GetItemByItemID rn if (itemByItemID != null)rn rn array[2] = itemByItemID.itemNum.ToString();rn rn array[3] = current.SeedID.ToString();rn list.Add(array);rn[/code]rnrnrnrnrnrnrn[]未处理异常!System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rn 在 Manager.PackagMgr.GetItemByItemID(Int32 id) 位置 E:\工程\PackagMgr.cs:行号 60rn百度好久 发现出现这个问题都是 未初始化 和 NULL值rnpublic static List CURRENT_PACAGE后面加上了new List();rn还是不行rn不知道怎么弄啊 求各位大哥帮帮忙
System.NullReferenceException: 未将对象引用设置对象实例!
<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrn执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 rnrn堆栈跟踪: rnrnrn[NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。]rn HotelOnline.hotelcustomer.index4.InitializeComponent() +84rn HotelOnline.hotelcustomer.index4.OnInit(EventArgs e) +13rn System.Web.UI.Control.InitRecursive(Control namingContainer) +241rn System.Web.UI.Page.ProcessRequestMain() +195rnrn 在本机上运行没问题..但是传到服务器就报错!~~~~这是什么原因啊???
System.NullReferenceException: 未将对象引用设置对象实例。!!!
Component1 co=new Component1();rn private void Page_Load(object sender, System.EventArgs e)rn rn rnrn if(!IsPostBack)rn rn bindNew();rn Panel1.Visible=false;rn rn rn void bindNew()rn rn co.adp.Fill(co.ds, "employees");rn DataColumn[] Pmykey = new DataColumn[1]; //宣告新主索引栏位阵列rn Pmykey[0] = co.ds.Employees.EmployeeIDColumn;rn co.ds.Employees.PrimaryKey = Pmykey; //加入主键rn rnAllemployees.DataSource=co.ds.Employees.DefaultView; ==有错!!!rn Allemployees.DataMember="employees";rn Allemployees.DataBind();rn
System.NullReferenceException: '未将对象引用设置对象实例。'
刚学不久,自己写一个小项目,出现了这个异常rn不知道是不是Session["UserId"]引起的rn上网搜到一些解决方法试了试还是不成功rn想请大家帮忙看一看rnrnController下的ActionResultrn //Update Picturern [HttpPost]rn public ActionResult UpdatePicture(PictureVM obj)rn rn int userId = Convert.ToInt32(Session["UserId"]);rn if (userId == 0)rn rn return RedirectToAction("Login", "Account");rn rnrn var file = obj.Picture;rn User u = db.Users.Find(userId);rn if( file != null)rn rn //update the imgrn var extension = Path.GetExtension(file.FileName);rn string id_and_extension = userId + extension;rn string imgUrl = "~/Profile_Images/" + id_and_extension;rn u.ImageUrl = imgUrl;rn db.Entry(u).State = EntityState.Modified; //*rn db.SaveChanges();rnrn var path = Server.MapPath("~/Profile_Images/");rn if (!Directory.Exists(path))rn rn Directory.CreateDirectory(path + id_and_extension);rn rn //when update new img, delete old imgrn if ((System.IO.File.Exists(path + id_and_extension))) //imgUrlrn rn System.IO.File.Delete(path + id_and_extension);rn rn file.SaveAs((path + id_and_extension));rn rn return RedirectToAction("UserProfile");rn rn```rnUserProfile.cshtml下关于ImageUrl的部分rn rn @Html.DisplayNameFor(model => model.ImageUrl)rn rn rn @*@if(Model.ImageUrl.Length > 0)*@rn @*System.NullReferenceException: '<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。'rn ClairG.ChatApp.Domain.Entities.User.ImageUrl.get returned null.*@rn @if (Model.ImageUrl != null) //无法保存图片rn rn rn rn rn @using (Html.BeginForm("UpdatePicture", "User", FormMethod.Post,rn new enctype = "multipart/form-data" ))rn rn rn rn rn rn```
提示“System.NullReferenceException: 未将对象引用设置对象实例。”
rnrn rnrn为什么提示“System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。
COOKIES的System.NullReferenceException: 未将对象引用设置对象实例
<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrnrn行 14: protected void Page_Load(object sender, EventArgs e)rn行 15: rn行 16: string ck = Request.Cookies["Ly_Cookies"]["Ly_UserName"].ToString();rn行 17: if (ck == null)rn行 18: rn rnrn源文件: e:\自写.NET\xingerxd\Admin_Index.aspx.cs 行: 16 rnrn堆栈跟踪: rnrnrn[NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。]rn Admin_Index.Page_Load(Object sender, EventArgs e) in e:\自写.NET\xingerxd\Admin_Index.aspx.cs:16rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34rn System.Web.UI.Control.OnLoad(EventArgs e) +99rn System.Web.UI.Control.LoadRecursive() +47rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061rnrn rnrnrnrnrnrn以上是错误的代码rnResponse.Cookies["Ly_Cookies"]["Ly_UserName"] = UserName.Trim();rnResponse.Cookies["Ly_Cookies"]["Ly_UserPurview"] = dr["UserPurview"].ToString();rnrn这个是登录成功后写入的COOKIES,包括用户名和权限rnrn如果是通过登录页面转过去的话,那么就能正常显示rn但是如果是在地址栏里面直接输入需要验证页面的话,比如admin_index.aspxrn那么就会出现错误,错误以上,rn string AdminName = Request.Cookies["Ly_Cookies"]["Ly_UserName"];rnrn这样都有错么,整了我一天的问题了,
System.NullReferenceException: 未将对象引用设置对象实例
<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrnrn行 69: );rn行 70: con.Open();rn行 71: string sql = "select * from [Check] where userName='" + Session["UserName"].ToString() + "'";rn行 72: SqlDataAdapter da = new SqlDataAdapter(sql, con);rn行 73: DataSet ds = new DataSet();rn rnrn源文件: d:\新\Web\0529\userwork\Check.aspx.cs 行: 71 rnrn
System.NullReferenceException: 未将对象引用设置对象实例,错误!
OracleConnection oOracleConn = new OracleConnection();rn oOracleConn.ConnectionString ="Data Source=AGENTDB;User Id=agentdba;Password=icbcsg;Integrated Security=no;";rn rn string sqlstr="select distinct BRANCH_NO from gz_users_info "; rn OracleCommand cmd=new OracleCommand(sqlstr,oOracleConn);rn oOracleConn.Open(); rnrn OracleDataReader Ord=cmd.ExecuteReader();rnrn DropDownList ddl=(DropDownList)e.Item.FindControl("DropDownList1");rn ddl.DataSource=Ord;rn ddl.DataValueField="branch_no";rn ddl.DataTextField="branch_no";rn ddl.DataBind();rn Ord.Close();rn oOracleConn.Close();rn上面的代码在ddl.DataSource=Ord;处报System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>错误,怎么来解决?rn谢谢!rn
C# System.NullReferenceException: 未将对象引用设置对象实例
使用ExecuteScalar(sql,entity,tran)添加数据时,数据表中必须要有自增长的id字段,不然会报错 System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em> 第一次做C#项目遇上这个错误,和同学调试了一天,心累……
System.NullReferenceException: 未将对象引用设置对象实例错误???
page_load事件中rnif (!Page.IsPostBack)rn rn ds = new DataSet();rn string path = Server.MapPath("AccpCash.xml");rn ds.ReadXml(path);rn foreach (DataRowView dr in ds.Tables[0].DefaultView)rn rn ddltype.Items.Add(dr["name"].ToString());rn rn ddltype.SelectedIndex = 0;rn rnrnonclick事件中rn 运行到:rn DataRow dr = ((DataRow[])ds.Tables[0].Select("name='" + ddltype.SelectedItem.Text + "'"))[0]; 就报 这个错rn
System.NullReferenceException: 未将对象引用设置对象实例
[code=C#]rnusing (SPWeb web = site.OpenWeb(webID))rn rn SPList list = web.Lists[listID];rn SPListItem item = list.GetItemById(itemID); //取到想要<em>设置</em>的记录rn if ("UserMulti" == field.TypeAsString) //判断该字段是否<em>设置</em>了“允许多重选择”rn rn SPFieldUserValueCollection members = (SPFieldUserValueCollection)item[field.Title]; //取出所有数据内容rn foreach (SPFieldUserValue member in members)rn rn if (member.User != null) //判断该<em>对象</em>是否是用户类型rn rn principal.AddUser(member.User); //添加用户rn rn elsern rn tryrn rn SPGroup group = web.SiteGroups[member.LookupValue]; //获取用户组rn principal.AddGroup(group); //添加用户组rn rn catchrn rn continue;rn rn rn rn rn[/code]rnrn在foreach | 这里报错:System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。
System.NullReferenceException: 未将对象引用设置对象实例。???
rnvs 2008+sql 2005 rnrnrn rnweb.config :rn rnrnrnstring connectionStringS=ConfigurationManager.ConnectionStrings["ConnString"].ConnectionString; rn 异常详细信息: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。???
System.NullReferenceException:“未将对象引用设置对象实例
private void aa()rn rn wbr.Url = new Uri("http://www.abc.com");rn this.wbr.Document.GetElementById("textbox1").Focus();//这里报错System.NullReferenceException:“<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>rn rn----------------------------------------------------------------------rnprivate void aa(object sender, EventArgs e)rn rn wbr.Url = new Uri("http://www.abc.com");rn this.wbr.Document.GetElementById("textbox1").Focus();rn rn这样就正常,请问为什么啊??
急,System.NullReferenceException: 未将对象引用设置对象实例
我在做向一个xml中插入记录的程序,出错!rnxml代码:rn[code=XML]rnrn rn rn dongrn 666666rn manrn Tonghairn 12345678rn 12345678912rn 08rn 062rn rn rn 11111111rn 88rn rn rn rn rn[/code]rn程序代码:rn[code=C#]rn public partial class StudentManagementSystem : Formrn rn public static XmlDocument myXmlDoc = new XmlDocument();rn public StudentManagementSystem()rn rn InitializeComponent();rn rnrn private void addButton_Click(object sender, EventArgs e)rn rn string filePath = Application.StartupPath + "../../../XmlDoc/StudentManagementSystem.xml";rnrn myXmlDoc.Load(filePath);rn string name = nameTextBox.Text;rn string num = numberTextBox.Text;rn string sex = sexTextBox.Text;rn string address = addressTextBox.Text;rn string birthday = birthTextBox.Text;rn rn XmlNode myNode = myXmlDoc.SelectSingleNode("StudentInfos");rnrn XmlElement myXmlElementNode = myXmlDoc.CreateElement("StudentInfo");rn //XmlNode myXmlElementNode = myXmlDoc.CreateNodernrn XmlElement myXmlElemrntName = myXmlDoc.CreateElement("StudentName");rn myXmlElemrntName.InnerText = name;rn XmlElement myXmlElementNum = myXmlDoc.CreateElement("StudentNum");rn myXmlElementNum.InnerText = num;rn XmlElement myXmlElementSex = myXmlDoc.CreateElement("StudentGender");rn myXmlElementSex.InnerText = sex;rn XmlElement myXmlElementAddress = myXmlDoc.CreateElement("StudentAddress");rn myXmlElementAddress.InnerText = address;rn XmlElement myXmlElementBirthday = myXmlDoc.CreateElement("StudentBirth");rn myXmlElementBirthday.InnerText = birthday;rnrn myXmlElementNode.AppendChild(myXmlElemrntName);rn myXmlElementNode.AppendChild(myXmlElementNum);rn myXmlElementNode.AppendChild(myXmlElementSex);rn myXmlElementNode.AppendChild(myXmlElementAddress);rn myXmlElementNode.AppendChild(myXmlElementBirthday);rn//////////////////////////////////////////////////////////////////rn////////////////////////55就是下面这/////////////////////////////////////////rn myNode.AppendChild(myXmlElementNode);rn//////////////////////////////////////////////////////////////////////////rn myXmlDoc.Save(filePath);rn MessageBox.Show("添加成功!");rn rn [/code]rn错误:rn************* 异常文本 **************rnSystem.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rn 在 StudentManagementSystem.StudentManagementSystem.addButton_Click(Object sender, EventArgs e) 位置 D:\\StudentManagementSystem\Form1.cs:行号 55rn 在 System.Windows.Forms.Control.OnClick(EventArgs e)rn 在 System.Windows.Forms.Button.OnClick(EventArgs e)rn 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)rn 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)rn 在 System.Windows.Forms.Control.WndProc(Message& m)rn 在 System.Windows.Forms.ButtonBase.WndProc(Message& m)rn 在 System.Windows.Forms.Button.WndProc(Message& m)rn 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)rn 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)rn 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
System.NullReferenceException: 未将对象引用设置对象实例?
OleDbConnection DBConn =new OleDbConnection ("Provider=SQLOLEDB;Data Source=localhost; Initial Catalog=aspnet; UID=sa;PWD=");rn OleDbCommand DBInsert =new OleDbCommand() ;rn DataSet DSPageData =new DataSet ();rn OleDbDataAdapter DBCommand =new OleDbDataAdapter ();rn rn DropDownList MYDDL =new DropDownList();rn DBInsert.Connection=DBConn;rn DBInsert.Connection.Open();rn foreach( Control MyControl in pnlQuestions.Controls )rn rn if( MyControl.GetType().FullName =="System.Web .UI .WebControls .DropDownList" )rn MYDDL=(DropDownList)MyControl;rn DBInsert.CommandText ="Insert into SurveyResponses"+ "(SurveyQuestionID,SurveyResponse)"+"value("+MYDDL.ID.Substring (2,2)+","+"'"+MYDDL.SelectedItem.Text.Replace("'","''")+"')";rn DBInsert.ExecuteNonQuery ();rn rn DBCommand=new OleDbDataAdapter ("select SurveyResponse from Survey where SurveyID="+Application["SurveyID"].ToString (),DBConn);rn DBCommand.Fill (DSPageData,"SurveyInfo");rn lblMessage.Text =DSPageData.Tables ["SurveyInfo"].Rows[0]["SurveyResponse"].ToString ();rn那里没有<em>实例</em>化???
救助System.NullReferenceException: 未将对象引用设置对象实例
<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrnrn行 99: string stritemID=this.Request.QueryString["itemID"].ToString();rn行 100: this.ViewState["stritemID"]=stritemID;rn行 101: DataTable ds2 = rpImage.GetImagesByItem(stritemID); rn行 102: initTB1();rn行 103: rn rnrnrnrnrnnamespace house.Bankrnrn /// rn /// ysjh 的摘要说明。rn /// rn public class ysjd : System.Web.UI.Pagern rn protected string connString;rn。。。。rnrn protected lander.Bank.saveimage rpImage;rn 。。。rnrn private void Page_Load(object sender, System.EventArgs e)rn rn // 在此处放置用户代码以初始化页面rn;rn。。。。rn DataTable ds2 = rpImage.GetImagesByItem(stritemID); rn rn 。。。。。rn rn //新增rn。。。rn DataTable ds2 = rpImage.GetImagesByItem(stritemID); rn。。。。rn rn
System.NullReferenceException: 未将对象引用设置对象实例。 在 openVM.PowerControl.Connect(
Windows窗体应用程序里面的一个类rn[code=csharp]using System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Runtime.InteropServices;rnusing System.Text;rnusing System.Threading.Tasks;rnusing VixCOM;rnrnnamespace openVMrnrn class PowerControlrn rn VixCOM.IVixLib vixLib = null;rnrn ulong Error;rn VixCOM.IHost hostHandle = null;rn VixCOM.IVM vm = null;rnrn public ulong GetError()rn rn return Error;rn rnrn public void Vix()rn rn tryrn rn vixLib = new VixCOM.VixLibClass();rn rn catch (COMException comExc)rn rn System.Diagnostics.Trace.WriteLine(comExc.Message + "\n");rn throw;rn rn rn rn rn //ConnectHostrn public bool Connect(string hostName, string userName, string password)rn rn int hostType = string.IsNullOrEmpty(hostName) ? VixCOM.Constants.VIX_SERVICEPROVIDER_VMWARE_WORKSTATION : VixCOM.Constants.VIX_SERVICEPROVIDER_VMWARE_SERVER;rnrn int vixVersion = VixCOM.Constants.VIX_API_VERSION;rnrn vixVersion = -1; rnrn [color=#FF0000]VixCOM.IJob jobHandle = vixLib.Connect(vixVersion, hostType, null, 0, userName, password,0, null, null);[/color]rnrn int[] propertyIds = new int[1] VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_HANDLE ;rn object results = new object();rnrn Error = jobHandle.Wait(propertyIds, ref results);rnrn if (Error == VixCOM.Constants.VIX_OK)rn rn object[] objectArray = (object[])results;rn hostHandle = (VixCOM.IHost)objectArray[0];rn return true ;rn rnrn return false;rn rnrn //根据地址打开虚拟机 rn public bool Open(string vmxFilePath)rn rn IJob jobHandle = hostHandle.OpenVM(vmxFilePath, null);rnrn int[] propertyIds = new int[1] VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_HANDLE ;rn object results = new object();rnrn Error = jobHandle.Wait(propertyIds, ref results);rnrn if (Error == VixCOM.Constants.VIX_OK)rn rn object[] objectArray = (object[])results;rn vm = (VixCOM.IVM)objectArray[0];rn return true;rn rnrn return false;rn rnrn //虚拟机通电rn public bool PowerOn()rn rn IJob jobHandle = vm.PowerOn(VixCOM.Constants.VIX_VMPOWEROP_LAUNCH_GUI,rn null, null);rn Error = jobHandle.WaitWithoutResults();rnrn if (Error == VixCOM.Constants.VIX_OK)rn rn // rn // Wait until guest is completely booted. rn // rn jobHandle = vm.WaitForToolsInGuest(300, null);rnrn Error = jobHandle.WaitWithoutResults();rn rnrn return (Error == VixCOM.Constants.VIX_OK);rn rnrn rn //关闭虚拟机rn public bool PowerOff()rn rn IJob jobHandle = vm.PowerOff(VixCOM.Constants.VIX_VMPOWEROP_NORMAL, null);rn Error = jobHandle.WaitWithoutResults();rnrn return (Error == VixCOM.Constants.VIX_OK);rn rn rn rnrn[/code]rn红字报错,标题是button里面运行时的错误
关于System.NullReferenceException 未将对象引用设置对象实例 报错 疑问
我是用三层架构方法写的。rn我是这样写的:rnSQLHelper.cs 页面内容rn[code=C#]using System;rnusing System.Data;rnusing System.Data.SqlClient;rnusing System.Configuration;rnusing System.ComponentModel;rnusing Common;rnrnnamespace DALrnrn /// rn /// SQLHelper类封装对SQL Server数据库的添加、删除、修改和选择等操作rn /// rn public class SQLHelperrn rn /// 连接数据源rn private SqlConnection myConnection = null;rn private readonly string RETURNVALUE = "RETURNVALUE";rnrn /// rn /// 打开数据库连接.rn /// rn private void Open() rn rn // 打开数据库连接rn if (myConnection == null) rn rn myConnection = new SqlConnection(ConfigurationManager.AppSettings["SQLCONNECTIONSTRING"].ToString());rn rn rn if(myConnection.State == ConnectionState.Closed)rn rn tryrn rn ///打开数据库连接rn myConnection.Open();rn rn catch(Exception ex)rn rn SystemError.CreateErrorLog(ex.Message);rn rn finallyrn rn ///关闭已经打开的数据库连接 rn rn rn rnrn /// rn /// 关闭数据库连接rn /// rn public void Close() rn rn ///判断连接是否已经创建rn if(myConnection != null)rn rn ///判断连接的状态是否打开rn if(myConnection.State == ConnectionState.Open)rn rn myConnection.Close();rn rn rn rnrn /// rn /// 释放资源rn /// rn public void Dispose() rn rn // 确认连接是否已经关闭rn if (myConnection != null) rn rn myConnection.Dispose();rn myConnection = null;rn rn rn rn /// rn /// 执行存储过程rn /// rn /// 存储过程的名称rn /// 返回存储过程返回值rn public int RunProc(string procName) rn rn SqlCommand cmd = CreateProcCommand(procName, null);rn tryrn rn ///执行存储过程rn cmd.ExecuteNonQuery();rn rn catch(Exception ex)rn rn ///记录错误日志rn SystemError.CreateErrorLog(ex.Message);rn rn finallyrn rn ///关闭数据库的连接rn Close();rn rn rn ///返回存储过程的参数值rn return (int)cmd.Parameters[RETURNVALUE].Value;rn rnrn /// rn /// 执行存储过程rn /// rn /// 存储过程名称rn /// 存储过程所需参数rn /// 返回存储过程返回值rn public int RunProc(string procName, SqlParameter[] prams) rn rn SqlCommand cmd = CreateProcCommand(procName, prams);rn tryrn rn ///执行存储过程rn cmd.ExecuteNonQuery();rn rn catch(Exception ex)rn rn ///记录错误日志rn SystemError.CreateErrorLog(ex.Message);rn rn finallyrn rn ///关闭数据库的连接rn Close();rn rn rn ///返回存储过程的参数值rn return (int)cmd.Parameters[RETURNVALUE].Value; [color=#FF0000] //这里报错[/color]rn rnrn rn....rnrn[/code]rnDAL层的ASQL.csrn[code=C#]rnpublic class ASQLrn rn public ASQL()rn rn /// rn /// 新增表单申请书rn /// rn /// rn /// rn public int Add_A(AModel Aorder)rn rn rn SQLHelper sqlh = new SQLHelper();rn SqlParameter[] PalamList =rn //sqlh.CreateInParam("@id",SqlDbType.Int,4,A.Id),rn //sqlh.CreateInParam("@xid", SqlDbType.Int,4,Aorder.Xid),rn sqlh.CreateInParam("@number",SqlDbType.VarChar,50,Aorder.Number),rn sqlh.CreateInParam("@A_td",SqlDbType.Char,10,Aorder.A_td),rn sqlh.CreateInParam("@A_date",SqlDbType.VarChar,50,Aorder.A_date),rn sqlh.CreateInParam("@A_th",SqlDbType.NVarChar,1000,Aorder.A_th),rn sqlh.CreateInParam("@A_why",SqlDbType.NVarChar,1000,Aorder.A_why),rn sqlh.CreateInParam("@A_sl",SqlDbType.Char,10,Aorder.A_sl),rn sqlh.CreateInParam("@A_mon",SqlDbType.Char,10,Aorder.A_mon),rn sqlh.CreateInParam("@A_qia",SqlDbType.Char,10,Aorder.A_qia),rn sqlh.CreateInParam("@A_tel",SqlDbType.VarChar,50,Aorder.A_tel),rn sqlh.CreateInParam("@A_cw",SqlDbType.Char,10,Aorder.A_cw),rn sqlh.CreateInParam("@A_usern",SqlDbType.Char,10,Aorder.A_usern)rn ;rnrnrn tryrn rn return (sqlh.RunProc("A_insert", PalamList));rn rnrnrn catch (Exception ex)rn rn SystemError.CreateErrorLog(ex.Message);rn throw new Exception(ex.Message, ex); [color=#FF0000]//这里报错[/color]rn rn rn[/code]rnrnBLL层rn[code=C#]rn /// rn /// 新增申请单rn /// rn /// rn /// rn public int Add_A(AModel Aorder)rn rn ASQL Asql = new ASQL();rn return (Asql.Add_A(Aorder));rn rn[/code]rnrn页面层:rn[code=C#] protected void Button2_Click(object sender, EventArgs e)rn rn if (Page.IsValid)rn rn AModel Amodel = new AModel();rn Amodel.A_td = this.lab_A_td.Text;rn Amodel.A_date = this.YYSimpleCalendar1.Text;rn Amodel.Number = "A" + Common.StrHelper.GetRamCode();rn Amodel.A_usern = this.txtbox_usern.Text.Trim();rn Amodel.A_th = this.txtbox_th.Text.Trim();rn Amodel.A_why = this.txtbox_why.Text.Trim();rn Amodel.A_sl = this.txtbox_sl.Text.Trim();rn Amodel.A_mon = this.txtbox_fy.Text.Trim();rn Amodel.A_qia = this.txtbox_qia.Text.Trim();rn Amodel.A_cw = this.txtbox_cw.Text.Trim();rn Amodel.A_tel = this.txtbox_tel.Text.Trim();rn ABLL abll = new ABLL();rn if (abll.Add_A(Amodel) > 0)rn rn Response.Write(" ");rn rn elsern rn Response.Write(" ");rn rn rnrn rn rn[/code]rnrn[color=#FF0000]报错提示:rn<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn行 129: rn行 130: ///返回存储过程的参数值rn行 131: return (int)cmd.Parameters[RETURNVALUE].Value;rn行 132: rn行 133:[/color][b][/b]rnrn断点测试,发现每个参数值都有取到,就是不知道为什么最后报错!!rn谁能帮我解决!!rnrnrnrn
System.NullReferenceException: 未将对象引用设置对象实例未将对象引用设置对象实例。请各位指点!!
<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrnrn行 20: private void Page_Load(object sender, System.EventArgs e)rn行 21: rn行 22: string userName=Request.Form["userName"].ToString();rn行 23: string userPwd=Request.Form["userPwd"].ToString();rn行 24: // 在此处放置用户代码以初始化页面rn rnrn源文件: d:\bysjzl\bysjcg\login.aspx.cs 行: 22 rnrn堆栈跟踪: rnrnrn[NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。]rn bysjcg.login.Page_Load(Object sender, EventArgs e) in d:\bysjzl\bysjcg\login.aspx.cs:22rn System.Web.UI.Control.OnLoad(EventArgs e)rn System.Web.UI.Control.LoadRecursive()rn System.Web.UI.Page.ProcessRequestMain()rnrn附上我的源程序:rnusing System;rnusing System.Collections;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Web;rnusing System.Web.SessionState;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.HtmlControls;rnusing System.Data.SqlClient;rnrnnamespace bysjcgrnrn /// rn /// login 的摘要说明。rn /// rn public class login : System.Web.UI.Pagern rn private void Page_Load(object sender, System.EventArgs e)rn rn string userName=Request.Form["userName"].ToString();rn string userPwd=Request.Form["userPwd"].ToString();rn // 在此处放置用户代码以初始化页面rnrn SqlConnection con=new SqlConnection("server=.;database=gygl;uid=sa;pwd=;");rn con.Open();rn SqlCommand cmd=new SqlCommand("select count(*) from Users where userName='"+userName+"' and userPwd='"+userPwd+"'",con);rn int count=Convert.ToInt32(cmd.ExecuteScalar());rn if(count>0)rn rn Response.Redirect("main.aspx");rn rn elsern rn Response.Redirect("loginfail.html");rn rn rnrn #region Web 窗体设计器生成的代码rn override protected void OnInit(EventArgs e)rn rn //rn // CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。rn //rn InitializeComponent();rn base.OnInit(e);rn rn rn /// rn /// 设计器支持所需的方法 - 不要使用代码编辑器修改rn /// 此方法的内容。rn /// rn private void InitializeComponent()rn rn this.Load += new System.EventHandler(this.Page_Load);rnrn rn #endregionrn rnrnrn rn
未将对象引用设置对象实例
起因:文件中的类都不能进行设计,因此未能为该文件显示设计器。设计器检查出文件中有以下类: FormMain --- 未能加载基类“WinForm.Win.FormsBase.FormMainBase”。请确保已引用该程序集并已生成所有项目我用了一个小时找百度。这个的解决方法,就是将你删除过的一个窗体,再添加上就好了。。。。有点生气的。。然后出现了:<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>的问题这个问题的解决方...
未将对象引用设置对象实例
我在一个页面定义一个DataTable表 里面已经有数据,把他传到用户控件的后天代码?我是这样写的,为什么老是报出<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。难道穿过来的表是空的吗?[img=https://img-bbs.csdn.net/upload/201404/23/1398214107_854588.jpg][/img][img=https://img-bbs.csdn.net/upload/201404/23/1398214118_325346.jpg][/img][img=https://img-bbs.csdn.net/upload/201404/23/1398214129_620204.jpg][/img]
未将对象引用设置对象实例???
private void 音乐试听ToolStripMenuItem_Click(object sender, EventArgs e)rn rn Frm_YinYue x = new Frm_YinYue();rn x.ShowDialog();//就是这里出现问题的rn rn rn 下面的这是Frm_YinYuernrn public partial class Frm_YinYue : Formrn rn //申明一个字符串数组来储存歌曲的地址rn private string[] urlname = new string[2000];rn WMPLib.IWMPMediaCollection mediacollection;rn WMPLib.IWMPMedia media;rnrn //添加单个地址上的mp3文件rnrn private void Addfile(string path)rn rn string songname = path.Substring(path.LastIndexOf('\\') + 1);rn songname = songname.Substring(0, songname.Length - 4);rn mediacollection = axWindowsMediaPlayer1.mediaCollection;rn media = mediacollection.add(path);rn axWindowsMediaPlayer1.currentPlaylist.appendItem(media);rn mediacollection.remove(media, false);rn listBox1.Items.Add(songname);rn urlname[listBox1.Items.Count - 1] = path;rn rnrn public Frm_YinYue()rn rn InitializeComponent();rn rnrn private void 打开文件ToolStripMenuItem_Click(object sender, EventArgs e)rn rn tryrn rn DialogResult result = openFileDialog1.ShowDialog();rn if (result == DialogResult.OK)rn rnrn //songname为歌曲名rn string songname = openFileDialog1.FileName.Substring(openFileDialog1.FileName.LastIndexOf("\\") + 1);rn songname = songname.Substring(0, songname.Length - 1);rn //刷新当前播放的列表rn axWindowsMediaPlayer1.currentPlaylist.clear();rn //同步刷新listBoxrn listBox1.Items.Clear();rn axWindowsMediaPlayer1.URL = openFileDialog1.FileName;rn this.Text = songname + "--Windows Media Player";rn listBox1.Items.Add(songname);rn urlname[listBox1.Items.Count - 1] = openFileDialog1.FileName;rn //播放当前打开的曲目rn axWindowsMediaPlayer1.Ctlcontrols.play();rnrn rnrn rn catch (Exception error)rn rn MessageBox.Show(error.Message.ToString());rn rn rnrn private void 删除文件ToolStripMenuItem_Click(object sender, EventArgs e)rn rn //listBox1.Items.Clear();//这里的是清除listbox中的所有内容rn listBox1.Items.Remove(listBox1.SelectedItem.ToString ());//此处是删除listbox中选中的项rn // this.axWindowsMediaPlayer1.Ctlcontrols.stop();//停止播放rn rn rnrn private void 关闭ToolStripMenuItem_Click(object sender, EventArgs e)rn rn listBox1.Items.Clear();rn rnrn private void 添加单个文件ToolStripMenuItem_Click(object sender, EventArgs e)rn rn tryrn rn DialogResult result = openFileDialog1.ShowDialog();rn if (result == DialogResult.OK)rn rn this.Addfile(openFileDialog1.FileName);rn urlname[listBox1.Items.Count - 1] = openFileDialog1.FileName;rn //播放当前打开的曲目rn axWindowsMediaPlayer1.Ctlcontrols.play();rnrn rn rn catch (Exception error)rn rn MessageBox.Show(error.Message.ToString());rn rn rn private void 播放rlToolStripMenuItem_Click(object sender, EventArgs e)rn rn if (listBox1.Items.Count > 0)rn rn if (this.listBox1.SelectedItems.Count > 0)rn rn if (axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsPaused)rn rn axWindowsMediaPlayer1.Ctlcontrols.play();rn rn elsern axWindowsMediaPlayer1.Ctlcontrols.pause();rnrn rn rn elsern rn MessageBox.Show("请选择歌曲!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);rn rn rnrn private void 上一曲ToolStripMenuItem_Click(object sender, EventArgs e)rn rn tryrn rn if (listBox1.SelectedIndex >= 0)rn listBox1.SelectedIndex = listBox1.SelectedIndex - 1;rn if (listBox1.SelectedIndex < 0)rn rn listBox1.SelectedIndex = listBox1.Items.Count - 1;rn rnrn //这里的代码是:当选择了上一曲后,就立即播放上一曲rnrn WMPLib.IWMPMedia nowmedia = axWindowsMediaPlayer1.currentPlaylist.get_Item(listBox1.SelectedIndex);rn axWindowsMediaPlayer1.Ctlcontrols.playItem(nowmedia);rnrn rn catch (Exception) ;rn rnrn private void 下一曲ToolStripMenuItem_Click(object sender, EventArgs e)rn rn axWindowsMediaPlayer1.Ctlcontrols.next();//这个是系统自带的下一曲方法rnrn tryrn rn if (listBox1.SelectedIndex >= 0)rn listBox1.SelectedIndex = listBox1.SelectedIndex +1;rn if (listBox1.SelectedIndex < 0)rn rn listBox1.SelectedIndex = listBox1.Items.Count +1;rn rnrn //这里的代码是:当选择了上一曲后,就立即播放上一曲rn WMPLib.IWMPMedia nowmedia = axWindowsMediaPlayer1.currentPlaylist.get_Item(listBox1.SelectedIndex);rn axWindowsMediaPlayer1.Ctlcontrols.playItem(nowmedia);rnrn rn catch (Exception) ;rn rnrn rnrn rnrn private void listBox1_DoubleClick(object sender, EventArgs e)rn rn if (listBox1.SelectedIndex > -1)rn rn WMPLib.IWMPMedia nowmedia = axWindowsMediaPlayer1.currentPlaylist.get_Item(listBox1.SelectedIndex);rn axWindowsMediaPlayer1.Ctlcontrols.playItem(nowmedia);rnrn rn rnrn rnrn private void 打开文件ToolStripMenuItem2_Click(object sender, EventArgs e)rn rn 打开文件ToolStripMenuItem_Click(sender, e);rn rnrn private void 上一曲ToolStripMenuItem1_Click(object sender, EventArgs e)rn rn 上一曲ToolStripMenuItem_Click(sender, e);rn rnrn private void 下一曲ToolStripMenuItem1_Click(object sender, EventArgs e)rn rn 下一曲ToolStripMenuItem_Click(sender, e);rn rnrn private void 停止ToolStripMenuItem_Click(object sender, EventArgs e)rn rn axWindowsMediaPlayer1.Ctlcontrols.stop();rn rnrn private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)rn rn DialogResult dr = MessageBox.Show("您确定要退出吗?", "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information);rn if (dr == DialogResult.Yes)rn this.Close();rn elsern return;rn rnrn private void toolStripMenuItem3_Click(object sender, EventArgs e)rn rn 添加单个文件ToolStripMenuItem_Click(sender, e);rn rnrn private void toolStripMenuItem2_Click(object sender, EventArgs e)rn rn listBox1.Items.Remove(listBox1.SelectedItem.ToString());rn rn rn
未将对象引用设置对象实例??
<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrnrn行 24: using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["CarManage"].ConnectionString))rn行 25: rn行 26: using (SqlCommand command = new SqlCommand("insert into UserMessage(UserName,UPassword,UCode,UName,USex,UBir,UMZ,USFZ,UPhone,UBuMen,UAddress,UPerMissions) values('" + this.TextBox1.Text + "','" + this.TextBox2.Text + "','" + this.TextBox4.Text + "','" + this.TextBox9.Text + "'," + this.RadioButtonList1.SelectedValue + ",'" + birthday.Value + "','" + DropDownListNation.Items[this.DropDownListNation.SelectedIndex].Text + "','" + this.TextBox5.Text + "','" + this.TextBox6.Text + "','" + this.bumen.Items[this.DropDownListNation.SelectedIndex].Text + "','" + this.TextBox7.Text + "','" + RadioButtonList2.SelectedItem.Text + "')"))rn行 27: rn行 28: connection.Open();//打开数据库连接rn rnrn源文件: f:\CarManage\Register.aspx.cs 行: 26 rnrn//源文件rnpublic partial class Register : System.Web.UI.Pagernrn protected void Page_Load(object sender, EventArgs e)rn rnrn rn protected void Button1_Click(object sender, EventArgs e)rn rn using (SqlConnection connection = new SqlConnectionrnrn(ConfigurationManager.ConnectionStrings["CarManage"].ConnectionString))rn rn using (SqlCommand command = new SqlCommand("insert into UserMessagernrn(UserName,UPassword,UCode,UName,USex,UBir,UMZ,USFZ,UPhone,UBuMen,UAddress,UPerMissiornrnns) values('" + this.TextBox1.Text + "','" + this.TextBox2.Text + "','" + rnrnthis.TextBox4.Text + "','" + this.TextBox9.Text + "'," + rnrnthis.RadioButtonList1.SelectedValue + ",'" + birthday.Value + "','" + rnrnDropDownListNation.Items[this.DropDownListNation.SelectedIndex].Text + "','" + rnrnthis.TextBox5.Text + "','" + this.TextBox6.Text + "','" + this.bumen.Itemsrnrn[this.DropDownListNation.SelectedIndex].Text + "','" + this.TextBox7.Text + "','" + rnrnRadioButtonList2.SelectedItem.Text + "')"))rn rn connection.Open();rn command.Connection = connection;rn int result = (int)command.ExecuteNonQuery();rn if (result != 0)rn rn JScript.AlertAndRedirect("登录成功!", "Login.aspx"); rnrn rn elsern rn JScript.AlertAndRedirect("登录失败,请重新输入您的用户名和密码!", "#");rn rn rn rn rnrn[color=#FF0000]rn 乞求高手前来赐教[/color]
未将对象引用设置对象实例..
我知道这个很简单 ,但是..但是 我百度了好久都不会- -~ rn求解-,-rn private string connectionstring = ConfigurationManager.ConnectionStrings["connection"].ConnectionString;rn protected void Page_Load(object sender, EventArgs e)rn rn if (!IsPostBack)rn rn show();rn rn rn protected void show()rn rn string m_id = Request["m_id"].ToString();rn SqlConnection con = new SqlConnection(connectionstring);rn con.Open();rn string selectmessage = "select * from message where m_id='" + m_id + "'";rn SqlCommand cmd = new SqlCommand(selectmessage, con);rn SqlDataReader dr = cmd.ExecuteReader();rn if (dr.Read())rn rn this.Tbname.Text = dr["m_name"].ToString();rn this.Tbsubject.Text = dr["m_subject"].ToString();rn this.Tbcontent.Text = dr["m_content"].ToString();rn this.TBreplay.Text = dr["m_replay"].ToString();rn rn dr.Close();rn con.Close();rn
仿QQ卷帘式菜单,嘿嘿下载
仿QQ卷帘式菜单 ,功能还不错 自做 如有雷同,纯属巧合 相关下载链接:[url=//download.csdn.net/download/choujiede5/3407100?utm_source=bbsseo]//download.csdn.net/download/choujiede5/3407100?utm_source=bbsseo[/url]
西电《移动通信》课后习题答案下载
禾泉很全的答案 真的很有用 很不好找的啊亲们有用的话就来拿吧 相关下载链接:[url=//download.csdn.net/download/eva42/3907733?utm_source=bbsseo]//download.csdn.net/download/eva42/3907733?utm_source=bbsseo[/url]
autocorr-lb-3.4.5.2-16.el6.noarch.rpm下载
autocorr-lb-3.4.5.2-16.el6.noarch.rpm是centos工具包。 相关下载链接:[url=//download.csdn.net/download/yuanyuan_186/8112707?utm_source=bbsseo]//download.csdn.net/download/yuanyuan_186/8112707?utm_source=bbsseo[/url]
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制
我们是很有底线的