Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

183
Vistas
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 Respuestas
Responde la pregunta

0

You can use cookies such as:

 var counter = $("#foo").val(); document.cookie = "counter="+counter";path=/";
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda