Getting HTML and Javascript into entity framework database

rob m 256 Reputation points
2024-09-24T06:19:39.72+00:00

I store some data in textboxes how do I get this into the entity framework database?

 

 

 

 

<h1>Hello, world!</h1>
<h2>The time on the server is @DateTime.Now   </h2>
<input id="lat" name="lat" type="text" value="" />
<input id="long" name="long" type="text" value="" />
<script>

    const searchParams = new URLSearchParams(window.location.search);
    var lat = searchParams.get('lat');
    var long = searchParams.get('long');
    alert("LAT:" + lat + " LONG:" + long);
    var lato = document.getElementById('lat');
    var longo = document.getElementById('long');
    lato.value = lat;
    longo.value = long;

</script>


 

 

 

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
743 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,877 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.