Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

187
Visualizações
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 Respostas
Responde à pergunta

0

You can use cookies such as:

 var counter = $("#foo").val(); document.cookie = "counter="+counter";path=/";
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda