Posts by Jonny Piazzi • 266 points
4 posts
-
2
votes1
answer775
viewsA: MVC - How to load a template html page, modify it and send it by email
Your reasoning is correct, you’re doing too hardcore. If you are using Asp.net MVC (I assume you are also using Razor Views), you can use the Razor feature to render this html for you. .cshtml file:…
-
1
votes3
answers252
viewsA: Arrays not started in C
Okay you asked several questions. How to know how much size I should put to scroll through an uninitiated array []? Answer, whenever you are not working with a dynamically allocated array. Without…
-
1
votes1
answer1118
viewsA: Automatically save to Default Folder C#
In its function associated with the event FormLoad: private void YourForm_Load(object sender, EventArgs e) { var folder = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); var fileName =…
c#answered Jonny Piazzi 266 -
8
votes1
answer1108
viewsA: Why @Html.Checkboxfor returns "true,false"
This is because of the html construction on the page. Checkboxfor builds something similar to this: <input type="checkbox" name="RegistoGesOleos.Value" value="true" /> <input type="hidden"…