异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。请问我哪里弄错啦 为什么一点击登录就出错 [问题点数:20分,结帖人baidu_23080827]

Bbs1
本版专家分:0
结帖率 90%
Bbs9
本版专家分:55778
版主
Blank
黄花 2017年11月 .NET技术大版内专家分月排行榜第二
2017年10月 .NET技术大版内专家分月排行榜第二
Blank
蓝花 2019年6月 .NET技术大版内专家分月排行榜第三
2018年8月 .NET技术大版内专家分月排行榜第三
2018年6月 .NET技术大版内专家分月排行榜第三
2018年3月 .NET技术大版内专家分月排行榜第三
2017年12月 .NET技术大版内专家分月排行榜第三
2017年9月 .NET技术大版内专家分月排行榜第三
Bbs8
本版专家分:44939
Blank
GitHub 绑定GitHub第三方账户获取
Blank
金牌 2015年10月 总版技术专家分月排行榜第一
Blank
银牌 2015年9月 总版技术专家分月排行榜第二
Blank
铜牌 2015年8月 总版技术专家分月排行榜第三
Bbs9
本版专家分:55778
版主
Blank
黄花 2017年11月 .NET技术大版内专家分月排行榜第二
2017年10月 .NET技术大版内专家分月排行榜第二
Blank
蓝花 2019年6月 .NET技术大版内专家分月排行榜第三
2018年8月 .NET技术大版内专家分月排行榜第三
2018年6月 .NET技术大版内专家分月排行榜第三
2018年3月 .NET技术大版内专家分月排行榜第三
2017年12月 .NET技术大版内专家分月排行榜第三
2017年9月 .NET技术大版内专家分月排行榜第三
未处理NullReferenceException--未将对象引用设置对象实例
介绍: 今天小编在做机房重构的时候改了下D层一个类的名字:将 QueryDAL改成了LoginQueryDAL,然后出现了以下错误。 于是小编找到了以下这篇博客https://www.cnblogs.com/KeenLeung/archive/2013/06/23/3150578.html,尝试了其中的办法后还是没有解决。接着小编找来了小伙伴,小伙伴火眼金睛,一下就找到了错误
ASP.NET异常 System.NullReferenceException: 未将对象引用设置对象实例
报错情况如下: 本人菜鸟,请前辈指点,谢谢!
异常!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//========================= <em>出错</em>地方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++)//<em>出错</em>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++)//<em>出错</em>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[]未处理<em>异常</em>!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: 未将对象引用设置对象实例
// Uodate the current row ordering rn da.AuthorView.Sort = "au_id";rn //DataAccess da=new DataAccess();rn //da.AuthorView.Sort =da.currentSort;rnrn // Update the state row filter rn if(da.currentFilter != "*") rn da.AuthorView.RowFilter = "state='" + da.currentFilter + "'";rn elsern da.AuthorView.RowFilter = "";rnrn // Update the current row state filterrn da.AuthorView.RowStateFilter = da.currentRowStateFilter;rnrn // Refresh the data gridrn gridMain.DataSource = da.AuthorView;rn gridMain.DataBind();rnrn谁能告诉我,错在<em>哪里</em>?谢谢
异常详细信息: System.NullReferenceException: 未将对象引用设置对象实例。急!!!
<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrnrn行 1: rn行 2: rn行 3: rn rnrn源文件: f:\inetpub\wwwroot\MakeKing\MakeKingHome.aspx 行: 1 rnrn堆栈跟踪: rnrnrn[NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。]rn System.Web.UI.Control.get_Controls() +0rn System.Web.UI.Control.AddParsedSubObject(Object obj) +29rn System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Object obj) +4rn ASP.MakeKingHome_aspx.__BuildControlTree(Control __ctrl) in f:\inetpub\wwwroot\MakeKing\MakeKingHome.aspx:1rn ASP.MakeKingHome_aspx.FrameworkInitialize() in f:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\makeking\366cccc8\aa061802\nrr_mk2o.0.cs:0rn System.Web.UI.Page.ProcessRequest() +84rn System.Web.UI.Page.ProcessRequest(HttpContext context) +18rn System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179rn System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87rnrn rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
asp.net异常详细信息: System.NullReferenceException: 未将对象引用设置对象实例
string id=Request.QueryString[ "id "].Trim();   string Sqlstr = "select * from adminas where ID= "+id+ " "; 我在连接里面传了一id值如果为空的时间就出现这样的错误 <em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 解决办法:
C#问题:System.NullReferenceException:未将对象引用设置对象实例
遇到过好多次了,c#上是小鸟向中鸟进阶阶段,这个小问题绝对不放过! 出现它是由于引用的<em>对象</em>是null或empty导致 声明变量时:(T表示类) T a = null; 此时在栈上有一个地址。地址占4个字节,但地址没有任何指向,即指向内容为空 如果调用T的成员函数,<em>出错</em>:<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em><em>实例</em> 参考链接:https://www.cnblogs.com/cyq1162/archive/...
【C#】错误“System.NullReferenceException:未将对象引用设置对象实例“解析
错误原因分析   首先,你要知道,在.net里面所有操作的变量都是<em>对象</em>。   一般的标示符,如int,string,char等等,最后都会转换为System命名空间下面的类名(如Int32,String,Char等等),当然类<em>实例</em>化的就更不用说了。<em>对象</em>就必然存在若干的属性和方法。你要操作一个<em>对象</em>,也必然是操作它的属性或者方法。   “<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>”,也就是说你要调用<em>对象</em><em>实例</em>里
C# System.NullReferenceException: 未将对象引用设置对象实例
使用ExecuteScalar(sql,entity,tran)添加数据时,数据表中必须要有自增长的id字段,不然会报错 System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em> 第一次做C#项目遇上这个错误,和同学调试了一天,心累……
未将对象引用设置对象实例"">C#中出现"System.NullReferenceException: 未将对象引用设置对象实例"
任何引用类型你不要轻易相信他是非 null 的,在调用其成员(包括方法、属性等)之前,要问下自己这个<em>对象</em>非空吗? 一般利用if(xxx!=null){}即可解决
异常详细信息: System.NullReferenceException: 未将对象引用设置对象实例???关于ViewState的?
<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnprivate void Page_Load(object sender, System.EventArgs e)rnrn BindBound()rnrnprivate void BindBound()rnrn ViewState["boundID"] = "1000"rnrnrnprivate void btnSubmitBound_Click(object sender, System.EventArgs e)rnrnResponse.Wrirte(ViewState["boundID"]);rnrnrn我不是已经赋值ViewState["boundID"]了吗,<em>为什么</em>还有这个错误提示?
异常详细信息: System.NullReferenceException: 未将对象引用设置对象实例。???????
<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rnrn源错误: rnrnrn行 27: rn行 28: DataRow SmallClassName =DBOperate.GetDataRow("select * from Small_Class where SmallClass_ID="+SmallClass_ID,"Small_Class","DBConnection"); rn行 29: return SmallClassName["SmallClass_ID"].ToString(); rn行 30: rn行 31: rn rnrn源文件: c:\Inetpub\wwwroot\TragramMini\WebTragMini\App_Code\Navigation.cs 行: 29 rnrn堆栈跟踪: rnrnrn[NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。] rn TangramMiniWeb.Navigation.GetSmallClassName(Int32 SmallClass_ID) in c:\Inetpub\wwwroot\TragramMini\WebTragMini\App_Code\Navigation.cs:29 rn TangramMiniWeb.pith.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\TragramMini\WebTragMini\tan\pith.aspx.cs:132 rn System.Web.UI.Control.OnLoad(EventArgs e) +99 rn System.Web.UI.Control.LoadRecursive() +47 rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 rnrnrn它的源码: rnrnrnpublic static string GetBigClassName(int BigClass_ID) rn rnDataRow BigClassName =DBOperate.GetDataRow("select * from Big_Class where BigClass_ID="+BigClass_ID,"Big_Class","DBConnection"); rn return BigClassName["BigClass_ID"].ToString(); rn rnrn rnrnpublic static string GetSmallClassName(int SmallClass_ID) rn rnDataRow SmallClassName =DBOperate.GetDataRow("select * from Small_Class where SmallClass_ID="+SmallClass_ID,"Small_Class","DBConnection"); rnreturn SmallClassName["SmallClass_ID"].ToString();-------此句有问题,就是它测试不过去的????????? rn rnrnrn用到的数据库的表为: rnCREATE TABLE [dbo].[Small_Class]( rn[SmallClass_Id] [int] IDENTITY(1,1) NOT NULL, rn[BigClass_Id] [int] NULL, rn[SmallClass_Name] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL, rn[Enable] [int] NULL, rn[Memo] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL rnprimary key ([SmallClass_Id]) rn) rnrn public static DataRow GetDataRow(string sql, string TableName, string dbname) rn rnrn SqlConnection sqlConnection = new SqlConnection(strCon); rn SqlDataAdapter sqlAdapter1 = new SqlDataAdapter(sql, sqlConnection); rn DataSet product = new DataSet(); rn sqlAdapter1.Fill(product, TableName); rn return product.Tables[0].Rows.Count == 0 ? null : product.Tables[0].Rows[0]; rn rnrnrn rn rn rn rn
while(Reader1.Read()), 异常详细信息: System.NullReferenceException: 未将对象引用设置对象实例
代码如下:rnrn......rnstring myArea= Dr["ProvinceCode"].ToString;rnrnstring sql = "SELECT * from Province where Area_Code in (0612,0600,1200)";rnrnSqlDataReader Reader1 = newdata.readrow(sql);rnwhile(Reader1.Read())rnrnS_Area += Reader1.GetString(1) + ",";rnrnS_Area = S_Area.TrimEnd(',');rnrn以上一切正常,且数据也能正常提取出来,但是我把sql语句一换成这样的rn-------------------------------------------------------rnrnstring sql = "SELECT * from Province where Area_Code in ('"+myArea.ToString()+"')";rnrn-------------------------------------------------------rnrn,就<em>出错</em>了:rn-----------------------------rnwhile(Reader1.Read())rn<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rn-----------------------------rn而myArea的值也确实是: 0612,0600,1200rnrn应该如何改呢?rnrn
异常详细信息: System.NullReferenceException: 未将对象引用设置对象实例
cmd.CommandText = "insert into t_xsjjjcb(NM,Lou_NM,JCFS,JCJE,JCZPH,YHMC,FPBH,czybm,zt,flag)values('" + textNM.Text + "','" + textLou_NM.Text + "','" + textJCFS.Text + "'," + textJCJE.Text + ",'" + textJCZPH.Text + "','" + yhmcComboBox.SelectedItem.Text + "','" + textFPBH.Text + "','" + textczybm.Text + "','" + ztDropDownList.Text + "','" + flagDropDownList.Text + "')";rnrn插入语句,报这个"<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>"错误,怎么回事求大神指点,急...
###异常详细信息: System.NullReferenceException: 未将对象引用设置对象实例
Imports System.Data.OleDbrnPublic Class MainFormrn Inherits System.Web.UI.Pagern Dim conn As OleDbConnectionrn Dim ds As New DataSetrn Dim da As OleDbDataAdapterrn Public dataView1 As DataViewrnrn Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loadrn '在此处放置初始化页的用户代码rn If Not IsPostBack Thenrn conn = New OleDbConnection(Application("conn"))rn da = New OleDbDataAdapterrnrn Dim delstring As String = "DELETE FROM Questions WHERE (Q_ID = @Original_Q_ID) "rn delstring = delstring & "AND (BigClass_ID = @Original_BigClass_ID OR @Original_BigClass_ID IS NULL AND BigClass_ID IS NULL) "rn delstring = delstring & "AND (HiteCounter = @Original_HiteCounter OR @Original_HiteCounter IS NULL AND HiteCounter IS NULL) AND "rn delstring = delstring & "(ImageName = @Original_ImageName OR @Original_ImageName IS NULL AND ImageName IS NULL) AND "rn delstring = delstring & " (Q_Note = @Original_Q_Note OR @Original_Q_Note IS NULL AND Q_Note IS NULL) AND (ReferTime = @Original_ReferTime OR "rn delstring = delstring & "@Original_ReferTime IS NULL AND ReferTime IS NULL) AND (ReleaseTime = @Original_ReleaseTime OR "rn delstring = delstring & "@Original_ReleaseTime IS NULL AND ReleaseTime IS NULL) AND (SmallClass_ID = @Original_SmallClass_ID OR "rn delstring = delstring & "@Original_SmallClass_ID IS NULL AND SmallClass_ID IS NULL) AND (author = @Original_author OR @Original_author IS"rn delstring = delstring & " NULL AND author IS NULL)"rn '删除命令rn da.DeleteCommand.CommandText = delstringrn上面一句有错:<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。
异常详细信息: System.NullReferenceException: 未将对象引用设置对象实例。帮帮我啊
源错误: rnrnrn行 835: Dim cbox As CheckBox = Me.DataList1.Items(f).FindControl("CheckBox11")rn行 836: If (Me.CheckBox10.Checked = True) Thenrn行 837: cbox.Checked = Truern行 838: Elsern行 839: cbox.Checked = Falsern rn堆栈跟踪: rnrnrn[NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。]rn 网上购票系统.WebForm7.CheckBox10_CheckedChanged(Object sender, EventArgs e) in c:\inetpub\wwwroot\网上购票系统\用户信息管理.aspx.vb:837rn System.Web.UI.WebControls.CheckBox.OnCheckedChanged(EventArgs e)rn System.Web.UI.WebControls.CheckBox.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent()rn System.Web.UI.Page.RaiseChangedEvents()rn System.Web.UI.Page.ProcessRequestMain() +1081rnrn rnrn
异常详细信息:System.NullReferenceException: 未将对象引用设置对象实例
rn<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn页面<em>出错</em>提示为:rn <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rn说明: 执行当前 Web 请求期间,出现未处理的<em>异常</em>。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的<em>详细信息</em>。rnrn<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误:rnrn行 10: public class SqlConnrn行 11: rn行 12: public static string Conn = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"].ToString(); rn行 13: rn行 14: rnrnrn源文件: D:\Coffee\Project\Common\Common\SqlConn.cs 行: 12rnrn堆栈跟踪:rnrn[NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。]rn En.Common.SqlConn..cctor() in D:\Coffee\Project\Common\Common\SqlConn.cs:12rnrn[TypeInitializationException: “En.Common.SqlConn”的类型初始值设定项引发<em>异常</em>。]rn En.BusinessRole.Manager.GetClientCompanyByID(Int32 id) in D:\Coffee\Project\BusinessRole\BusinessRole\Manager.cs:28rn Manager_Login.ShowCompanyName() in d:\Coffee\Project\Eclipse\Manager\Login.aspx.cs:31rn Manager_Login.Page_Load(Object sender, EventArgs e) in d:\Coffee\Project\Eclipse\Manager\Login.aspx.cs:23rn 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) +1061rnrnrn版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42rnrnrnApp.configrn[code=C#]rnrnrn rn rn rnrnrn[/code]rnrnrn<em>出错</em>的是这个文件:rn[color=#FF0000]源文件: D:\Coffee\Project\Common\Common\SqlConn.cs 行: 12rn[/color]rn[code=C#]rnusing System;rnusing System.Collections.Generic;rnusing System.Text;rnusing System.Configuration;rnusing System.Data;rnusing System.Data.SqlClient;rnrnnamespace En.Commonrnrn public class SqlConnrn rn public static string Conn = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"].ToString(); rn rnrnrn[/code]rnrnrnrnrnrn什么问题呢?rn
求助!--异常详细信息: System.NullReferenceException: 未将对象引用设置对象实例
rn<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rn源错误: rnrnrn行 36: SqlDataAdapter cmd2=new SqlDataAdapter("select * from forum_2",con);rn行 37: cmd2.Fill(ds1,"forum_2"); rn行 38: child.DataSource=ds1.Tables["forum_2"];rn行 39: parent.DataSource=ds.Tables["forum_1"];rn行 40: parent.DataBind();rnrn我的数据绑定是这样的:rn rn rn rn rnrn rn rn rnrn rn rn rn rn rn rnrnrnrnrnrnrnrnrnrnrnrnrn//------------------rnprivate void Page_Load(object sender, System.EventArgs e)rnrn SqlConnection con=new SqlConnection (System.Configuration.ConfigurationSettings.AppSettings["con"]);rn con.Open();rn DataSet ds=new DataSet();rn SqlDataAdapter cmd1=new SqlDataAdapter("select * from forum_1",con);rn cmd1.Fill(ds,"forum_1"); rn rn SqlDataAdapter cmd2=new SqlDataAdapter("select * from forum_2",con);rn cmd2.Fill(ds1,"forum_2"); rn child.DataSource=ds1.Tables["forum_2"];rn parent.DataSource=ds.Tables["forum_1"];rn parent.DataBind();rn child.DataBind(); rn rn // 在此处放置用户代码以初始化页面rnrnrn<em>为什么</em>老是child部分<em>出错</em>,我试过如果不让parent处child嵌套的话,就不会提示错误!rn这是怎么回事是呀,请大哥们帮帮忙rnrn rn
异常详细信息: 未将对象引用设置对象实例
请问这是什么原因啊rn<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。行: 176 rn行 174: Int32 FileLength=0;rn行 175:rn行 176: FileLength=UpFile.PostedFile.ContentLength;rnrn rn
报错:“System.NullReferenceException: 未将对象引用设置对象实例
报错:“System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>”   今天在调试程序过程中,出现了如下错误提示:System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>(错误代码在Session所在行)查了好多资料,终于把问题给解决了~~~吼吼...拿来跟大家分享^_^一个重要的知识点:“System.NullR
System.NullReferenceException: 未将对象引用设置对象实例
各位大虾rnrn 引用excel.dllrn 在本机调试一切正常,到服务器报<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn 以下是代码rn using System;rnusing System.Data;rnusing System.Configuration;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnusing Excel;rnrn/// rn/// 将数据保存Excel、TXT、CSV或DBFrn/// rnpublic class ExcelSaveAsrnrn rn rn private Excel.ApplicationClass _x;rnrn /// rn /// 保存文件类型rn /// rn public enum FileType rn rn /// EXCEL类型rn EXCEL,rn /// TXT类型rn TXT,rn /// CSV类型rn CSV,rn /// DBF类型rn DBFrn rnrn /// rn /// 主调方法rn /// rn /// DataTable类型数据rn /// 保存文件路径及文件名,包括扩展名如:"H:\\ex.xls"rn /// 文件类型:从ExcelSaveAs.FileType枚举得rn public static void ToMain(System.Data.DataTable dt, string filename, ExcelSaveAs.FileType type)rn rn ExcelSaveAs a = new ExcelSaveAs();rn rn tryrn rn a._x = new Excel.ApplicationClass();rn a._x.UserControl = false;rn //a._x.DisplayAlerts = false;rn a.SaveAs(dt.Copy(), filename,type);rn rn catch (Exception ex)rn rn throw new Exception(ex.Message);rn rn finally rn rn a._x.Quit();rn System.Runtime.InteropServices.Marshal.ReleaseComObject((object)a._x);rn System.GC.Collect();rn rn rnrnrnrn private void SaveAs(System.Data.DataTable dt, string filename, ExcelSaveAs.FileType type)rn rn //Excel.WorkbookClass wb = (Excel.WorkbookClass)this._x.Workbooks.Add(Type.Missing);rn Excel.Workbook wb = this._x.Workbooks.Add(Type.Missing);rn rnrn //写列标题 注列、行索引是从1开始rn for (int i = 0; i < dt.Columns.Count;i++ )rn rn this._x.Cells[1, i + 1] = dt.Columns[i].ColumnName.ToString();rn rnrn //写数据rn for (int i = 0; i
System.NullReferenceException: 未将对象引用设置对象实例!
<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的<em>异常</em>。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的<em>详细信息</em>。 rnrn<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrn执行当前 Web 请求期间生成了未处理的<em>异常</em>。可以使用下面的<em>异常</em>堆栈跟踪信息确定有关<em>异常</em>原因和发生位置的信息。 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:未将对象引用设置对象实例
//自定义ResultInfo()方法,实现提取指定信息,并将其显示在相应的文本框控件中,可是显示<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>,排错了好长时间,无果,就高手指点rn private void ResultInfo(int j)rn rn tryrn rn DataSet dsNew = DtReslut(j);rn this.txbClassName.Text = dsNew.Tables[0].Rows[0][0].ToString();//<em>出错</em>的地方rn this.txbClassNumber.Text = dsNew.Tables[0].Rows[0][1].ToString();rn this.txbGrade.Text = dsNew.Tables[0].Rows[0][2].ToString();rn this.txbShortName.Text = dsNew.Tables[0].Rows[0][3].ToString();rn this.txbTeacher.Text = dsNew.Tables[0].Rows[0][4].ToString();rn this.txbNo.Text = dsNew.Tables[0].Rows[0][5].ToString();rn rn catch (Exception ex)rn rn MessageBox.Show(ex.Message);rn rnrn
急 System.NullReferenceException: 未将对象引用设置对象实例
错误详细:rnrn<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrnrn行 13: rn行 14: MessageInterface iMsg = MessageFactory.Create();rn[color=#FF0000]rn行 15: return iMsg.AddMessage(message);rn[/color]rn行 16: rn行 17: rn rnrn源文件: F:\GameDesign\Bussiness\MessageBusiness.cs 行: 15 rnrnrn运行页面后台代码:rn[code=C#]rnusing System;rnusing System.Collections;rnusing System.Configuration;rnusing System.Data;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.HtmlControls;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.IO;rnusing GD.Model;rnusing GD.DataAccess;rnusing GD.SystemFrameworks;rnusing GD.Bussiness.Message;rnrnpublic partial class AddMsg : System.Web.UI.Pagernrn protected void Page_Load(object sender, EventArgs e)rn rn if (Session["fld_UserName"] == null)rn rn this.Response.Write(" ");rn Response.Redirect("Login.aspx?message=" + Server.UrlEncode("请<em>登录</em>后再留言!"));rn rn //if (!CommonClass.hasSession(Page.Session))rn // Response.Redirect("Login.aspx?message=" + Server.UrlEncode("请<em>登录</em>后再留言!"));rn rnrn protected void btnOK_Click(object sender, EventArgs e)rn rnrn Message message = new Message();rn message.fld_UserId = Convert.ToInt32(Label1.Text);rn message.fld_Title = txtTitle.Text;rn message.fld_Content = txtDSC.Text;rn message.fld_CreatedTime = Convert.ToDateTime(DateTime.Now);rnrn MessageBusiness messageBusiness = new MessageBusiness();rn if (messageBusiness.AddMessage(message))rn rn Utility.AlertMsg(this.Page, "成功");rn rn elsern rn Utility.AlertMsg(this.Page, "失败");rn rn rnrn[/code]rnrn业务层代码:rn[code=C#]rnnamespace GD.Bussiness.Messagernrn using System;rn using System.Data;rn using System.Collections.Generic;rn using System.Text;rn using GD.Model;rn using GD.DataAccess.Message;rnrn public class MessageBusinessrn rn public bool AddMessage(Message message)rn rn MessageInterface iMsg = MessageFactory.Create();rn return iMsg.AddMessage(message);rn rn rnrn[/code]rnrn数据处理代码:rn[code=C#]rnnamespace GD.DataAccess.Messagernrn using System;rn using System.Data;rn using System.Data.SqlClient;rnrn using GD.Model;rn using GD.SystemFrameworks;rn using GD.DataAccess.SystemFrame;rnrn public class MessageSqlHandle : MessageInterfacern rn public bool AddMessage(Message message)rn rn SQLHelper helper = new SQLHelper();rn SqlParameter[] prams = rn new SqlParameter("@fld_UserId",SqlDbType.Int,8),rn new SqlParameter("@fld_Title",SqlDbType.NVarChar,50),rn new SqlParameter("@fld_Content",SqlDbType.NVarChar),rn new SqlParameter("@fld_CreatedTime",SqlDbType.DateTime,8)rn ;rn prams[0].Value = message.fld_UserId;rn prams[1].Value = message.fld_Title;rn prams[2].Value = message.fld_Content;rn prams[3].Value = message.fld_CreatedTime;rnrn int i;rn i = helper.ExecuteNonQuery("Tb_AddMessage", prams);rn if (i == 0)rn return true;rn elsern return false;rn rn rnrn[/code]rn存储过程:rn[code=SQL]rnALTER PROCEDURE dbo.Tb_AddMessagern (rn @fld_UserId int,rn @fld_Title nvarchar(100),rn @fld_Content nvarchar(max),rn @fld_CreatedTime datetime,rn @fld_Clicks intrn )rnASrnBEGINrn BEGIN TRYrn INSERT INTO Tb_Message(rn fld_UserId,rn fld_Title,rn fld_Content,rn fld_CreatedTime,rn fld_Clicksrn )VALUES(rn @fld_UserId,rn @fld_Title,rn @fld_Content,rn @fld_CreatedTime,rn @fld_Clicksrn )rn rn RETURN 0rn END TRYrn BEGIN CATCHrn RETURN ERROR_NUMBER()rn END CATCHrnrnENDrn[/code]rnrn工厂反射模式 的程序 折腾了一下午了 始终解决不了 急啊~~~rn
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 未将对象引用设置对象实例
DataGridView 导出时出现的问题。 可能grid行的单元的没有值。 ------------------------------------------------------------------------------ if (dataGridview1.Rows[j].Cells[k].Value != null) { tempStr ...
iis6.0 System.NullReferenceException: 未将对象引用设置对象实例
<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn说明: 执行当前 Web 请求期间,出现未经处理的<em>异常</em>。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的<em>详细信息</em>。 rnrn<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrnrn行 122: rn行 123: //使用版块rn行 124: if ((config.Iisurlrewrite == 1 || config.Aspxrewrite == 1) && requestPath.EndsWith("/list.aspx") &&rn行 125: requestPath.IndexOf("/archiver/") < 0 && requestPath.IndexOf("/install/") < 0 && requestPath.IndexOf("/upgrade/") < 0 &&rn行 126: requestPath.IndexOf("/admin/") < 0 && requestPath.IndexOf("/aspx/") < 0 && requestPath.IndexOf("/tools/") < 0 &&rn rnrn源文件: D:\BBSProjects\XL.Forum\HttpModule.cs 行: 124 rnrn堆栈跟踪: rnrnrn[NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。]rn XL.Forum.HttpModule.ReUrl_BeginRequest(Object sender, EventArgs e) in D:\BBSProjects\XL.Forum\HttpModule.cs:124rn System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +213rn System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +76rnrn rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.1 rnrn疑惑:rn我在vs2008 调试的时候就没有这个<em>异常</em>,<em>为什么</em>部署到iis中就出现了这个<em>异常</em>呢?rn希望老师给我个解答。
System.NullReferenceException: 未将对象引用设置对象实例 的疑问??
各位大虾,小弟菜鸟,编译的时候出了这个问题可能是什么地方有问题了??恳请各位大虾指点一番~~不胜感激~~rnrnrn<em>异常</em><em>详细信息</em>: System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。rnrn源错误: rnrnrn行 148: break;rn行 149: rn[color=#FF0000]行 150: SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);[/color]行 151: SqlCommand cmd = new SqlCommand(selectStr, conn);rn行 152: tryrn rnrn源文件: e:\新建文件夹\Visual Studio 2005\Projects\0600220229-01\15977448344\denglu.aspx.cs 行: 150
求救:System.NullReferenceException: 未将对象引用设置对象实例
请各位高人指点迷津,不胜感谢!rn//测试给出的密码是否正确rnpublic bool TestPassword(string pass)rn rn byte[] encryptPass=user.Encrypt(pass); rn for (int i = 0; i
未将对象引用设置对象实例 (System.NullReferenceException)
http://www.jb51.net/article/30005.htm
错误:System.NullReferenceException: 未将对象引用设置对象实例
 错误:System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>??        这是你的Web.config的<em>设置</em>有问题了! 如果你在 &amp;lt;system.web&amp;gt; .............................. &amp;lt;/system.web&amp;gt; 之间加上下面的就ok 了。 &amp;lt;system.web&amp;gt; &amp;lt;pages ...
COOKIES的System.NullReferenceException: 未将对象引用设置对象实例
<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的<em>异常</em>。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的<em>详细信息</em>。 rnrn<em>异常</em><em>详细信息</em>: 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这个是<em>登录</em>成功后写入的COOKIES,包括用户名和权限rnrn如果是通过<em>登录</em>页面转过去的话,那么就能正常显示rn但是如果是在地址栏里面直接输入需要验证页面的话,比如admin_index.aspxrn那么就会出现错误,错误以上,rn string AdminName = Request.Cookies["Ly_Cookies"]["Ly_UserName"];rnrn这样都有错么,整了我一天的问题了,
System.NullReferenceException: '未将对象引用设置对象实例。'
刚学不久,自己写一个小项目,出现了这个<em>异常</em>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: 未将对象引用设置对象实例
<em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。 rn说明: 执行当前 Web 请求期间,出现未经处理的<em>异常</em>。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的<em>详细信息</em>。 rnrn<em>异常</em><em>详细信息</em>: 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
提示“System.NullReferenceException: 未将对象引用设置对象实例。”
rnrn rnrn<em>为什么</em>提示“System.NullReferenceException: <em>未将</em><em><em>对象</em>引用</em><em>设置</em>到<em>对象</em>的<em>实例</em>。
J2ME消费存储统计下载
记录消费,永久保存数据,并进行统计,做出相应的判断。是实用的消费软件 相关下载链接:[url=//download.csdn.net/download/wn609092934/4286049?utm_source=bbsseo]//download.csdn.net/download/wn609092934/4286049?utm_source=bbsseo[/url]
面向对象纸牌实验下载
山东大学面向对象的纸牌实验,里面的纸牌操作全是用命令行来移动的 相关下载链接:[url=//download.csdn.net/download/a5kkkkk/4794478?utm_source=bbsseo]//download.csdn.net/download/a5kkkkk/4794478?utm_source=bbsseo[/url]
cs5460使用说明下载
介绍了cs5460的使用,CS5460A 提供SPI 串行通信接口和一系列寄存器,MCU 可以通过SPI 接口读写这些寄存器,以实现对CS5460A 的控制和从CS5460A 读取指定的数据。 相关下载链接:[url=//download.csdn.net/download/zy752281/4916837?utm_source=bbsseo]//download.csdn.net/download/zy752281/4916837?utm_source=bbsseo[/url]
我们是很有底线的