cyb3rdragon
cyb3rdragon
CC#
Created by diptim on 10/1/2023 in #help
visual studio what is the short-key for creating a new class?
You can set it manually too in settings
6 replies
CC#
Created by diptim on 10/1/2023 in #help
visual studio what is the short-key for creating a new class?
Either it's Alt + C or there is no default. I think I set this one manually.
6 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
/close
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
public static List<BloodSugarData> bsDatas = new List<BloodSugarData>
{

new BloodSugarData(0, "36703245432", date1, "morning", 4),
new BloodSugarData(1, "36405555555", date2, "night", 12),

};
public static List<BloodSugarData> bsDatas = new List<BloodSugarData>
{

new BloodSugarData(0, "36703245432", date1, "morning", 4),
new BloodSugarData(1, "36405555555", date2, "night", 12),

};
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
public IActionResult BSMeasurePageList()
{
return View(bsDatas);
}
public IActionResult BSMeasurePageList()
{
return View(bsDatas);
}
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
@model List<BloodSugarData>


<table>
<tr>
<th> Id </th>
<th> Phone </th>
<th> Date </th>
<th> Time of day </th>
<th> Blood sugar (mg/dl)</th>
</tr>

@{
for (int i = 0; i < Model.Count; i++)
{
var item = Model[i];

<tr>
<td>@item.Id </td>
<td>@item.userPhone </td>
<td>@item.measureDate </td>
<td>@item.timeOfDay </td>
<td>@item.mgBloodSugar </td>

</tr>
</table>
}
}
@model List<BloodSugarData>


<table>
<tr>
<th> Id </th>
<th> Phone </th>
<th> Date </th>
<th> Time of day </th>
<th> Blood sugar (mg/dl)</th>
</tr>

@{
for (int i = 0; i < Model.Count; i++)
{
var item = Model[i];

<tr>
<td>@item.Id </td>
<td>@item.userPhone </td>
<td>@item.measureDate </td>
<td>@item.timeOfDay </td>
<td>@item.mgBloodSugar </td>

</tr>
</table>
}
}
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
cool! thank you, I just got confused haha
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
okay understand
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
?
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
I have to add the data into the controller<
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
public ActionResult BSDiagram()
{
return View();
}
public ActionResult BSDiagram()
{
return View();
}
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
I can send code format too if needed
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
26 replies
CC#
Created by cyb3rdragon on 11/25/2022 in #help
❔ ❔ MVC - Chart - Model - NullReferenceException
The problem should be in the foreach line imo, but I don't know what +picture: the data shows up when I only use the same foreach in a table, but I need it in a chart
26 replies