I have make a chart.js in my website to display chart showing demand of a fruit over date range using this script below :
<div class="chart-wrapper" style="height:200px;margin-top:40px;">
<canvas id="main-chart" class="chart" height="100"></canvas>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js">
</script>
<script>
var ctx = document.getElementById("main-chart").getContext('2d');
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: ["M", "T", "W", "T", "F", "S", "S", "M"],
datasets: [{
label: 'Traffic',
data: [0, 50, 100, 150, 200, 250, 300, 350],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)',
'rgba(255, 159, 64, 0.2)'
],
borderColor: [
'rgba(255,99,132,1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
});
</script>
...
How to do autologin in MVC and which is the best method to securely save Cookies in asp.net MVC?
please help
...Hi, I was running https on localhost IIS for the first time, I was usign http under my localhost and after reading this article:
https://deanhume.com/set-up-iis-7-to-run-a-secure-site-locally-https/
I tried to run https on my IIS and localhost.
But I'm facing this error : your connection is not private.
how can resolve that? Thanks.
...
How to dynamically create a textbox in asp.net c# on button click, according to user input value?
...Do i need Service Layer? From my point of view/understanding.
Presentation Layer = UI
Business Logic Layer = Domain/Entities, Interface and (should DTO resides here)?
Data Access Layer = Implementation of Repository Pattern, CRUD.
Service Layer = ???
If the BLL has Domain/Entities? what layer does business validation belongs to?
From what i know and searched. Entites and DTO is plain.
...
I am trying to submit the form in ASP.NET MVC by updating a value of checkbox, but checkbox is not posting updated value to the C# Controller and posting null value, here is my razor code
...When working in ASP.NET MVC, I have a partial view located inside "Views -> FirstController->_PartialView1.cshtml", I would like to call this partial view of "FirstController" from "SecondController", how can I call it in ASP.NET MVC?
The reason I am doing so is the HTML used is same, but with different data.
...