本文介绍了System.Argument Null异常值不能为null参数名称:值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
if (CaseStatusDay >= maxDays) { if (currentrow != null) { currentrow.BeginEdit(); if (showFlagCaseStatus.Contains(currentCaseStatus)) { currentrow["CaseStatusFlag"] = "~/Images/flag_red.png"; if (webSession.GetVariable("LoginCompanyType") == "CCCS") { if (e.Row.Cells.Count >= 13) { e.Row.Cells[12].Attributes.Add("onmouseover", "tooltip('Case has not been statused in the last " + maxdaysdispay + " days')"); e.Row.Cells[12].Attributes.Add("onmouseout", "exit();"); } } else if (webSession.GetVariable("LoginCompanyType") == "VEND" || webSession.GetVariable("LoginCompanyType") == "INS") { if (e.Row.Cells.Count >= 14) { e.Row.Cells[13].Attributes.Add("onmouseover", "tooltip('Case has not been statused in the last " + maxdaysdispay + " days')"); e.Row.Cells[13].Attributes.Add("onmouseout", "exit();"); } } } } }
推荐答案
由于我们无法访问您的环境,因此上述代码对我们无能为力. 最好的答案是在运行时在调试器中打开代码,并查看从何处获取空值. There is very little we can do for you with the above code as we do not have access to your environment. The best answer is open your code in a debugger while running and see where you are getting the null value.
更多推荐
System.Argument Null异常值不能为null参数名称:值
发布评论