SkeletonBill
SkeletonBill
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
I fixed it by rolling back my changes this afternoon, no idea what the problem was.
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
and if I call the HttpPost actionresult, it is only updating the <span>, not the input
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
Here's a weird behaviour... I manually punched in some value for the total, and it is displaying correctly in both the input and my little test <span> element
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
I'm happy to blame vb lol
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
🤷‍♂️
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
it's just weird because the breakpoint shows that the data is there, but once the view is rendered, it's MIA
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
same result, it just messed the css up the equivalent of that line in C# would be Html.EditorFor(model => model.Total, new { htmlAttributes = new { class = "form-control" } }); in case that's unclear
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
you'd be surprised, it was actively supported until very recently I think
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
VB might be "dead" but unfortunately it is alive and well in legacy codebases, thankfully it correlates 1-to-1 with C# so you can just write in C# and run it through a translator if you want lol
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
<div class="input-group">
<label class="col-8 input-group-text" for="Total">Total</label>
<input class="form-control text-box single-line" id="Total" name="Total" type="text" value="0.00">

<span>10664.52</span>
</div>
<div class="input-group">
<label class="col-8 input-group-text" for="Total">Total</label>
<input class="form-control text-box single-line" id="Total" name="Total" type="text" value="0.00">

<span>10664.52</span>
</div>
here's the html
25 replies
CC#
Created by SkeletonBill on 2/9/2023 in #help
❔ MVC - data is being passed to view, but not displayed
And like a fool I just realized I posted this in the C# discord, but it's VB code... but I mean, it's the same aside from some slight syntax differences, and I don't think there's a large VB discord community that can help. Hope it's OK.
25 replies