Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

186
Views
ASP.NET Saving Data

So I have a basic crud that displays information on ASP.Net using entity framework. When i click details it shows the information for that row on a table. I've input a button and a label that when is clicked shows a number, when clicked again it will show the next number higher. It's basically to just a button counter written with JQuery. My question is, is there a way to save this number? I want to store the data in the program so it doesn't forget the number when I move to a different page.

Here is the JQuery.

var count = 0;
function Count() {
    count++;
    $('#lblShow').text(count);

}
<div>
    <input type="submit" name="btnCount" value="Add Signature" onclick="return Count();" id="btnCount" />  <input type="submit" name="btnCountSoc" value="Post to Social Media" id="btnMedia" />
    <span id="lblShow"></span>
</div>

Any advice would be appreciated, thanks.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can use cookies such as:

 var counter = $("#foo").val(); document.cookie = "counter="+counter";path=/";
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!